hashie 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/lib/hashie.rb +1 -15
- data/lib/hashie/extensions/ruby_version_check.rb +2 -0
- data/lib/hashie/logger.rb +16 -0
- data/lib/hashie/mash.rb +2 -0
- data/lib/hashie/version.rb +1 -1
- data/spec/integration/omniauth/integration_spec.rb +37 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e68805c828e2bfe9d5921050a82bb0ac4d58428
|
4
|
+
data.tar.gz: 37906b7b9d2cd7f123b9968e9e67e2076c4e7bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1723cc215b0fbadd587e7f48827126e3d254b501498954a757ae445dc40eb8213d6499832182548387469b022f2f9b7af73085ecb1dbcdc6e3813d861b4ad60
|
7
|
+
data.tar.gz: fca4da7f4d73669f12c3e2f7b696ce2ffbde9aba07b33f61c0879e5f8428d59c441b5dedbc59db003bb42a4fecafd202cdc6f2145183dcdd407dbabdd3508d01
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
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
data/lib/hashie.rb
CHANGED
@@ -2,21 +2,7 @@ require 'logger'
|
|
2
2
|
require 'hashie/version'
|
3
3
|
|
4
4
|
module Hashie
|
5
|
-
|
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'
|
@@ -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
|
data/lib/hashie/mash.rb
CHANGED
data/lib/hashie/version.rb
CHANGED
@@ -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.
|
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
|