configoro 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/VERSION +1 -1
- data/configoro.gemspec +6 -5
- data/lib/configoro/hash.rb +12 -0
- data/spec/configoro/hash_spec.rb +6 -0
- metadata +5 -24
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTIxN2E3Nzg4YmEzM2FmNmQ5YTRhNjgwMDQ4ZmU3YjM2OGI5YWM0Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmQ4MDZhY2ZiNGQ3ZWIzNWIyZGQ3N2Q2NzgxMjhlZjlhY2I5NzUyYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
M2E5Njg1YzEyNDA1ZTFkYjk5NmRiMzBhNDcyZWQ0MTlhYjNiMjlmYzBjZjU0
|
10
|
+
ZTlhZWZmMTM3MTg2ODhhMTYyNjZmY2RhOTY4OTJkZmYwMGIyM2FlZDBlZDli
|
11
|
+
OGVlY2UxZjRmMWRlNzAwNzAxZGJjMzMzNDdiNzVkNzI0OTllYTE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDg2OTU1YmI0ODcxYTFmMmU5Mjk0MjA5NjQyMjQyOTYzOWI2YTQwMjk5NjFi
|
14
|
+
YzAyMTAwYTZiMzQwYjJmNWJmM2ZlZGE3MDQxZTViZDEyZmFkOTU2ZjA5MmRm
|
15
|
+
NTgxN2YwNzgzOTM4YzQxMTgyNGNhYTJjNjk3OGFmY2ZlYWJkYTU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
data/configoro.gemspec
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: configoro 1.4.0 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "configoro"
|
8
|
-
s.version = "1.
|
9
|
+
s.version = "1.4.0"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
11
13
|
s.authors = ["Tim Morgan"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2014-05-31"
|
13
15
|
s.description = "Creates a YourApp::Configuration object whose methods are generated from environment-specific YAML files."
|
14
16
|
s.email = "git@timothymorgan.info"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -48,12 +50,11 @@ Gem::Specification.new do |s|
|
|
48
50
|
]
|
49
51
|
s.homepage = "http://github.com/RISCfuture/configoro"
|
50
52
|
s.licenses = ["MIT"]
|
51
|
-
s.
|
52
|
-
s.rubygems_version = "1.8.25"
|
53
|
+
s.rubygems_version = "2.2.2"
|
53
54
|
s.summary = "Configuration object and YAML-based storage for Rails apps"
|
54
55
|
|
55
56
|
if s.respond_to? :specification_version then
|
56
|
-
s.specification_version =
|
57
|
+
s.specification_version = 4
|
57
58
|
|
58
59
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
59
60
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
data/lib/configoro/hash.rb
CHANGED
@@ -93,6 +93,18 @@ module Configoro
|
|
93
93
|
"#{to_hash.inspect}:#{self.class.to_s}"
|
94
94
|
end
|
95
95
|
|
96
|
+
def to_symbolized_hash
|
97
|
+
inject({}) do |hsh, (key, value)|
|
98
|
+
case value
|
99
|
+
when Configoro::Hash
|
100
|
+
hsh[key.to_sym] = value.to_symbolized_hash
|
101
|
+
else
|
102
|
+
hsh[key.to_sym] = value
|
103
|
+
end
|
104
|
+
hsh
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
96
108
|
protected
|
97
109
|
|
98
110
|
def self.new_from_hash_copying_default(hash)
|
data/spec/configoro/hash_spec.rb
CHANGED
@@ -119,4 +119,10 @@ describe Configoro::Hash do
|
|
119
119
|
subject.hsh.key2.should eql('newval')
|
120
120
|
end
|
121
121
|
end
|
122
|
+
|
123
|
+
describe "#to_symbolized_hash" do
|
124
|
+
subject { Configoro::Hash.new(foo: {bar: 'baz'}) }
|
125
|
+
|
126
|
+
its(:to_symbolized_hash) { should eql(foo: {bar: 'baz'}) }
|
127
|
+
end
|
122
128
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configoro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tim Morgan
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rails
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: yard
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: redcarpet
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: bundler
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ! '>='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,7 +97,6 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: jeweler
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ! '>='
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ! '>='
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -163,29 +148,25 @@ files:
|
|
163
148
|
homepage: http://github.com/RISCfuture/configoro
|
164
149
|
licenses:
|
165
150
|
- MIT
|
151
|
+
metadata: {}
|
166
152
|
post_install_message:
|
167
153
|
rdoc_options: []
|
168
154
|
require_paths:
|
169
155
|
- lib
|
170
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
157
|
requirements:
|
173
158
|
- - ! '>='
|
174
159
|
- !ruby/object:Gem::Version
|
175
160
|
version: '0'
|
176
|
-
segments:
|
177
|
-
- 0
|
178
|
-
hash: 704424154197936209
|
179
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
-
none: false
|
181
162
|
requirements:
|
182
163
|
- - ! '>='
|
183
164
|
- !ruby/object:Gem::Version
|
184
165
|
version: '0'
|
185
166
|
requirements: []
|
186
167
|
rubyforge_project:
|
187
|
-
rubygems_version:
|
168
|
+
rubygems_version: 2.2.2
|
188
169
|
signing_key:
|
189
|
-
specification_version:
|
170
|
+
specification_version: 4
|
190
171
|
summary: Configuration object and YAML-based storage for Rails apps
|
191
172
|
test_files: []
|