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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8a83abcea162ee3bbe64e45d8ae9aaaba7b3c8bc7b880ec1b2425126b4560da
4
- data.tar.gz: 201965f0dad612ff9deb52086ab356715ebd176bad9ebe7da56243f94907cfb1
3
+ metadata.gz: d7c44f5b3bafa9d321cf169b3a7536d88c955779f4fba11911b981ae669f5b77
4
+ data.tar.gz: 9082f536e7cfc19f7ebc525fce4583c58a00d4f1c361079c00a78cb176c4d48c
5
5
  SHA512:
6
- metadata.gz: 40230ecfe3a3ea8a2fa32c7976158ca36aaf03dad0c3b84f31a2c20e9df0dfa74ee184eaf5739ec58952783fae0ff26ec4e1c9cc0fbcbcf697948383dab02510
7
- data.tar.gz: bc6ee4da0fc3ff0975eef30f4888ba52f1620129241abe7ddd05da6138afc34ef1b561e8729ed679631cf4715822827b09051400a0fbb47e49300bfd5d3083fb
6
+ metadata.gz: d723a4a353a5c8d8e81e4158b64517513edea4ce3b8af2bee6465e7db94366242fa4a08458cdc06d259a0fb5beeda0c63145a4569a9eb0ffa5700faa03e418f5
7
+ data.tar.gz: b907c5a01ef21a1b535ca0106410dd33b44c0778a4eab7ba721b0fac2d4ac4695f3d87a2f1eaf83637ffe3a44378d8be11c831e3ee41e8ecf16bd39b1e8e917c
data/.circleci/config.yml CHANGED
@@ -119,6 +119,8 @@ jobs:
119
119
  workflows:
120
120
  version: 2
121
121
  on-commit:
122
+ unless:
123
+ equal: [ "schedule", << pipeline.parameters.GHA_Event >> ]
122
124
  jobs:
123
125
  - release:
124
126
  context: org-global
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.1"
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", ">= 4.0")
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 ||= Hashie::Mash.quiet(:default).new
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 = Hashie::Mash.quiet(:default).new
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.1
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: '4.0'
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: '4.0'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement