pact-support 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 79273cad2c28a3b3106d718683b4d867c9fb9bbc
4
- data.tar.gz: 56a72d14b91e0928a3acf812288e1989d1dff365
3
+ metadata.gz: b9b0802e65397a07e52ef1b6e595ce4a31ba0599
4
+ data.tar.gz: 531047ac906caefa9cbf2d171540077c51ebc377
5
5
  SHA512:
6
- metadata.gz: 6176fa4dd712fa3a6ab93f0d637fc832f723c9abda2e52adb6ccec83c7581f9765ca018a6ad399769eb52373e6d5aba2364b513748b447e0e3e9b3e6b76919fd
7
- data.tar.gz: 02d6c75a7db9874b37d88084a37b7ed94fde000eaab6e3af75823c64fc082d5252f5a3da4ad3ed18ff0d93df43f0290d1d4a0ef5377c07270ca69fceb8e37a63
6
+ metadata.gz: 3690f60b93a21869ebb1fdf80000ffb85ee97b57288ef00c3ef6f4f42b3edce58e7c51628a01d1a5cfffc56d5dc4fb963ff25de99f47188c4a1a9cd04acb746d
7
+ data.tar.gz: 249b66e3e2cf5a696216e505cb1104948d1d7ed7e84e9aa9f0e33558e4fd526bd05497cbc50ce9ef86bf6d57d068b4098bed516015cec78796c34ea4abb4b3e0
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --color
2
2
  --format documentation
3
+ --require spec_helper
@@ -2,6 +2,10 @@ Do this to generate your change history
2
2
 
3
3
  git log --pretty=format:' * %h - %s (%an, %ad)'
4
4
 
5
+ ### 0.1.3 (12 December 2014)
6
+
7
+ * 27f3625 - Fixed bug rendering no diff indicator as JSON (Beth, Fri Dec 12 10:42:50 2014 +1100)
8
+
5
9
  ### 0.1.2 (22 October 2014)
6
10
 
7
11
  * 00280ac - Added logic to match form data when specified as a Hash (bethesque, Wed Oct 22 15:21:39 2014 +1100)
@@ -3,7 +3,7 @@ module Pact
3
3
  class NoDiffIndicator
4
4
 
5
5
  def to_json options = {}
6
- to_s
6
+ to_s.inspect
7
7
  end
8
8
 
9
9
  def to_s
@@ -15,4 +15,4 @@ module Pact
15
15
  end
16
16
  end
17
17
  end
18
- end
18
+ end
@@ -1,3 +1,5 @@
1
+ # The support you need when you use ActiveSupport
2
+
1
3
  module Pact
2
4
  module ActiveSupportSupport
3
5
 
@@ -48,4 +50,4 @@ module Pact
48
50
  end
49
51
 
50
52
  end
51
- end
53
+ end
@@ -1,5 +1,5 @@
1
1
  module Pact
2
2
  module Support
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -0,0 +1,15 @@
1
+ require 'pact/matchers/no_diff_indicator'
2
+
3
+ module Pact
4
+ module Matchers
5
+ describe NoDiffIndicator do
6
+
7
+ describe "#to_json" do
8
+ it "returns a json string" do
9
+ expect(NoDiffIndicator.new.to_json).to eq '"no difference here!"'
10
+ end
11
+ end
12
+
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pact-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Fraser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-10-22 00:00:00.000000000 Z
15
+ date: 2014-12-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: randexp
@@ -296,6 +296,7 @@ files:
296
296
  - spec/lib/pact/matchers/index_not_found_spec.rb
297
297
  - spec/lib/pact/matchers/list_diff_formatter_spec.rb
298
298
  - spec/lib/pact/matchers/matchers_spec.rb
299
+ - spec/lib/pact/matchers/no_diff_indicator_spec.rb
299
300
  - spec/lib/pact/matchers/regexp_difference_spec.rb
300
301
  - spec/lib/pact/matchers/type_difference_spec.rb
301
302
  - spec/lib/pact/matchers/unexpected_index_spec.rb
@@ -374,6 +375,7 @@ test_files:
374
375
  - spec/lib/pact/matchers/index_not_found_spec.rb
375
376
  - spec/lib/pact/matchers/list_diff_formatter_spec.rb
376
377
  - spec/lib/pact/matchers/matchers_spec.rb
378
+ - spec/lib/pact/matchers/no_diff_indicator_spec.rb
377
379
  - spec/lib/pact/matchers/regexp_difference_spec.rb
378
380
  - spec/lib/pact/matchers/type_difference_spec.rb
379
381
  - spec/lib/pact/matchers/unexpected_index_spec.rb