hashie 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9465a1bbfbb1047d8ad8a17483073cec81dd65
4
- data.tar.gz: 955e55fec9b59772e24b2bfca191b9c8c2195a04
3
+ metadata.gz: 9e68805c828e2bfe9d5921050a82bb0ac4d58428
4
+ data.tar.gz: 37906b7b9d2cd7f123b9968e9e67e2076c4e7bc5
5
5
  SHA512:
6
- metadata.gz: f676666e411dc1aa67a65f5548fff4093445a7beaca8f1634e37d5eb8b0122679bc65abd90073c46140b7b87fb57d5fca54a89a63bf2b08942767e482f39406a
7
- data.tar.gz: cc3f221711869e4ced90b33d8f873bad001f310946593e9f8c6b67e035b85f1591e4af05a8440dced9a41a004dc244795fbb215a173de866ba5239ce3ae1f8dc
6
+ metadata.gz: f1723cc215b0fbadd587e7f48827126e3d254b501498954a757ae445dc40eb8213d6499832182548387469b022f2f9b7af73085ecb1dbcdc6e3813d861b4ad60
7
+ data.tar.gz: fca4da7f4d73669f12c3e2f7b696ce2ffbde9aba07b33f61c0879e5f8428d59c441b5dedbc59db003bb42a4fecafd202cdc6f2145183dcdd407dbabdd3508d01
@@ -6,7 +6,13 @@ scheme are considered to be bugs.
6
6
 
7
7
  [semver]: http://semver.org/spec/v2.0.0.html
8
8
 
9
- ## [3.5.0] - 2017-01-31
9
+ ## [3.5.1] - 2017-01-31
10
+
11
+ * [#392](https://github.com/intridea/hashie/pull/392): Fix for #391: Require all dependencies of Hashie::Mash - [@dblock](https://github.com/dblock).
12
+
13
+ [3.5.1]: https://github.com/intridea/hashie/compare/v3.5.0...v3.5.1
14
+
15
+ ## [3.5.0] - 2017-01-31 (YANKED)
10
16
 
11
17
  * [#386](https://github.com/intridea/hashie/pull/386): Fix for #385: Make `deep_merge` always `deep_dup` nested hashes before merging them in so that there are no shared references between the two hashes being merged. - [@mltsy](https://github.com/mltsy).
12
18
  * [#389](https://github.com/intridea/hashie/pull/389): Support Ruby 2.4.0 - [@camelmasa](https://github.com/camelmasa).
data/README.md CHANGED
@@ -20,7 +20,7 @@ $ gem install hashie
20
20
 
21
21
  ## Upgrading
22
22
 
23
- You're reading the documentation for the next release of Hashie, which should be 3.4.7. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version. The current stable release is [3.4.6](https://github.com/intridea/hashie/blob/v3.4.6/README.md).
23
+ You're reading the documentation for the stable release of Hashie, 3.5.1. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
24
24
 
25
25
  ## Hash Extensions
26
26
 
data/Rakefile CHANGED
@@ -7,6 +7,7 @@ Bundler::GemHelper.install_tasks
7
7
  require 'rspec/core/rake_task'
8
8
  RSpec::Core::RakeTask.new do |spec|
9
9
  spec.pattern = 'spec/**/*_spec.rb'
10
+ spec.exclude_pattern = 'spec/integration/**/*_spec.rb'
10
11
  end
11
12
 
12
13
  require 'rubocop/rake_task'
@@ -2,21 +2,7 @@ require 'logger'
2
2
  require 'hashie/version'
3
3
 
4
4
  module Hashie
5
- # The logger that Hashie uses for reporting errors.
6
- #
7
- # @return [Logger]
8
- def self.logger
9
- @logger ||= Logger.new(STDOUT)
10
- end
11
-
12
- # Sets the logger that Hashie uses for reporting errors.
13
- #
14
- # @param logger [Logger] The logger to set as Hashie's logger.
15
- # @return [void]
16
- def self.logger=(logger)
17
- @logger = logger
18
- end
19
-
5
+ autoload :Logger, 'hashie/logger'
20
6
  autoload :Clash, 'hashie/clash'
21
7
  autoload :Dash, 'hashie/dash'
22
8
  autoload :Hash, 'hashie/hash'
@@ -1,3 +1,5 @@
1
+ require 'hashie/extensions/ruby_version'
2
+
1
3
  module Hashie
2
4
  module Extensions
3
5
  module RubyVersionCheck
@@ -0,0 +1,16 @@
1
+ module Hashie
2
+ # The logger that Hashie uses for reporting errors.
3
+ #
4
+ # @return [Logger]
5
+ def self.logger
6
+ @logger ||= Logger.new(STDOUT)
7
+ end
8
+
9
+ # Sets the logger that Hashie uses for reporting errors.
10
+ #
11
+ # @param logger [Logger] The logger to set as Hashie's logger.
12
+ # @return [void]
13
+ def self.logger=(logger)
14
+ @logger = logger
15
+ end
16
+ end
@@ -1,5 +1,7 @@
1
1
  require 'hashie/hash'
2
2
  require 'hashie/array'
3
+ require 'hashie/utils'
4
+ require 'hashie/logger'
3
5
 
4
6
  module Hashie
5
7
  # Mash allows you to create pseudo-objects that have method-like
@@ -1,3 +1,3 @@
1
1
  module Hashie
2
- VERSION = '3.5.0'
2
+ VERSION = '3.5.1'
3
3
  end
@@ -0,0 +1,37 @@
1
+ ENV['RACK_ENV'] = 'test'
2
+
3
+ require 'rspec/core'
4
+ require 'rack/test'
5
+ require 'sinatra'
6
+ require 'omniauth'
7
+
8
+ class MyApplication < Sinatra::Base
9
+ use Rack::Session::Cookie
10
+ use OmniAuth::Strategies::Developer
11
+
12
+ get '/' do
13
+ 'Hello World'
14
+ end
15
+ end
16
+
17
+ module RSpecMixin
18
+ include Rack::Test::Methods
19
+ def app
20
+ MyApplication
21
+ end
22
+ end
23
+
24
+ RSpec.configure do |config|
25
+ config.include RSpecMixin
26
+ config.expect_with :rspec do |expect|
27
+ expect.syntax = :expect
28
+ end
29
+ end
30
+
31
+ describe 'omniauth' do
32
+ it 'works' do
33
+ get '/'
34
+ expect(last_response).to be_ok
35
+ expect(last_response.body).to eq 'Hello World'
36
+ end
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -96,6 +96,7 @@ files:
96
96
  - lib/hashie/extensions/stringify_keys.rb
97
97
  - lib/hashie/extensions/symbolize_keys.rb
98
98
  - lib/hashie/hash.rb
99
+ - lib/hashie/logger.rb
99
100
  - lib/hashie/mash.rb
100
101
  - lib/hashie/rash.rb
101
102
  - lib/hashie/trash.rb
@@ -130,6 +131,7 @@ files:
130
131
  - spec/hashie/utils_spec.rb
131
132
  - spec/hashie/version_spec.rb
132
133
  - spec/hashie_spec.rb
134
+ - spec/integration/omniauth/integration_spec.rb
133
135
  - spec/spec_helper.rb
134
136
  - spec/support/logger.rb
135
137
  - spec/support/module_context.rb
@@ -188,6 +190,7 @@ test_files:
188
190
  - spec/hashie/utils_spec.rb
189
191
  - spec/hashie/version_spec.rb
190
192
  - spec/hashie_spec.rb
193
+ - spec/integration/omniauth/integration_spec.rb
191
194
  - spec/spec_helper.rb
192
195
  - spec/support/logger.rb
193
196
  - spec/support/module_context.rb