http_stub 0.26.2 → 0.27.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9130ae13d037581af8407734972808552052ad35
|
4
|
+
data.tar.gz: b185025a934c899e37e257647f444d80376ab307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 359a8710eb2c61f341c78dc5dc1a58bc70af70a179f6d648cd6301e8b0aec1d591db3d3cc32ec24c6c8a4b7cc089fd944fe99b9c1d338271ab6fac8e9c975c11
|
7
|
+
data.tar.gz: 4ec1a47dd1ac04109f73de519751b6b1eb9be35c6cadd05db1f208ccd33da5ad4166ac36545b1cfb5d60303baf8b33aab93e048ff1d4368733300800022ca199
|
@@ -4,18 +4,14 @@ module HttpStub
|
|
4
4
|
|
5
5
|
module Handler
|
6
6
|
|
7
|
-
def self.
|
8
|
-
mod.
|
7
|
+
def self.prepended(mod)
|
8
|
+
mod.singleton_class.prepend(ClassMethods)
|
9
9
|
end
|
10
10
|
|
11
11
|
module ClassMethods
|
12
12
|
|
13
|
-
def
|
14
|
-
|
15
|
-
end
|
16
|
-
|
17
|
-
def get_with_run_check(server)
|
18
|
-
handler = get_without_run_check(server)
|
13
|
+
def get(server)
|
14
|
+
handler = super
|
19
15
|
raise NameError, "#{server} Rack handler is invalid" unless handler.respond_to?(:run)
|
20
16
|
handler
|
21
17
|
end
|
@@ -28,4 +24,4 @@ module HttpStub
|
|
28
24
|
end
|
29
25
|
end
|
30
26
|
|
31
|
-
::Rack::Handler.
|
27
|
+
::Rack::Handler.prepend(::HttpStub::Extensions::Rack::Handler)
|
data/lib/http_stub/version.rb
CHANGED
@@ -4,7 +4,7 @@ describe HttpStub::Extensions::Rack::Handler do
|
|
4
4
|
expect(::Rack::Handler.included_modules).to include(described_class)
|
5
5
|
end
|
6
6
|
|
7
|
-
context "when
|
7
|
+
context "when prepended to a module" do
|
8
8
|
|
9
9
|
module HttpStub::TestableRackHandler
|
10
10
|
|
@@ -20,7 +20,7 @@ describe HttpStub::Extensions::Rack::Handler do
|
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
-
HttpStub::TestableRackHandler.send(:
|
23
|
+
HttpStub::TestableRackHandler.send(:prepend, HttpStub::Extensions::Rack::Handler)
|
24
24
|
|
25
25
|
describe "the modules ::get" do
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_stub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dueckes
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|
@@ -118,14 +118,14 @@ dependencies:
|
|
118
118
|
requirements:
|
119
119
|
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: '
|
121
|
+
version: '5.0'
|
122
122
|
type: :runtime
|
123
123
|
prerelease: false
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
126
|
- - "~>"
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version: '
|
128
|
+
version: '5.0'
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: haml
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,14 +160,14 @@ dependencies:
|
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '0.
|
163
|
+
version: '0.47'
|
164
164
|
type: :development
|
165
165
|
prerelease: false
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
168
|
- - "~>"
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: '0.
|
170
|
+
version: '0.47'
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: rspec
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,14 +188,14 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: '1.
|
191
|
+
version: '1.7'
|
192
192
|
type: :development
|
193
193
|
prerelease: false
|
194
194
|
version_requirements: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
196
|
- - "~>"
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version: '1.
|
198
|
+
version: '1.7'
|
199
199
|
- !ruby/object:Gem::Dependency
|
200
200
|
name: httparty
|
201
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -258,14 +258,14 @@ dependencies:
|
|
258
258
|
requirements:
|
259
259
|
- - "~>"
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '0.
|
261
|
+
version: '0.13'
|
262
262
|
type: :development
|
263
263
|
prerelease: false
|
264
264
|
version_requirements: !ruby/object:Gem::Requirement
|
265
265
|
requirements:
|
266
266
|
- - "~>"
|
267
267
|
- !ruby/object:Gem::Version
|
268
|
-
version: '0.
|
268
|
+
version: '0.13'
|
269
269
|
- !ruby/object:Gem::Dependency
|
270
270
|
name: codeclimate-test-reporter
|
271
271
|
requirement: !ruby/object:Gem::Requirement
|
@@ -623,7 +623,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
623
623
|
requirements:
|
624
624
|
- - ">="
|
625
625
|
- !ruby/object:Gem::Version
|
626
|
-
version:
|
626
|
+
version: 2.2.2
|
627
627
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
628
628
|
requirements:
|
629
629
|
- - ">="
|
@@ -631,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
631
631
|
version: '0'
|
632
632
|
requirements: []
|
633
633
|
rubyforge_project: http_stub
|
634
|
-
rubygems_version: 2.
|
634
|
+
rubygems_version: 2.6.10
|
635
635
|
signing_key:
|
636
636
|
specification_version: 4
|
637
637
|
summary: A service virtualization tool that encourages contract based testing
|