fittings 3.0.1 → 3.0.2.RC1
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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24cee8334941da8c02765aceff21ac9f8548d071cf6e6a8381ac669e2e97f053
|
4
|
+
data.tar.gz: 4a97af1a35e65aa6b785020618e707a6c4d6c0e95a3022eaffeb11706e47c181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51858fee047b68a3b979ffca7a4012e88d477bfe18297ec9b468d66d06f13dfe5eab8d9645ab3f2c3f9e7b134b74c14972eca8ff48548d2c833806c5eaf8ad45
|
7
|
+
data.tar.gz: 398776085cb249a36525479f6694b559247af18b5fcd0cf9f0d15bc0b428ea0bdfa4842c8b6bac860d588cadac50f89d0e0e6f5d0b4485c59c2d444c8cedd139
|
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.RC1"
|
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.RC1
|
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
|
@@ -125,9 +125,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: 2.4.0
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - ">"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: 1.3.1
|
131
131
|
requirements: []
|
132
132
|
rubygems_version: 3.2.33
|
133
133
|
signing_key:
|