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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2577df8898406d373fe649df69d6fcb30f9688
4
- data.tar.gz: 1bf538e9a2cefd8a68a474ac36c73a18afd3b10c
3
+ metadata.gz: c0e5844ff236192bbd134f6044eeecd46b97a96f
4
+ data.tar.gz: f54d2a1d4f15b500e121f663b5cdf84fa3eb0d80
5
5
  SHA512:
6
- metadata.gz: 0b7c6975739a40247f16b952dcc2623c1fd35fbfdb7a6e10adc3892cb4fec25cc6715593314d2e21f4054493a1f5c517102b12ea15a7beceac5d5bdee05a5b8a
7
- data.tar.gz: a666555baaae3f83aba7a2aa881bb94ab11fbf8a7c52d45fff7b25d76f81a1991ea21ab333ccef254e190b5bf0cd3a563f9abbcefdc903b40fa2a8cfcde9da93
6
+ metadata.gz: 337e51d286fb9e574bb4f446a0dfdd9d3b689051b4315a0a6d4d269fbccb8075497bda0d751e37bce8f1010cb9c0bd1df3f659484394f1c83ab11dec046598b9
7
+ data.tar.gz: d808c17433690c4b4375b4a7c2559171844f350005c42e49d3cc150a0eae3c56b95e65c743abfdff735fb132613b5159400ccaf3bc83b58146b5374c99abbade
@@ -38,9 +38,9 @@ module Foundry
38
38
  structify(value)
39
39
  end
40
40
  when Hash
41
- Foundry::HashStruct.new.tap do |hash_struct|
41
+ OpenStruct.new.tap do |open_struct|
42
42
  object.each do |key, value|
43
- hash_struct[key] = structify(value)
43
+ open_struct.public_send("#{key}=", structify(value))
44
44
  end
45
45
  end
46
46
  else
@@ -1,3 +1,3 @@
1
1
  module Foundry
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/lib/foundry.rb CHANGED
@@ -6,7 +6,6 @@ require 'uri'
6
6
  require 'yaml'
7
7
 
8
8
  require 'foundry/configurator'
9
- require 'foundry/hash_struct'
10
9
  require 'foundry/loaders/file'
11
10
  require 'foundry/loaders/uri'
12
11
  require 'foundry/version'
@@ -42,8 +42,8 @@ describe Foundry::Configurator do
42
42
  YAML
43
43
  }
44
44
  expect(subject.configure(:file_name => '')).to eq(
45
- Foundry::HashStruct.new(
46
- 'root' => Foundry::HashStruct.new(
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.1
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-14 00:00:00.000000000 Z
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
@@ -1,10 +0,0 @@
1
- module Foundry
2
- class HashStruct < OpenStruct
3
- def [](key)
4
- public_send(key.to_sym)
5
- end
6
- def []=(key, value)
7
- public_send("#{key.to_sym}=", value)
8
- end
9
- end
10
- end