mocked_website 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 0aa5f869e56270ab0b199370148d0c6ff507b39f
4
- data.tar.gz: 5b5abc18a18ab8b3808494f4b1cc3c60f0e4c76e
3
+ metadata.gz: 906a85be6a461426d259206a42c25bc0a7926c29
4
+ data.tar.gz: 0d021d49dec3194666b43bab7284ac7b7e9c4de3
5
5
  SHA512:
6
- metadata.gz: 6e86b946486194a938c3bf7e83564f857c6f80a3f9562841f00f7b97a094e2b063bd3dab2513db9fd5215ff1d50e255f1c67d882b8aaa0267605a5bf5f0bd772
7
- data.tar.gz: 2784a572e5580177d75ffe19f1c733883e34dc3d8eed983edc8f6f075a5f7d27a267ca94d0a5f83a52023efeb81c5fcdbc7f6d4b615f7eb63591c387253f83ab
6
+ metadata.gz: 6d043a4a038ed8df231dc543a95bf1cd539b9b9eca29cf8f9811736bff413c4804dfd084889fed3d69af71c21aa8d3b0515cb052d6255d82f8af72502de70530
7
+ data.tar.gz: b31846266a56f3928247225dd885f59b18b5c9611e5a2d83f4189afea91405949104f92186b6c511ea5de9b408294301daf4e32a4fa0eadecc9caf4a2a33f0c7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mocked_website (1.0.0)
4
+ mocked_website (1.0.1)
5
5
  sinatra (~> 2.0)
6
6
  webmock (~> 3.4)
7
7
 
@@ -22,7 +22,12 @@ module MockedWebsite
22
22
  def app.setup
23
23
  WebMock::API.stub_request(:any, @pattern).to_rack(@rack_app)
24
24
  end
25
- def app.teardown
25
+
26
+ # Only define teardown if it doesn't already exist,
27
+ # helps to provide a common API
28
+ if !app.respond_to?(:teardown)
29
+ def app.teardown
30
+ end
26
31
  end
27
32
 
28
33
  return app
@@ -1,3 +1,3 @@
1
1
  module MockedWebsite
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocked_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Planquart