{"id":16061747,"url":"https://github.com/watson1978/motion-env-vars","last_synced_at":"2025-11-30T21:30:14.504Z","repository":{"id":136941025,"uuid":"12482924","full_name":"Watson1978/motion-env-vars","owner":"Watson1978","description":null,"archived":false,"fork":false,"pushed_at":"2013-10-26T09:30:48.000Z","size":103,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T12:48:13.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Watson1978.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-30T09:28:00.000Z","updated_at":"2016-04-05T21:12:11.000Z","dependencies_parsed_at":"2023-03-22T05:33:39.157Z","dependency_job_id":null,"html_url":"https://github.com/Watson1978/motion-env-vars","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/Watson1978%2Fmotion-env-vars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watson1978%2Fmotion-env-vars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watson1978%2Fmotion-env-vars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Watson1978%2Fmotion-env-vars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Watson1978","download_url":"https://codeload.github.com/Watson1978/motion-env-vars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239646256,"owners_count":19674003,"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":[],"created_at":"2024-10-09T04:20:26.502Z","updated_at":"2025-11-30T21:30:14.448Z","avatar_url":"https://github.com/Watson1978.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# motion-env-vars\n\nSet ENV_VARS hash which is available in RubyMotion app.\n\nYou can set variables from yaml file or hash in Rakefile.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'motion-env-vars'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install motion-env-vars\n\n## Usage\n\nin you Rakefile\n\n#### From yaml file\n\n```\nMotion::Project::App.setup do |app|\n  ...\n  app.env_vars = './config/environment.yaml'\n  ...\nend\n```\n\nin config/environment.yaml\n\n```\nconsumer_key: xxx\nconsumer_secret: XXX\n```\n\nin app code after build, motion-env-vars define ENV_VARS constant variable as Hash.\n\n```\np ENV_VARS #=\u003e { 'consumer_key' =\u003e 'xxx', 'consumer_secret' =\u003e 'XXX' }\n```\n\n#### From hash\n\n```\nMotion::Project::App.setup do |app|\n  ...\n  app.env_vars = { 'consumer_key' =\u003e 'xxx', 'consumer_secret' =\u003e 'XXX' }\n  ...\nend\n```\n\nYou can also use shell ENV\n\n```\n  app.env_vars = ENV.to_hash\n```\n\nOr selectively\n\n```\n  app.env_vars = { 'CUSTOMER_KEY' =\u003e ENV['CUSTOMER_KEY'], 'CUSTOMER_SECRET' =\u003e ENV['CUSTOMER_SECRET'] }\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson1978%2Fmotion-env-vars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson1978%2Fmotion-env-vars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson1978%2Fmotion-env-vars/lists"}