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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/rspec/protobuf/refinements.rb +2 -4
- data/lib/rspec/protobuf/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 067f4cadf677ad482da31b4d3dbcb66cd53e79f434807d67e0e9522144109b32
|
4
|
+
data.tar.gz: fdc42f1600c8cbc1f97388a413ae81bded5cc8451e84128907854a453953d709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 548a3253d3e1c1f36e1bc00472822c61eaf6f96a02865ac71533aec137958a34bbd2d24dc5f4a170eb4949b4fcbf31f1966b62d546caf3bd3d3086b2a520a163
|
7
|
+
data.tar.gz: 514ea10c3836b87c2f82bc7b6e9cefa8c94514238791b76c462cad5fdbed82fe21af8ba1ade18dc7a616846e8c863aad4d118621e50dd2f1d792179930216ccf
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|