ssm_config 0.0.1 → 0.1.0

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: f4c8bd599af4049e92584cc32595f05bc8ca3a57
4
- data.tar.gz: 179f3ba6315223d305c86afffcb47beee85dcdaf
3
+ metadata.gz: 115701f1d8e969dd129881f0b9d1a01f1eca4650
4
+ data.tar.gz: 2afdde11a404a03afb90304e7f143c7229e6b526
5
5
  SHA512:
6
- metadata.gz: d707b33dc5086bedc87dd4c36b86855f77b83081033ae06fa4d5fdd969a107e016ce19343e1f3773e9b1d2a8e06c17f9c842fac65f3f449cd2cc633ef1dd971c
7
- data.tar.gz: eedb25487f86e4a6ef1bfb6fdcb5612431f164f10b9fcb7f1396a2a50319582d28c6d41aabc932fc03a1ea81d480ad3ea85c283fbb3d48f48b9422c67b301e4a
6
+ metadata.gz: 7137425620957e62a69fd61ecbc69cc81547adf31d09fd9ca684794bbba3dd195dd4c4d1d573bcee3997bb778c2b513a924e493f8b3d3853d7be8151de577bfd
7
+ data.tar.gz: 99d9d54ceb6e5e2c7d7bfa04ccab5a3b6e0eb5f30ae21d0dfc045141e8e5d23e07f74dc45db659d998ee2566e894cf5d5c87843f857d334afd1a83a2f585fbb5
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # SsmConfig
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ssm_config`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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
@@ -1,5 +1,5 @@
1
1
  class SsmConfig
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
 
4
4
  class << self
5
5
 
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", ">= 4", "< 6"
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.1
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: 2017-02-10 00:00:00.000000000 Z
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: '4'
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: '4'
71
+ version: '3'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '6'