motion-environment-settings 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc47bafeba38943fc1f46653ad3b73836b61ec09
4
- data.tar.gz: abd749afc02aaf0bd55ef2a4e5c8bc09b0250ddf
3
+ metadata.gz: 33b18103b1baa5809ae1b906cb85ad204731c9ec
4
+ data.tar.gz: 80b59020e16764c3883dfeca3d4818cf34495f11
5
5
  SHA512:
6
- metadata.gz: b3a51b90485a3264752a9aa34c0bb1d0219665443697663a30d9580e1241c45d8fb6485a4b36b116468429d6d20cf4f76bf11765ba4f41ea44996164c364432b
7
- data.tar.gz: abbaabc540316a658b21ff62c0744be2002ea90cf94570295e690e8bfe3ffa1c1c19b4789501e5a7d24e1a345177bfd8a15eeaf4a1cdfb3c6d07c38d2b1273ec
6
+ metadata.gz: 3de437ef1953327c67ef5af276bc6142b85eb29c5940e158bdfee90eac552ba243409391d80f6ad27789bea63a940fe230f7b4e987632da0a242a23a3cf5f534
7
+ data.tar.gz: dd6c15bf21a5460000b43cf498a00810dc274e549fb6b0fcd1b00d5d84379efedf1cbe938f15592a5c82a9fc0c63ca90c46f0bc27d902025295875e6f89d529e
data/README.md CHANGED
@@ -1 +1,44 @@
1
1
  # motion-environment-settings
2
+
3
+ Create application settings that swap for a variety of environments.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'motion-environment-settings'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ ## Usage
16
+
17
+ Create a YAML file of the settings you want configured by environment.
18
+
19
+ Example:
20
+
21
+ development.yml
22
+ ```ruby
23
+ api_host: http://localhost
24
+ ```
25
+
26
+ production.yml
27
+ ```ruby
28
+ api_host: http://productionurl
29
+ ```
30
+
31
+ By default, `motion-environment-settings` will look for these files in `your/app/root/config/environments`. You can customize this path by setting
32
+
33
+ ```ruby
34
+ Motion::EnvironmentSettings.config_path = "your/custom/path"
35
+ ```
36
+
37
+ in your Rakefile.
38
+ ## Contributing
39
+
40
+ 1. Fork it
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Push to the branch (`git push origin my-new-feature`)
44
+ 5. Create new Pull Request
@@ -26,6 +26,7 @@ Motion::Project::App.setup do |app|
26
26
  end
27
27
  end
28
28
 
29
+ require "rake/hooks"
29
30
  require_relative "motion-environment-settings/generator"
30
31
 
31
32
  before :"build:simulator" do
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module EnvironmentSettings
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -12,6 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = ["michael.berkowitz@gmail.com"]
13
13
  s.license = "MIT"
14
14
 
15
+ s.add_dependency "rake-hooks"
15
16
  s.files = `git ls-files -z`.split("\x0")
16
17
  s.require_paths = ["lib"]
17
18
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-environment-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-12 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-hooks
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: Manage environment settings for a RubyMotion project
14
28
  email:
15
29
  - michael.berkowitz@gmail.com