foundry 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foundry/configurator.rb +2 -2
- data/lib/foundry/version.rb +1 -1
- data/lib/foundry.rb +0 -1
- data/spec/configurator_spec.rb +2 -2
- metadata +2 -3
- data/lib/foundry/hash_struct.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e5844ff236192bbd134f6044eeecd46b97a96f
|
4
|
+
data.tar.gz: f54d2a1d4f15b500e121f663b5cdf84fa3eb0d80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 337e51d286fb9e574bb4f446a0dfdd9d3b689051b4315a0a6d4d269fbccb8075497bda0d751e37bce8f1010cb9c0bd1df3f659484394f1c83ab11dec046598b9
|
7
|
+
data.tar.gz: d808c17433690c4b4375b4a7c2559171844f350005c42e49d3cc150a0eae3c56b95e65c743abfdff735fb132613b5159400ccaf3bc83b58146b5374c99abbade
|
data/lib/foundry/configurator.rb
CHANGED
@@ -38,9 +38,9 @@ module Foundry
|
|
38
38
|
structify(value)
|
39
39
|
end
|
40
40
|
when Hash
|
41
|
-
|
41
|
+
OpenStruct.new.tap do |open_struct|
|
42
42
|
object.each do |key, value|
|
43
|
-
|
43
|
+
open_struct.public_send("#{key}=", structify(value))
|
44
44
|
end
|
45
45
|
end
|
46
46
|
else
|
data/lib/foundry/version.rb
CHANGED
data/lib/foundry.rb
CHANGED
data/spec/configurator_spec.rb
CHANGED
@@ -42,8 +42,8 @@ describe Foundry::Configurator do
|
|
42
42
|
YAML
|
43
43
|
}
|
44
44
|
expect(subject.configure(:file_name => '')).to eq(
|
45
|
-
|
46
|
-
'root' =>
|
45
|
+
OpenStruct.new(
|
46
|
+
'root' => OpenStruct.new(
|
47
47
|
'erb' => 6,
|
48
48
|
'float' => 123.0,
|
49
49
|
'integer' => 42,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan W. Zaleski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,7 +86,6 @@ files:
|
|
86
86
|
- foundry.gemspec
|
87
87
|
- lib/foundry.rb
|
88
88
|
- lib/foundry/configurator.rb
|
89
|
-
- lib/foundry/hash_struct.rb
|
90
89
|
- lib/foundry/loaders/file.rb
|
91
90
|
- lib/foundry/loaders/uri.rb
|
92
91
|
- lib/foundry/version.rb
|