ssm_config 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/lib/ssm_config.rb +1 -1
- data/ssm_config.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 115701f1d8e969dd129881f0b9d1a01f1eca4650
|
4
|
+
data.tar.gz: 2afdde11a404a03afb90304e7f143c7229e6b526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7137425620957e62a69fd61ecbc69cc81547adf31d09fd9ca684794bbba3dd195dd4c4d1d573bcee3997bb778c2b513a924e493f8b3d3853d7be8151de577bfd
|
7
|
+
data.tar.gz: 99d9d54ceb6e5e2c7d7bfa04ccab5a3b6e0eb5f30ae21d0dfc045141e8e5d23e07f74dc45db659d998ee2566e894cf5d5c87843f857d334afd1a83a2f585fbb5
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# SsmConfig
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
Any config YAML in the config directory can be accessed by calling `SsmConfig.config_name`.
|
4
|
+
For example, if you wish to access `config/foo.yml`, just call `SsmConfig.foo` from anywhere in the app. The YAML will be parsed
|
5
|
+
into a hash.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,7 +22,19 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
Given `config/eft.yml`:
|
26
|
+
```yml
|
27
|
+
any:
|
28
|
+
days_to_enter_bank_account:
|
29
|
+
default: 3
|
30
|
+
company1: 2
|
31
|
+
company2: 4
|
32
|
+
```
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
SsmConfig.eft
|
36
|
+
=> {"days_to_enter_bank_account"=>{"default"=>3, "company1"=>2, "company2"=>4}}
|
37
|
+
```
|
26
38
|
|
27
39
|
## Development
|
28
40
|
|
data/lib/ssm_config.rb
CHANGED
data/ssm_config.gemspec
CHANGED
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.14"
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
32
|
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
-
spec.add_dependency "rails", ">=
|
33
|
+
spec.add_dependency "rails", ">= 3", "< 6"
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssm_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Santiago Herrera
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3'
|
62
62
|
- - "<"
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '6'
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
71
|
+
version: '3'
|
72
72
|
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '6'
|