{"id":20072591,"url":"https://github.com/moi-solutions/galadriel","last_synced_at":"2025-05-05T21:30:21.728Z","repository":{"id":56847965,"uuid":"100641232","full_name":"moi-solutions/galadriel","owner":"moi-solutions","description":"Gem for handling parameter arrays.","archived":false,"fork":false,"pushed_at":"2018-01-16T00:27:52.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T04:11:57.650Z","etag":null,"topics":["array","arrays","gem","hash","parse","parser","rails","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/galadriel","language":"Ruby","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/moi-solutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-08-17T20:09:57.000Z","updated_at":"2020-04-20T09:03:20.000Z","dependencies_parsed_at":"2022-09-10T19:50:58.915Z","dependency_job_id":null,"html_url":"https://github.com/moi-solutions/galadriel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moi-solutions%2Fgaladriel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moi-solutions%2Fgaladriel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moi-solutions%2Fgaladriel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moi-solutions%2Fgaladriel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moi-solutions","download_url":"https://codeload.github.com/moi-solutions/galadriel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579976,"owners_count":21771247,"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":["array","arrays","gem","hash","parse","parser","rails","ruby"],"created_at":"2024-11-13T14:41:15.992Z","updated_at":"2025-05-05T21:30:21.465Z","avatar_url":"https://github.com/moi-solutions.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# galadriel\nGem for handling parameter arrays.\n\n```ruby\nhash_array = Galadriel.parse(params[:my_params])\n```\n\n## From\n\n```\n{\n  \"id\": [\n    \"231\",\n    \"609\"\n  ],\n  \"item_short_name\": [\n    \"Glifosato\",\n    \"Diesel\"\n  ],\n  \"profit_center_code\": [\n    \"\",\n    \"\"\n  ],\n  \"name\": [\n    \"Glifosan 10L\",\n    \"Disel 1L\"\n  ],\n  \"container\": [\n    \"10.0 L\",\n    \"1.0 L\"\n  ],\n  \"onhand_quantity\": [\n    \"124.1000 und\",\n    \"489.5000 und\"\n  ],\n  \"reserved_quantity\": [\n    \"0.0000 und\",\n    \"0.0000 und\"\n  ],\n  \"diff_quantity\": [\n    \"114.1000  und\",\n    \"479.5000  und\"\n  ],\n  \"new_quantity\": [\n    \"10.0000  und\",\n    \"10.0000  und\"\n  ],\n  \"new_unit_cost\": [\n    \"350.0000\",\n    \"23.0000\"\n  ],\n  \"reason\": [\n    \"4\",\n    \"2\"\n  ],\n  \"reason_type\": [\n    \"Reducción\",\n    \"Reducción\"\n  ]\n}\n```\n\n## To\n\n```\n[\n  {\n    \"id\": \"231\",\n    \"item_short_name\": \"Glifosato\",\n    \"profit_center_code\": \"\",\n    \"name\": \"Glifosan 10L\",\n    \"container\": \"10.0 L\",\n    \"onhand_quantity\": \"124.1000 und\",\n    \"reserved_quantity\": \"0.0000 und\",\n    \"diff_quantity\": \"114.1000  und\",\n    \"new_quantity\": \"10.0000  und\",\n    \"new_unit_cost\": \"350.0000\",\n    \"reason\": \"4\",\n    \"reason_type\": \"Reducción\"\n  },\n  {\n    \"id\": \"609\",\n    \"item_short_name\": \"Diesel\",\n    \"profit_center_code\": \"\",\n    \"name\": \"Disel 1L\",\n    \"container\": \"1.0 L\",\n    \"onhand_quantity\": \"489.5000 und\",\n    \"reserved_quantity\": \"0.0000 und\",\n    \"diff_quantity\": \"479.5000  und\",\n    \"new_quantity\": \"10.0000  und\",\n    \"new_unit_cost\": \"23.0000\",\n    \"reason\": \"2\",\n    \"reason_type\": \"Reducción\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoi-solutions%2Fgaladriel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoi-solutions%2Fgaladriel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoi-solutions%2Fgaladriel/lists"}