{"id":21820589,"url":"https://github.com/sue445/sengiri_yaml","last_synced_at":"2025-04-14T02:53:27.752Z","repository":{"id":25242664,"uuid":"28667391","full_name":"sue445/sengiri_yaml","owner":"sue445","description":"divide yaml file","archived":false,"fork":false,"pushed_at":"2025-01-17T13:32:00.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T16:56:04.698Z","etag":null,"topics":["gem","yaml"],"latest_commit_sha":null,"homepage":"https://sue445.github.io/sengiri_yaml/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TheMuppets/proprietary_vendor_lge","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sue445.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-31T14:14:39.000Z","updated_at":"2025-01-17T13:32:01.000Z","dependencies_parsed_at":"2023-12-28T07:31:02.655Z","dependency_job_id":"f91f5864-74c7-4aab-a774-65dcbe14a6b8","html_url":"https://github.com/sue445/sengiri_yaml","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fsengiri_yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fsengiri_yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fsengiri_yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sue445%2Fsengiri_yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sue445","download_url":"https://codeload.github.com/sue445/sengiri_yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813829,"owners_count":21165631,"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":["gem","yaml"],"created_at":"2024-11-27T16:37:52.058Z","updated_at":"2025-04-14T02:53:27.746Z","avatar_url":"https://github.com/sue445.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SengiriYaml\n\n[![Gem Version](https://badge.fury.io/rb/sengiri_yaml.svg)](http://badge.fury.io/rb/sengiri_yaml)\n[![test](https://github.com/sue445/sengiri_yaml/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/sengiri_yaml/actions/workflows/test.yml)\n[![Code Climate](https://codeclimate.com/github/sue445/sengiri_yaml/badges/gpa.svg)](https://codeclimate.com/github/sue445/sengiri_yaml)\n[![Coverage Status](https://img.shields.io/coveralls/sue445/sengiri_yaml.svg)](https://coveralls.io/r/sue445/sengiri_yaml)\n\ndivide yaml file\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sengiri_yaml'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sengiri_yaml\n\n## Usage\n\n### divide yaml\n```bash\n$ cat \"/path/to/fat.yml\"\n- data1: data1\n  value: 1\n- data2: data2\n  value: 2\n\n$ sengiri_yaml \"/path/to/fat.yml\" \"/path/to/fat_dir\"\n\n$ ls \"/path/to/fat_dir\"\ndata1.yml data2.yml\n\n$ cat data1.yml\n---\n- data1: data1\n  value: 1\n\n$ cat data2.yml\n---\n- data2: data2\n  value: 2\n```\n\n### load divided yaml\n```ruby\nmerged_data = SengiriYaml.load_dir(\"/path/to/fat_dir\")\n# =\u003e [{\"data1\" =\u003e \"data1\", \"value\" =\u003e 1}, {\"data2\" =\u003e \"data2\", \"value\" =\u003e 2}]\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/sue445/sengiri_yaml/fork )\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 a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fsengiri_yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsue445%2Fsengiri_yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsue445%2Fsengiri_yaml/lists"}