fittings 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -0
- data/fittings.gemspec +2 -2
- data/lib/setting.rb +15 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7c44f5b3bafa9d321cf169b3a7536d88c955779f4fba11911b981ae669f5b77
|
4
|
+
data.tar.gz: 9082f536e7cfc19f7ebc525fce4583c58a00d4f1c361079c00a78cb176c4d48c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d723a4a353a5c8d8e81e4158b64517513edea4ce3b8af2bee6465e7db94366242fa4a08458cdc06d259a0fb5beeda0c63145a4569a9eb0ffa5700faa03e418f5
|
7
|
+
data.tar.gz: b907c5a01ef21a1b535ca0106410dd33b44c0778a4eab7ba721b0fac2d4ac4695f3d87a2f1eaf83637ffe3a44378d8be11c831e3ee41e8ecf16bd39b1e8e917c
|
data/.circleci/config.yml
CHANGED
data/fittings.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "fittings"
|
3
|
-
s.version = "3.0.
|
3
|
+
s.version = "3.0.2"
|
4
4
|
|
5
5
|
s.authors = ["Edwin Cruz", "Colin Shield"]
|
6
6
|
s.date = %q{2011-09-06}
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
23
|
s.required_ruby_version = ">= 2.4.0"
|
24
|
-
s.add_dependency("hashie"
|
24
|
+
s.add_dependency("hashie")
|
25
25
|
s.add_development_dependency "rspec"
|
26
26
|
s.add_development_dependency "rake"
|
27
27
|
s.add_development_dependency "rdoc"
|
data/lib/setting.rb
CHANGED
@@ -82,7 +82,7 @@ class Setting
|
|
82
82
|
#=================================================================
|
83
83
|
|
84
84
|
def initialize
|
85
|
-
@available_settings ||=
|
85
|
+
@available_settings ||= new_available_settings
|
86
86
|
end
|
87
87
|
|
88
88
|
def has_key?(key)
|
@@ -146,7 +146,7 @@ class Setting
|
|
146
146
|
|
147
147
|
def load(params)
|
148
148
|
# reset settings hash
|
149
|
-
@available_settings =
|
149
|
+
@available_settings = new_available_settings
|
150
150
|
@loaded = false
|
151
151
|
|
152
152
|
files = []
|
@@ -177,4 +177,17 @@ class Setting
|
|
177
177
|
@loaded = true
|
178
178
|
@available_settings
|
179
179
|
end
|
180
|
+
|
181
|
+
private
|
182
|
+
|
183
|
+
def new_available_settings
|
184
|
+
# Spectre and other monoliths are tied to Hashie 3.x
|
185
|
+
# so once that isn't a problem and all apps can use Hashie >= 4.0
|
186
|
+
# then then Hashie::Mash.quiet can become the default.
|
187
|
+
if Hashie::Mash.respond_to?(:quiet)
|
188
|
+
Hashie::Mash.quiet(:default).new
|
189
|
+
else
|
190
|
+
Hashie::Mash.new
|
191
|
+
end
|
192
|
+
end
|
180
193
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fittings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edwin Cruz
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|