configru 3.5.0 → 3.6.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/ChangeLog.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +8 -1
- data/lib/configru.rb +4 -0
- data/lib/configru/config.rb +4 -0
- data/lib/configru/version.rb +1 -1
- data/spec/config_spec.rb +5 -0
- data/spec/configru_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b5f0f857da8052614a1d487fb7824cb3973d9a2
|
4
|
+
data.tar.gz: f98a1bf455392b879de1c8a02be559610f8aa984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b21c6f07ed6aaad38c0289cb71221fd2778daa2e159e5b1d5a84e2fee74651ac626d19d41fb89a25729c181ff46409a4f946140544a7a2de66203b2f7aec9213
|
7
|
+
data.tar.gz: ea5c445f029f2223aa70987cfc3a2b2ff03c264b80dae92d8213097fac3370fc9fc3b55048f99e2410e2f7f94520ce203d6a475d3691f687a7f57faffad63ff9
|
data/ChangeLog.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ YAML configuration file loader
|
|
7
7
|
Install the gem or add it to your `Gemfile`:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'configru', '~> 3.
|
10
|
+
gem 'configru', '~> 3.6.0'
|
11
11
|
```
|
12
12
|
|
13
13
|
Next, require it and load a configuration:
|
@@ -225,6 +225,13 @@ The global configuration can also be reloaded in the same way:
|
|
225
225
|
Configru.reload
|
226
226
|
```
|
227
227
|
|
228
|
+
Access to the underlying `Configru::Config` object of the global
|
229
|
+
configuration is provided:
|
230
|
+
|
231
|
+
```ruby
|
232
|
+
Configru.config
|
233
|
+
```
|
234
|
+
|
228
235
|
# License
|
229
236
|
|
230
237
|
Copyright © 2011-2013, Curtis McEnroe <programble@gmail.com>
|
data/lib/configru.rb
CHANGED
data/lib/configru/config.rb
CHANGED
data/lib/configru/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
data/spec/configru_spec.rb
CHANGED
@@ -8,4 +8,9 @@ describe Configru do
|
|
8
8
|
Configru.example.should == 'example'
|
9
9
|
expect { Configru.idonotexist }.to raise_error(NoMethodError)
|
10
10
|
end
|
11
|
+
|
12
|
+
it 'allows access to underlying Config object' do
|
13
|
+
Configru.load { }
|
14
|
+
Configru.config.should be_a(Configru::Config)
|
15
|
+
end
|
11
16
|
end
|