clientside_aws 0.0.19 → 0.0.20
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 +4 -4
- data/lib/clientside_aws/mock.rb +4 -4
- data/lib/clientside_aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00fbd69fc0139f687b26e462c9aba853ac120cc9
|
4
|
+
data.tar.gz: 1ac07ca852c45395d6401efc23d9d5eba49240ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b4e58a2b77f3f39c1d51fc416bac7f88b8e9ec1af22cf1a5002fc1de053e4905c2ca34ba61740ae542ad7380a392ae6a7f85bbb214727f81dca32ff251b161
|
7
|
+
data.tar.gz: 972660feaa27830c0969c30e4fae938bdf6e42b5ab94afe1dcdb3f164e2a051e0316453fa92a14131e70ae282bd3f9123cdd86b8f91dce648b33c78f82b9afd4
|
data/lib/clientside_aws/mock.rb
CHANGED
@@ -100,12 +100,12 @@ def mock_delete(request:)
|
|
100
100
|
end
|
101
101
|
|
102
102
|
# Use WebMock to intercept all requests and redirect to our container
|
103
|
-
WebMock.stub_request(:post, %r{https?\:\/\/
|
103
|
+
WebMock.stub_request(:post, %r{https?\:\/\/[\w\.]+\.us\-mockregion\-1}) \
|
104
104
|
.to_return do |request|
|
105
105
|
mock_post(request: request)
|
106
106
|
end
|
107
107
|
|
108
|
-
WebMock.stub_request(:get, %r{https?\:\/\/
|
108
|
+
WebMock.stub_request(:get, %r{https?\:\/\/[\w\.]+\.us\-mockregion\-1}) \
|
109
109
|
.to_return do |request|
|
110
110
|
mock_get(request: request)
|
111
111
|
end
|
@@ -199,11 +199,11 @@ RSpec.configure do |config|
|
|
199
199
|
# A third-party has included us as a gem and is testing his own
|
200
200
|
# code; assume we have a test clientside_aws docker container
|
201
201
|
# running and hit that with HTTParty
|
202
|
-
stub_request(:post, %r{https?\:\/\/
|
202
|
+
stub_request(:post, %r{https?\:\/\/[\w\.]+\.us\-mockregion\-1}) \
|
203
203
|
.to_return do |request|
|
204
204
|
mock_post(request: request)
|
205
205
|
end
|
206
|
-
stub_request(:get, %r{https?\:\/\/
|
206
|
+
stub_request(:get, %r{https?\:\/\/[\w\.]+\.us\-mockregion\-1}) \
|
207
207
|
.to_return do |request|
|
208
208
|
mock_get(request: request)
|
209
209
|
end
|