webmock-twirp 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +15 -33
- data/README.md +2 -0
- data/lib/webmock/twirp/request_stub.rb +6 -0
- data/lib/webmock/twirp/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: 607a11741909a668d93abbf06cc7c1a63f2be283230c46f2bc9ca3fc230cb747
|
4
|
+
data.tar.gz: 6ebdf1ef48c0886b5c0dda1db1bad290295b7efe52115a28dfaca66dec2ff1df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9166fa3477ecc944b0b726f7391307c9c75a5aa50a93ae20aa43f8a3d3af82bf536a4a9b949a7ae757ed27655a650b7b641d956a25ad6d3f5bd87516e478798
|
7
|
+
data.tar.gz: c0c2eb90b95a0eb0039772fccc7053e9c19170e38c34f6d002c83edb779b544ef555b827d0c49e8f36b5c4df9ac4780db89540d8759c55e8de4534dc0d2b0295
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,50 +1,32 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
webmock-twirp (0.4.
|
4
|
+
webmock-twirp (0.4.2)
|
5
5
|
twirp (>= 1)
|
6
6
|
webmock (>= 3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.8.
|
11
|
+
addressable (2.8.3)
|
12
12
|
public_suffix (>= 2.0.2, < 6.0)
|
13
13
|
byebug (11.1.3)
|
14
|
-
codecov (0.
|
15
|
-
|
14
|
+
codecov (0.2.12)
|
15
|
+
json
|
16
|
+
simplecov
|
16
17
|
crack (0.4.5)
|
17
18
|
rexml
|
18
19
|
diff-lcs (1.5.0)
|
19
20
|
docile (1.4.0)
|
20
|
-
faraday (
|
21
|
-
faraday-
|
22
|
-
faraday-em_synchrony (~> 1.0)
|
23
|
-
faraday-excon (~> 1.1)
|
24
|
-
faraday-httpclient (~> 1.0)
|
25
|
-
faraday-multipart (~> 1.0)
|
26
|
-
faraday-net_http (~> 1.0)
|
27
|
-
faraday-net_http_persistent (~> 1.0)
|
28
|
-
faraday-patron (~> 1.0)
|
29
|
-
faraday-rack (~> 1.0)
|
30
|
-
faraday-retry (~> 1.0)
|
21
|
+
faraday (2.7.4)
|
22
|
+
faraday-net_http (>= 2.0, < 3.1)
|
31
23
|
ruby2_keywords (>= 0.0.4)
|
32
|
-
faraday-
|
33
|
-
|
34
|
-
faraday-excon (1.1.0)
|
35
|
-
faraday-httpclient (1.0.1)
|
36
|
-
faraday-multipart (1.0.4)
|
37
|
-
multipart-post (~> 2)
|
38
|
-
faraday-net_http (1.0.1)
|
39
|
-
faraday-net_http_persistent (1.2.0)
|
40
|
-
faraday-patron (1.0.0)
|
41
|
-
faraday-rack (1.0.0)
|
42
|
-
faraday-retry (1.0.3)
|
43
|
-
google-protobuf (3.21.12)
|
24
|
+
faraday-net_http (3.0.2)
|
25
|
+
google-protobuf (3.22.2)
|
44
26
|
hashdiff (1.0.1)
|
45
|
-
|
27
|
+
json (2.6.3)
|
46
28
|
public_suffix (5.0.1)
|
47
|
-
rack (3.0.
|
29
|
+
rack (3.0.7)
|
48
30
|
rexml (3.2.5)
|
49
31
|
rspec (3.12.0)
|
50
32
|
rspec-core (~> 3.12.0)
|
@@ -60,20 +42,20 @@ GEM
|
|
60
42
|
rspec-support (~> 3.12.0)
|
61
43
|
rspec-support (3.12.0)
|
62
44
|
ruby2_keywords (0.0.5)
|
63
|
-
simplecov (0.
|
45
|
+
simplecov (0.22.0)
|
64
46
|
docile (~> 1.1)
|
65
47
|
simplecov-html (~> 0.11)
|
66
48
|
simplecov_json_formatter (~> 0.1)
|
67
49
|
simplecov-html (0.12.3)
|
68
50
|
simplecov_json_formatter (0.1.4)
|
69
|
-
twirp (1.
|
70
|
-
faraday (<
|
51
|
+
twirp (1.10.0)
|
52
|
+
faraday (< 3)
|
71
53
|
google-protobuf (~> 3.0, >= 3.7.0)
|
72
54
|
webmock (3.18.1)
|
73
55
|
addressable (>= 2.8.0)
|
74
56
|
crack (>= 0.3.2)
|
75
57
|
hashdiff (>= 0.4.0, < 2.0.0)
|
76
|
-
webrick (1.
|
58
|
+
webrick (1.8.1)
|
77
59
|
|
78
60
|
PLATFORMS
|
79
61
|
ruby
|
data/README.md
CHANGED
@@ -77,6 +77,12 @@ module WebMock
|
|
77
77
|
raise ArgumentError, "specify request or attrs, but not both"
|
78
78
|
end
|
79
79
|
|
80
|
+
# support Ruby 2 style attributes-as-hash instead of kwargs
|
81
|
+
if request.is_a?(Hash)
|
82
|
+
attrs = request
|
83
|
+
request = nil
|
84
|
+
end
|
85
|
+
|
80
86
|
request_matcher = if request
|
81
87
|
unless request.is_a?(Google::Protobuf::MessageExts)
|
82
88
|
raise TypeError, "Expected request to be Protobuf::MessageExts, found: #{request}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webmock-twirp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Pepper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|