hash_dealer 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/hash_dealer.gemspec +1 -1
  3. data/lib/matcher.rb +3 -3
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.5
1
+ 1.2.6
data/hash_dealer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hash_dealer}
8
- s.version = "1.2.5"
8
+ s.version = "1.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Langevin"]
data/lib/matcher.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # just in case it's not loaded
2
2
  require 'rspec'
3
+ require 'pp'
3
4
 
4
5
  RSpec::Matchers.define(:match_response) do |actual|
5
6
 
@@ -8,13 +9,12 @@ RSpec::Matchers.define(:match_response) do |actual|
8
9
  end
9
10
 
10
11
  failure_message_for_should do |container|
11
- "expected #{PathString.as_sorted_json(actual)}\n to equal\n #{PathString.as_sorted_json(container)}"
12
+ "expected #{PathString.as_sorted_json(actual).pretty_inspect}\n to equal\n #{PathString.as_sorted_json(container).pretty_inspect}"
12
13
  end
13
14
 
14
15
  failure_message_for_should_not do |container|
15
- "expected #{PathString.as_sorted_json(actual)}\n not to equal\n #{PathString.as_sorted_json(container)}"
16
+ "expected #{PathString.as_sorted_json(actual).pretty_inspect}\n not to equal\n #{PathString.as_sorted_json(container).pretty_inspect}"
16
17
  end
17
-
18
18
  end
19
19
 
20
20
  # alias as match_json
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hash_dealer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.5
5
+ version: 1.2.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Langevin
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- hash: 3662046740656638097
132
+ hash: -3331694246731303035
133
133
  segments:
134
134
  - 0
135
135
  version: "0"