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: 1e8518951297691123474d913d84fe243d7312be
4
- data.tar.gz: b6a9bb89c66c4cac3ad4f9647099520c60ff7ddc
3
+ metadata.gz: 9130ae13d037581af8407734972808552052ad35
4
+ data.tar.gz: b185025a934c899e37e257647f444d80376ab307
5
5
  SHA512:
6
- metadata.gz: f1ddd41d1fb0d1cb3f188c0e5fbd4a25a286f77c8dc5b36c92e740976c87ba3001580bb9c23599a7c9d65933dfe0235cd5fde32373a9a8afee2fc02f479d25bc
7
- data.tar.gz: 45c7c5929c6115d40f8d1d2eb3f32b2629936d736b3ba58b8cf46b69055c5299638f3c887e5dbb823d8c65454f5f8f808c5c48d50a6312cd18150ead229f1e33
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.included(mod)
8
- mod.extend(ClassMethods)
7
+ def self.prepended(mod)
8
+ mod.singleton_class.prepend(ClassMethods)
9
9
  end
10
10
 
11
11
  module ClassMethods
12
12
 
13
- def self.extended(mod)
14
- mod.singleton_class.alias_method_chain :get, :run_check
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.send(:include, ::HttpStub::Extensions::Rack::Handler)
27
+ ::Rack::Handler.prepend(::HttpStub::Extensions::Rack::Handler)
@@ -1,3 +1,3 @@
1
1
  module HttpStub
2
- VERSION = "0.26.2".freeze
2
+ VERSION = "0.27.0".freeze
3
3
  end
@@ -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 mixed in to a module" do
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(:include, HttpStub::Extensions::Rack::Handler)
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.26.2
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: 2016-11-21 00:00:00.000000000 Z
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: '4.2'
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: '4.2'
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.45'
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.45'
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.6'
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.6'
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.12'
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.12'
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: '2.0'
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.5.1
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