chamber 2.1.8 → 2.1.9

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: ab435e8fc9bfff87490bbe1013cdbba33742365e
4
- data.tar.gz: d74ec9a071f39a3ccc15cc0d80167afc60d84138
3
+ metadata.gz: a1235ef5ed5b461a0f8244cdd1318f9c5f067103
4
+ data.tar.gz: beae0e7eac1f3f3a5307a7ac9f74c3417ee04bc6
5
5
  SHA512:
6
- metadata.gz: 5a4ec9ca76a0dd34d1b5586678e3f9f07b281f3321b540ba6fb81a47b2f1807709e23ec82bcb0c7a1a0fe0306d9ee1f6ba4ed43c0e1d327647234e00403b16ab
7
- data.tar.gz: 1d25a69916e8e8aa3679da859d006202ede4a53153c783a521e7a243a8d13e9b75cc2aaeee16fb5b80bf01a2fc41403bddc2c4d968230153ce75f71e70073afd
6
+ metadata.gz: 3f60d8418604706455a43aeff200f73806d62a47c19c70e2e1e406497202a55364fd4968e213570321fba054b033c6d330d28b0cd078ebfd772c59ee56e2ab4d
7
+ data.tar.gz: 91e7e19085a6f96961fdc6a1ad020a4378c4f2ff179eee6492b7ca33f7c061c879af4f99249aa13aed0e3e32115a9d2c94e0de89ebceccdbf8d3e6deb8af0127
@@ -1,8 +1,10 @@
1
+ require 'hashie/mash'
2
+
1
3
  module Chamber
2
4
  class ContextResolver
3
5
 
4
6
  def initialize(options = {})
5
- self.options = options.dup
7
+ self.options = Hashie::Mash.new(options)
6
8
  end
7
9
 
8
10
  def resolve
@@ -1,3 +1,3 @@
1
1
  module Chamber
2
- VERSION = '2.1.8'
2
+ VERSION = '2.1.9'
3
3
  end
@@ -45,6 +45,14 @@ describe ContextResolver do
45
45
  './app/settings' ]
46
46
  end
47
47
 
48
+ it 'can handle if keys are passed as strings' do
49
+ options = ContextResolver.resolve('files' => 'my_files',
50
+ 'namespaces' => 'ns')
51
+
52
+ expect(options[:files]).to eql 'my_files'
53
+ expect(options[:namespaces]).to eql 'ns'
54
+ end
55
+
48
56
  it 'sets the rootpath to the current working directory if none is passed in' do
49
57
  allow(Pathname).to receive(:pwd).
50
58
  and_return('my_dir')
@@ -205,7 +205,7 @@ describe Settings do
205
205
  secured_settings = settings.secured
206
206
 
207
207
  expect(secured_settings.my_encrypted_setting).to eql 'hello'
208
- expect(secured_settings.my_insecure_setting?).to be_false
208
+ expect(secured_settings.my_insecure_setting?).to eql false
209
209
  end
210
210
  end
211
211
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chamber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevenhallen
@@ -11,78 +11,78 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-27 00:00:00.000000000 Z
14
+ date: 2014-04-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ~>
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.18.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.18.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: hashie
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
36
  version: '2.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '2.0'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: rspec
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: '2.14'
50
+ version: 3.0.0.beta
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ~>
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '2.14'
57
+ version: 3.0.0.beta
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspectacular
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ~>
62
+ - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 0.17.0
64
+ version: 0.23.0
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ~>
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: 0.17.0
71
+ version: 0.23.0
72
72
  - !ruby/object:Gem::Dependency
73
- name: simplecov
73
+ name: codeclimate-test-reporter
74
74
  requirement: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ~>
76
+ - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: 0.7.0
78
+ version: 0.3.0
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ~>
83
+ - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: 0.7.0
85
+ version: 0.3.0
86
86
  description: |
87
87
  Chamber lets you source your Settings from an arbitrary number of YAML files and
88
88
  provides a simple mechanism for overriding settings from the ENV, which is
@@ -95,6 +95,10 @@ extra_rdoc_files:
95
95
  - README.md
96
96
  - LICENSE
97
97
  files:
98
+ - LICENSE
99
+ - README.md
100
+ - bin/chamber
101
+ - lib/chamber.rb
98
102
  - lib/chamber/binary/heroku.rb
99
103
  - lib/chamber/binary/runner.rb
100
104
  - lib/chamber/binary/travis.rb
@@ -102,17 +106,17 @@ files:
102
106
  - lib/chamber/commands/comparable.rb
103
107
  - lib/chamber/commands/compare.rb
104
108
  - lib/chamber/commands/files.rb
109
+ - lib/chamber/commands/heroku.rb
105
110
  - lib/chamber/commands/heroku/clear.rb
106
111
  - lib/chamber/commands/heroku/compare.rb
107
112
  - lib/chamber/commands/heroku/pull.rb
108
113
  - lib/chamber/commands/heroku/push.rb
109
- - lib/chamber/commands/heroku.rb
110
114
  - lib/chamber/commands/initialize.rb
111
115
  - lib/chamber/commands/securable.rb
112
116
  - lib/chamber/commands/secure.rb
113
117
  - lib/chamber/commands/show.rb
114
- - lib/chamber/commands/travis/secure.rb
115
118
  - lib/chamber/commands/travis.rb
119
+ - lib/chamber/commands/travis/secure.rb
116
120
  - lib/chamber/configuration.rb
117
121
  - lib/chamber/context_resolver.rb
118
122
  - lib/chamber/environmentable.rb
@@ -127,15 +131,11 @@ files:
127
131
  - lib/chamber/filters/secure_filter.rb
128
132
  - lib/chamber/instance.rb
129
133
  - lib/chamber/namespace_set.rb
130
- - lib/chamber/rails/railtie.rb
131
134
  - lib/chamber/rails.rb
135
+ - lib/chamber/rails/railtie.rb
132
136
  - lib/chamber/settings.rb
133
137
  - lib/chamber/system_environment.rb
134
138
  - lib/chamber/version.rb
135
- - lib/chamber.rb
136
- - templates/settings.yml
137
- - README.md
138
- - LICENSE
139
139
  - spec/fixtures/settings.yml
140
140
  - spec/lib/chamber/commands/files_spec.rb
141
141
  - spec/lib/chamber/commands/heroku/clear_spec.rb
@@ -157,40 +157,40 @@ files:
157
157
  - spec/lib/chamber/settings_spec.rb
158
158
  - spec/lib/chamber/system_environment_spec.rb
159
159
  - spec/lib/chamber_spec.rb
160
- - spec/rails-2-test/config/application.rb
161
160
  - spec/rails-2-test/config.ru
161
+ - spec/rails-2-test/config/application.rb
162
162
  - spec/rails-2-test/script/console
163
- - spec/rails-3-test/config/application.rb
164
163
  - spec/rails-3-test/config.ru
164
+ - spec/rails-3-test/config/application.rb
165
165
  - spec/rails-3-test/script/rails
166
166
  - spec/rails-4-test/bin/rails
167
- - spec/rails-4-test/config/application.rb
168
167
  - spec/rails-4-test/config.ru
168
+ - spec/rails-4-test/config/application.rb
169
169
  - spec/spec_key
170
170
  - spec/spec_key.pub
171
- - bin/chamber
171
+ - templates/settings.yml
172
172
  homepage: https://github.com/m5rk/chamber
173
173
  licenses: []
174
174
  metadata: {}
175
175
  post_install_message:
176
176
  rdoc_options:
177
- - --charset
177
+ - "--charset"
178
178
  - UTF-8
179
179
  require_paths:
180
180
  - lib
181
181
  required_ruby_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - '>='
183
+ - - ">="
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - '>='
188
+ - - ">="
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project: chamber
193
- rubygems_version: 2.0.14
193
+ rubygems_version: 2.2.2
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: A surprisingly configurable convention-based approach to managing your application's
@@ -228,3 +228,4 @@ test_files:
228
228
  - spec/rails-4-test/config.ru
229
229
  - spec/spec_key
230
230
  - spec/spec_key.pub
231
+ has_rdoc: