rspec-protobuf 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: ae8739f180ed388f80da7486fb02c809a4cb81aa524c63986fa15d4a002b30f9
4
- data.tar.gz: 11be76d911202e00bdc6084c173754d835df59eb363f239d2ae46289ce85c023
3
+ metadata.gz: 067f4cadf677ad482da31b4d3dbcb66cd53e79f434807d67e0e9522144109b32
4
+ data.tar.gz: fdc42f1600c8cbc1f97388a413ae81bded5cc8451e84128907854a453953d709
5
5
  SHA512:
6
- metadata.gz: bca33b284f98f8a48fc5b5b6a69ef927d8d29212a1c093c72cfcda7425476a7d8cdaed617866f045b6b62e688b6f7165e93c4eca28b39c2476a8454f32480c67
7
- data.tar.gz: 1972979254b796caafed01a06c298e7ad578e3171516363bb4c0aaf720527ce8cfd51f77501dd267ebd4e9f0bc97d10e9f4ce6e43095cedff19cb6cdb14e2008
6
+ metadata.gz: 548a3253d3e1c1f36e1bc00472822c61eaf6f96a02865ac71533aec137958a34bbd2d24dc5f4a170eb4949b4fcbf31f1966b62d546caf3bd3d3086b2a520a163
7
+ data.tar.gz: 514ea10c3836b87c2f82bc7b6e9cefa8c94514238791b76c462cad5fdbed82fe21af8ba1ade18dc7a616846e8c863aad4d118621e50dd2f1d792179930216ccf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### v0.3.1 (2023-03-27)
2
+ - bugfix
3
+
1
4
  ### v0.3.0 (2023-03-25)
2
5
  - match repeated field
3
6
  - match default values
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-protobuf (0.3.0)
4
+ rspec-protobuf (0.3.1)
5
5
  google-protobuf (>= 3)
6
6
  rspec-expectations (>= 3)
7
7
 
@@ -79,10 +79,10 @@ module RSpec
79
79
  end
80
80
 
81
81
  def values_match?(actual, expected)
82
- if actual.is_a?(Google::Protobuf::MessageExts)
82
+ expected === actual || if actual.is_a?(Google::Protobuf::MessageExts)
83
83
  case expected
84
84
  when Google::Protobuf::MessageExts
85
- expected === actual
85
+ # expected === actual
86
86
  when Hash
87
87
  # recurse
88
88
  actual.matches?(**expected)
@@ -90,8 +90,6 @@ module RSpec
90
90
  # eg. RSpec matchers
91
91
  expected === actual.to_h
92
92
  end
93
- else
94
- expected === actual
95
93
  end
96
94
  end
97
95
  end
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Protobuf
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf