stacked_config 0.4.1 → 0.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b65a43dce8f32deaf3138a11c07586bf7a19f85d
4
- data.tar.gz: 74a1266cbf094218758eb823f865f51260824822
3
+ metadata.gz: 62606ce3e0ef2d847602164f729b0054c3c9efe4
4
+ data.tar.gz: b8cf48ecbe204b5dc0506992f26c1436132f8693
5
5
  SHA512:
6
- metadata.gz: 288e79c33b979aa3876ab06b654301a33f2dfff7d25ec07db2e9e705676338459145e4fae87c01cbde424f40cddd79dc30f57bb92a9b3341f8d7c3d317ad6e5e
7
- data.tar.gz: c96b99918f29a7ef4b5c19022902701e4a9aed1e2fdf9883e3f690c9c79117fa2948a173e277fedadae0638e25a2f17b54214a1af4b68424052407306f951fd5
6
+ metadata.gz: e07a261e6013213c74b124340128308c081fec41fed187a7249706a0a8f63ec3402e304f59b4a1a750635347dceb6c213a2ebd02706b471fc95937fcf7dbeabf
7
+ data.tar.gz: b7456c412b5c158dac0fc295976b5d2ebe89a0883ee0f67e7376fdf4a8a73b7dc0038d83c52f76533bd45a509925cc2d5c042406b26930a9281c019a5c152600
data/README.md CHANGED
@@ -152,11 +152,24 @@ Which does not prevent you changing afterwards its priority using the config's `
152
152
  The constructor parameter `optional_filter` parameter aims at filtering the ENV variables:
153
153
 
154
154
  * if nil, all the ENV[] content will be added to the `env_layer`
155
- * it can be a single string if you want only one variable
156
- * it can be an array of accepted names of variables. ex: `StackedConfig::Layers::EnvLayer.new 'VAR_NAME_1'`
155
+ * it can be a single string if you want only one variable. ex: `StackedConfig::Layers::EnvLayer.new 'VAR_NAME_1'`
156
+ * it can be an array of accepted names of variables. ex:
157
157
  `StackedConfig::Layers::EnvLayer.new ['VAR_NAME_1', 'VAR_NAME_2']`
158
158
  * it can be a regexp that variables names have to match. ex: `StackedConfig::Layers::EnvLayer.new /somePattern/`
159
159
 
160
+ Once created you could although change the filter anytime:
161
+
162
+ ```ruby
163
+ require 'stacked_config'
164
+
165
+ config = StackedConfig::Orchestrator.new
166
+ config.include_env_layer
167
+
168
+ config.env_layer.filter = /my_regexp/
169
+ ```
170
+ It will automatically `reload` the `env_layer`.
171
+
172
+
160
173
  ### Script command line options
161
174
 
162
175
  `stacked_config` uses internally the fantastic [Slop] gem to manage options coming from the command line within the
@@ -1,3 +1,3 @@
1
1
  module StackedConfig
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'pry'
24
24
  spec.add_development_dependency 'rspec', '~> 3.0'
25
25
 
26
- spec.add_dependency 'super_stack', '~> 0.2', '>= 0.2.5'
26
+ spec.add_dependency 'super_stack', '~> 0.2', '>= 0.2.5', '< 0.4'
27
27
  spec.add_dependency 'slop', '~> 3.0'
28
28
 
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stacked_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,6 +76,9 @@ dependencies:
76
76
  - - '>='
77
77
  - !ruby/object:Gem::Version
78
78
  version: 0.2.5
79
+ - - <
80
+ - !ruby/object:Gem::Version
81
+ version: '0.4'
79
82
  type: :runtime
80
83
  prerelease: false
81
84
  version_requirements: !ruby/object:Gem::Requirement
@@ -86,6 +89,9 @@ dependencies:
86
89
  - - '>='
87
90
  - !ruby/object:Gem::Version
88
91
  version: 0.2.5
92
+ - - <
93
+ - !ruby/object:Gem::Version
94
+ version: '0.4'
89
95
  - !ruby/object:Gem::Dependency
90
96
  name: slop
91
97
  requirement: !ruby/object:Gem::Requirement
@@ -174,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
180
  version: '0'
175
181
  requirements: []
176
182
  rubyforge_project:
177
- rubygems_version: 2.0.0
183
+ rubygems_version: 2.0.14
178
184
  signing_key:
179
185
  specification_version: 4
180
186
  summary: Manages config files according to standard policy.