centroid 1.1.0.pre.alpha2 → 1.1.0.pre.alpha3
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/centroid.gemspec +1 -1
- data/lib/centroid.rb +1 -0
- data/test/centroid_test.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32db5ae25caa826680c6150fc818113a935d5fde
|
4
|
+
data.tar.gz: b64c473a5e2bf525a9d3c105bee06081467fc355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00a3f269031593a8f8d2a9808f8879677b07557dd70bf51f336ed41dd4569a4f308dc00ffc3271b7f58773340133d52e65b0e5b05e9e0afa1c662d78460f45ca
|
7
|
+
data.tar.gz: 046077cad9cb0c0c2bae6fc23c1b156ceeb59e814bf6e2d95ec4674281140f9539c9d44b9bf0d2a040393f24e4b9c5acc49472b404802ec777b5a60fb30af439
|
data/centroid.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'centroid'
|
3
|
-
s.version = '1.1.0-
|
3
|
+
s.version = '1.1.0-alpha3'
|
4
4
|
s.summary = 'A centralizaed paradigm to configuration management.'
|
5
5
|
s.description = 'Centroid is a tool for loading configuration values declared in JSON, and accessing those configuration values using object properties.'
|
6
6
|
s.author = 'Resource Data, Inc'
|
data/lib/centroid.rb
CHANGED
data/test/centroid_test.rb
CHANGED
@@ -49,6 +49,12 @@ class ConfigTests < Test::Unit::TestCase
|
|
49
49
|
assert_equal(config.the_environment.the_key, "TheValue")
|
50
50
|
end
|
51
51
|
|
52
|
+
def test_environment_property_is_included
|
53
|
+
config = Centroid::Config.new(json_config)
|
54
|
+
environment_config = config.for_environment("theEnvironment")
|
55
|
+
assert_equal(environment_config.environment, "theEnvironment")
|
56
|
+
end
|
57
|
+
|
52
58
|
def test_environment_specific_config_is_included
|
53
59
|
config = Centroid::Config.new(json_config)
|
54
60
|
environment_config = config.for_environment("theEnvironment")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: centroid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.pre.
|
4
|
+
version: 1.1.0.pre.alpha3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Resource Data, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Centroid is a tool for loading configuration values declared in JSON,
|
14
14
|
and accessing those configuration values using object properties.
|