{"id":15010991,"url":"https://github.com/mcfilib/ruby-marshal","last_synced_at":"2025-10-10T00:37:46.264Z","repository":{"id":30229036,"uuid":"33780138","full_name":"mcfilib/ruby-marshal","owner":"mcfilib","description":"Haskell library to parse a subset of Ruby objects serialised with Marshal.dump","archived":false,"fork":false,"pushed_at":"2022-10-11T00:20:51.000Z","size":235,"stargazers_count":31,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-03-15T07:23:48.625Z","etag":null,"topics":["haskell","parsing","ruby","serialization"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcfilib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-11T15:07:00.000Z","updated_at":"2023-12-19T11:48:03.000Z","dependencies_parsed_at":"2022-08-20T23:10:29.429Z","dependency_job_id":null,"html_url":"https://github.com/mcfilib/ruby-marshal","commit_stats":null,"previous_names":["filib/ruby-marshal"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcfilib%2Fruby-marshal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcfilib%2Fruby-marshal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcfilib%2Fruby-marshal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcfilib%2Fruby-marshal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcfilib","download_url":"https://codeload.github.com/mcfilib/ruby-marshal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248089955,"owners_count":21045998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","parsing","ruby","serialization"],"created_at":"2024-09-24T19:38:13.005Z","updated_at":"2025-10-10T00:37:41.224Z","avatar_url":"https://github.com/mcfilib.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-marshal\n\n[![Build Status](https://travis-ci.org/mcfilib/ruby-marshal.svg?branch=master)](https://travis-ci.org/mcfilib/ruby-marshal)\n\nHaskell library to parse a subset of Ruby objects serialised with Marshal.dump.\n\n## Supported Types\n\n- `NilClass`\n- `TrueClass | FalseClass`\n- `Array`\n- `Fixnum`\n- `Float`\n- `Hash`\n- `String`\n- `Symbol`\n\nIf you would like to add support for another type, please feel free to\ncreate an issue or open a pull request using the guidelines below.\n\n## Usage\n\n### Example\n\n``` haskell\n{-# LANGUAGE OverloadedStrings #-}\n\nmodule Main where\n\nimport Data.Ruby.Marshal\nimport Data.ByteString  (ByteString)\nimport System.Directory (getCurrentDirectory)\n\nimport qualified Data.ByteString as BS\nimport qualified Data.Map.Strict as DM\n\nlookupUserID :: (ByteString, RubyStringEncoding)\n             -\u003e RubyObject\n             -\u003e Maybe (ByteString, RubyStringEncoding)\nlookupUserID key hash = fromRuby hash \u003e\u003e= \\cookie -\u003e DM.lookup key cookie\n\nmain :: IO ()\nmain = do\n  dir \u003c- getCurrentDirectory\n  rbs \u003c- BS.readFile (mconcat [dir, \"/test/bin/railsCookie.bin\"])\n  print $\n    case decode rbs of\n      Just cookie -\u003e lookupUserID (\"user_id\", UTF_8) cookie\n      Nothing     -\u003e Nothing\n```\n\n## Contributing\n\n1. Fork it.\n2. Create your feature branch (`git checkout -b my-new-feature`).\n3. Commit your changes (`git commit -am 'Add some feature'`).\n4. Push to the branch (`git push origin my-new-feature`).\n5. Create new Pull Request.\n\n### Contributors\n\n- [@mcfilib](https://github.com/mcfilib)\n- [@adinapoli](https://github.com/adinapoli)\n- [@kanishka-azimi](https://github.com/kanishka-azimi)\n- [@zyla](https://github.com/zyla)\n- [@etherz10](https://github.com/etherz10)\n- [@JackKelly-Bellroy](https://github.com/JackKelly-Bellroy)\n\n## Similar Libraries\n\n- [adjust/gorails](https://github.com/adjust/gorails)\n- [instore/node-marshal](https://github.com/instore/node-marshal)\n- [mfz/ruby-marshal](https://code.google.com/p/mfz-ruby-marshal)\n- [noxyu3m/erlang-ruby-marshal](https://github.com/noxyu3m/erlang-ruby-marshal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcfilib%2Fruby-marshal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcfilib%2Fruby-marshal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcfilib%2Fruby-marshal/lists"}