rspec-json_matchers 0.1.0.alpha.2 → 0.1.0.alpha.3

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: c8a8d3fdb38106995f0116c157f8a02a915d97de
4
- data.tar.gz: d11e9f4fcc661dbb02731398bf306f79304728e6
3
+ metadata.gz: 91e5b7f422c49f7e1400992d4a279cf2d491c856
4
+ data.tar.gz: 69a46b761332223e2745fa806dcb860479843bd2
5
5
  SHA512:
6
- metadata.gz: 7b80c90b32ebd1caabda67697d3922c9085ab8fe680705fc77257bebdfffb6b046e48d9f23eefe0d6b4c31361e4215f4f9d35d1a27c10459ecd07a926e5e3862
7
- data.tar.gz: cf832440789cd1f53e82c83bd32446519c2acd6e285da092962a96358676458716f5505a078da5bed0e0bbceb9fc77059aba61f8d3c601735b35218b37c98794
6
+ metadata.gz: 7d0fd77345e589549cdb269cf4862014d768e37df32e953fa03847906046f2ee7beadf31d3e77f75a592b18858c7e3fa22332fc3bd86ab22a49fbdd5d1feb51d
7
+ data.tar.gz: b284ea87643590e87ba19e3a8ae9bc82f7113e0da2679e3b8d826d94015aac923ca373f3ad4d4b300963d0714022dacbe5df908175796d75fe5fbb9e9e5ff50b
data/doc/Story.md CHANGED
@@ -123,7 +123,6 @@ In the near future:
123
123
  - Add `CONTRIBUTING.md` if appropriate
124
124
 
125
125
  There are several features that might be considered to be implemented in the future:
126
- - Built-in "expectation" for "type or null"
127
126
  - Built-in "expectation" for "date"
128
127
  - Path matching feature in [`airborne`](https://github.com/brooklynDev/airborne)
129
128
  - `be_json.with_types` which only accepts classes (only? not sure)
@@ -69,21 +69,17 @@ module RSpec
69
69
  # (e.g. using `should`)
70
70
  #
71
71
  # @return [String]
72
- def failure_message_for_positive
72
+ def failure_message
73
73
  "expected value to be parsed as JSON, but failed"
74
74
  end
75
- alias_method :failure_message,
76
- :failure_message_for_positive
77
75
 
78
76
  # Failure message displayed when a negative example failed
79
77
  # (e.g. using `should_not`)
80
78
  #
81
79
  # @return [String]
82
- def failure_message_for_negative
80
+ def failure_message_when_negated
83
81
  "expected value not to be parsed as JSON, but succeeded"
84
82
  end
85
- alias_method :failure_message_when_negated,
86
- :failure_message_for_negative
87
83
 
88
84
  private
89
85
 
@@ -87,14 +87,14 @@ module RSpec
87
87
  self
88
88
  end
89
89
 
90
- # Overrides {BeJsonMatcher#failure_message_for_positive}
91
- def failure_message_for_positive
90
+ # Overrides {BeJsonMatcher#failure_message}
91
+ def failure_message
92
92
  return super if has_parser_error?
93
93
  failure_message_for(true)
94
94
  end
95
95
 
96
- # Overrides {BeJsonMatcher#failure_message_for_negative}
97
- def failure_message_for_negative
96
+ # Overrides {BeJsonMatcher#failure_message_when_negated}
97
+ def failure_message_when_negated
98
98
  return super if has_parser_error?
99
99
  failure_message_for(false)
100
100
  end
@@ -5,6 +5,6 @@ module RSpec
5
5
  # The version of the gem
6
6
  # Used for generating the value in gemspec file
7
7
  # Also can be referenced by code for debugging or other purposes
8
- VERSION = "0.1.0.alpha.2"
8
+ VERSION = "0.1.0.alpha.3"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-json_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.2
4
+ version: 0.1.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PikachuEXE
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-21 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec