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 +4 -4
- data/README.md +43 -0
- data/lib/motion-environment-settings.rb +1 -0
- data/lib/motion-environment-settings/version.rb +1 -1
- data/motion-environment-settings.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b18103b1baa5809ae1b906cb85ad204731c9ec
|
4
|
+
data.tar.gz: 80b59020e16764c3883dfeca3d4818cf34495f11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|