http_stub 0.19.1 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +13 -5
  2. data/lib/http_stub.rb +26 -21
  3. data/lib/http_stub/configurer/server/command_processor.rb +1 -0
  4. data/lib/http_stub/server/application.rb +24 -46
  5. data/lib/http_stub/server/formatted_hash.rb +18 -0
  6. data/lib/http_stub/server/header_parser.rb +17 -0
  7. data/lib/http_stub/server/registry.rb +9 -9
  8. data/lib/http_stub/server/request.rb +19 -0
  9. data/lib/http_stub/server/request_pipeline.rb +27 -0
  10. data/lib/http_stub/server/response.rb +7 -3
  11. data/lib/http_stub/server/scenario.rb +1 -1
  12. data/lib/http_stub/server/scenario/activator.rb +4 -4
  13. data/lib/http_stub/server/scenario/controller.rb +8 -8
  14. data/lib/http_stub/server/scenario/{request_parser.rb → parser.rb} +2 -2
  15. data/lib/http_stub/server/scenario/{instance.rb → scenario.rb} +2 -2
  16. data/lib/http_stub/server/stub.rb +1 -1
  17. data/lib/http_stub/server/stub/controller.rb +8 -8
  18. data/lib/http_stub/server/stub/empty.rb +34 -0
  19. data/lib/http_stub/server/stub/match/exact_value_matcher.rb +17 -0
  20. data/lib/http_stub/server/stub/match/hash_with_string_value_matchers.rb +26 -0
  21. data/lib/http_stub/server/stub/match/match.rb +20 -0
  22. data/lib/http_stub/server/stub/match/omitted_value_matcher.rb +23 -0
  23. data/lib/http_stub/server/stub/match/regexp_value_matcher.rb +18 -0
  24. data/lib/http_stub/server/stub/match/rule/body.rb +49 -0
  25. data/lib/http_stub/server/stub/match/rule/headers.rb +31 -0
  26. data/lib/http_stub/server/stub/match/rule/json_body.rb +39 -0
  27. data/lib/http_stub/server/stub/match/rule/method.rb +27 -0
  28. data/lib/http_stub/server/stub/match/rule/parameters.rb +27 -0
  29. data/lib/http_stub/server/stub/match/rule/simple_body.rb +27 -0
  30. data/lib/http_stub/server/stub/match/rule/uri.rb +27 -0
  31. data/lib/http_stub/server/stub/match/string_value_matcher.rb +33 -0
  32. data/lib/http_stub/server/stub/match/truthy_matcher.rb +25 -0
  33. data/lib/http_stub/server/stub/{request_parser.rb → parser.rb} +2 -2
  34. data/lib/http_stub/server/stub/payload_file_consolidator.rb +1 -1
  35. data/lib/http_stub/server/stub/registry.rb +16 -8
  36. data/lib/http_stub/server/stub/response/base.rb +2 -2
  37. data/lib/http_stub/server/stub/stub.rb +44 -0
  38. data/lib/http_stub/server/stub/triggers.rb +2 -2
  39. data/lib/http_stub/server/views/_match.haml +20 -0
  40. data/lib/http_stub/server/views/matches.haml +3 -0
  41. data/lib/http_stub/server/views/stub.haml +1 -0
  42. data/lib/http_stub/version.rb +1 -1
  43. data/spec/acceptance/stub_control_values_spec.rb +6 -3
  44. data/spec/acceptance/stub_match_spec.rb +142 -0
  45. data/spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb +4 -0
  46. data/spec/lib/http_stub/server/application_integration_spec.rb +17 -18
  47. data/spec/lib/http_stub/server/application_spec.rb +81 -53
  48. data/spec/lib/http_stub/server/formatted_hash_spec.rb +54 -0
  49. data/spec/lib/http_stub/server/{stub/request_header_parser_spec.rb → header_parser_spec.rb} +9 -9
  50. data/spec/lib/http_stub/server/{request_file_consolidator_spec.rb → payload_file_consolidator_spec.rb} +4 -4
  51. data/spec/lib/http_stub/server/registry_spec.rb +13 -14
  52. data/spec/lib/http_stub/server/request_pipeline_spec.rb +80 -0
  53. data/spec/lib/http_stub/server/request_spec.rb +113 -0
  54. data/spec/lib/http_stub/server/response_spec.rb +46 -12
  55. data/spec/lib/http_stub/server/scenario/activator_spec.rb +18 -18
  56. data/spec/lib/http_stub/server/scenario/controller_spec.rb +18 -15
  57. data/spec/lib/http_stub/server/scenario/{request_parser_spec.rb → parser_spec.rb} +8 -8
  58. data/spec/lib/http_stub/server/scenario/{instance_spec.rb → scenario_spec.rb} +7 -5
  59. data/spec/lib/http_stub/server/scenario_spec.rb +3 -3
  60. data/spec/lib/http_stub/server/stub/controller_spec.rb +29 -14
  61. data/spec/lib/http_stub/server/stub/empty_spec.rb +68 -0
  62. data/spec/lib/http_stub/server/stub/{exact_value_matcher_spec.rb → match/exact_value_matcher_spec.rb} +2 -2
  63. data/spec/lib/http_stub/server/stub/{hash_with_string_value_matchers_spec.rb → match/hash_with_string_value_matchers_spec.rb} +27 -19
  64. data/spec/lib/http_stub/server/stub/match/match_spec.rb +40 -0
  65. data/spec/lib/http_stub/server/stub/{omitted_value_matcher_spec.rb → match/omitted_value_matcher_spec.rb} +2 -2
  66. data/spec/lib/http_stub/server/stub/{regexp_value_matcher_spec.rb → match/regexp_value_matcher_spec.rb} +2 -2
  67. data/spec/lib/http_stub/server/stub/{request_body_spec.rb → match/rule/body_spec.rb} +12 -12
  68. data/spec/lib/http_stub/server/stub/match/rule/headers_spec.rb +90 -0
  69. data/spec/lib/http_stub/server/stub/{json_request_body_spec.rb → match/rule/json_body_spec.rb} +9 -10
  70. data/spec/lib/http_stub/server/stub/{method_spec.rb → match/rule/method_spec.rb} +6 -5
  71. data/spec/lib/http_stub/server/stub/{request_parameters_spec.rb → match/rule/parameters_spec.rb} +16 -10
  72. data/spec/lib/http_stub/server/stub/match/rule/simple_body_spec.rb +46 -0
  73. data/spec/lib/http_stub/server/stub/match/rule/uri_spec.rb +46 -0
  74. data/spec/lib/http_stub/server/stub/{string_value_matcher_spec.rb → match/string_value_matcher_spec.rb} +30 -26
  75. data/spec/lib/http_stub/server/stub/match/truthy_matcher_spec.rb +24 -0
  76. data/spec/lib/http_stub/server/stub/{request_parser_spec.rb → parser_spec.rb} +7 -7
  77. data/spec/lib/http_stub/server/stub/registry_integration_spec.rb +5 -5
  78. data/spec/lib/http_stub/server/stub/registry_spec.rb +114 -43
  79. data/spec/lib/http_stub/server/stub/response/base_spec.rb +8 -2
  80. data/spec/lib/http_stub/server/stub/stub_spec.rb +294 -0
  81. data/spec/lib/http_stub/server/stub/triggers_spec.rb +4 -4
  82. data/spec/lib/http_stub/server/stub_spec.rb +3 -3
  83. data/spec/spec_helper.rb +7 -3
  84. data/spec/support/configurer_integration.rb +1 -0
  85. data/spec/support/http_stub/empty_configurer.rb +7 -0
  86. data/spec/support/{scenario_fixture.rb → http_stub/scenario_fixture.rb} +0 -0
  87. data/spec/support/http_stub/server/request_fixture.rb +25 -0
  88. data/spec/support/http_stub/server/scenario/scenario_fixture.rb +15 -0
  89. data/spec/support/http_stub/server/stub/match/match_fixture.rb +17 -0
  90. data/spec/support/{stub_fixture.rb → http_stub/stub_fixture.rb} +0 -0
  91. data/spec/support/server_integration.rb +1 -0
  92. metadata +315 -290
  93. data/lib/http_stub/server/stub/exact_value_matcher.rb +0 -15
  94. data/lib/http_stub/server/stub/hash_with_string_value_matchers.rb +0 -22
  95. data/lib/http_stub/server/stub/headers.rb +0 -19
  96. data/lib/http_stub/server/stub/instance.rb +0 -32
  97. data/lib/http_stub/server/stub/json_request_body.rb +0 -35
  98. data/lib/http_stub/server/stub/method.rb +0 -23
  99. data/lib/http_stub/server/stub/omitted_value_matcher.rb +0 -21
  100. data/lib/http_stub/server/stub/regexp_value_matcher.rb +0 -16
  101. data/lib/http_stub/server/stub/request_body.rb +0 -44
  102. data/lib/http_stub/server/stub/request_header_parser.rb +0 -19
  103. data/lib/http_stub/server/stub/request_headers.rb +0 -28
  104. data/lib/http_stub/server/stub/request_parameters.rb +0 -23
  105. data/lib/http_stub/server/stub/simple_request_body.rb +0 -23
  106. data/lib/http_stub/server/stub/string_value_matcher.rb +0 -31
  107. data/lib/http_stub/server/stub/truthy_request_matcher.rb +0 -23
  108. data/lib/http_stub/server/stub/uri.rb +0 -23
  109. data/spec/lib/http_stub/server/stub/headers_spec.rb +0 -51
  110. data/spec/lib/http_stub/server/stub/instance_spec.rb +0 -235
  111. data/spec/lib/http_stub/server/stub/request_headers_spec.rb +0 -68
  112. data/spec/lib/http_stub/server/stub/simple_request_body_spec.rb +0 -43
  113. data/spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb +0 -23
  114. data/spec/lib/http_stub/server/stub/uri_spec.rb +0 -43
@@ -1,7 +1,7 @@
1
1
  describe HttpStub::Server::Stub::Triggers do
2
2
 
3
3
  let(:trigger_bodies) { (1..3).map { |i| "trigger body #{i}" } }
4
- let(:stubs_for_triggers) { (1..trigger_bodies.length).map { instance_double(HttpStub::Server::Stub::Instance) } }
4
+ let(:stubs_for_triggers) { (1..trigger_bodies.length).map { instance_double(HttpStub::Server::Stub::Stub) } }
5
5
  let(:stub_triggers) { HttpStub::Server::Stub::Triggers.new(trigger_bodies) }
6
6
 
7
7
  before(:example) { allow(HttpStub::Server::Stub).to receive(:create).and_return(*stubs_for_triggers) }
@@ -21,12 +21,12 @@ describe HttpStub::Server::Stub::Triggers do
21
21
  describe "#add_to" do
22
22
 
23
23
  let(:registry) { instance_double(HttpStub::Server::Stub::Registry) }
24
- let(:request) { instance_double(Rack::Request) }
24
+ let(:logger) { instance_double(Logger) }
25
25
 
26
26
  it "adds each stub to the provided registry" do
27
- stubs_for_triggers.each { |stub_for_trigger| expect(registry).to receive(:add).with(stub_for_trigger, request) }
27
+ stubs_for_triggers.each { |stub_for_trigger| expect(registry).to receive(:add).with(stub_for_trigger, logger) }
28
28
 
29
- stub_triggers.add_to(registry, request)
29
+ stub_triggers.add_to(registry, logger)
30
30
  end
31
31
 
32
32
  end
@@ -7,14 +7,14 @@ describe HttpStub::Server::Stub do
7
7
  subject { HttpStub::Server::Stub.create(args) }
8
8
 
9
9
  it "creates a stub instance with the provided arguments" do
10
- expect(HttpStub::Server::Stub::Instance).to receive(:new).with(args)
10
+ expect(HttpStub::Server::Stub::Stub).to receive(:new).with(args)
11
11
 
12
12
  subject
13
13
  end
14
14
 
15
15
  it "returns the created stub" do
16
- the_stub = instance_double(HttpStub::Server::Stub::Instance)
17
- allow(HttpStub::Server::Stub::Instance).to receive(:new).and_return(the_stub)
16
+ the_stub = instance_double(HttpStub::Server::Stub::Stub)
17
+ allow(HttpStub::Server::Stub::Stub).to receive(:new).and_return(the_stub)
18
18
 
19
19
  expect(subject).to eql(the_stub)
20
20
  end
data/spec/spec_helper.rb CHANGED
@@ -7,7 +7,7 @@ SimpleCov.start do
7
7
  add_filter "/spec/"
8
8
  add_filter "/vendor/"
9
9
 
10
- minimum_coverage 99.67
10
+ minimum_coverage 99.92
11
11
  refuse_coverage_drop
12
12
  end if ENV["coverage"]
13
13
 
@@ -42,7 +42,11 @@ module HttpStub
42
42
 
43
43
  end
44
44
 
45
- require_relative 'support/stub_fixture'
46
- require_relative 'support/scenario_fixture'
45
+ require_relative 'support/http_stub/server/request_fixture'
46
+ require_relative 'support/http_stub/server/scenario/scenario_fixture'
47
+ require_relative 'support/http_stub/server/stub/match/match_fixture'
48
+ require_relative 'support/http_stub/stub_fixture'
49
+ require_relative 'support/http_stub/scenario_fixture'
50
+ require_relative 'support/http_stub/empty_configurer'
47
51
  require_relative 'support/server_integration'
48
52
  require_relative 'support/configurer_integration'
@@ -1,6 +1,7 @@
1
1
  shared_context "configurer integration" do
2
2
  include_context "server integration"
3
3
 
4
+ let(:configurer) { HttpStub::EmptyConfigurer }
4
5
  let(:stub_server) { configurer.stub_server }
5
6
 
6
7
  before(:example) do
@@ -0,0 +1,7 @@
1
+ module HttpStub
2
+
3
+ class EmptyConfigurer
4
+ include HttpStub::Configurer
5
+ end
6
+
7
+ end
@@ -0,0 +1,25 @@
1
+ module HttpStub
2
+ module Server
3
+
4
+ class RequestFixture
5
+
6
+ class << self
7
+
8
+ def create
9
+ HttpStub::Server::Request.new(create_rack_request)
10
+ end
11
+
12
+ private
13
+
14
+ def create_rack_request
15
+ Rack::Request.new("PATH_INFO" => "/some/path/info",
16
+ "REQUEST_METHOD" => "GET",
17
+ "rack.input" => StringIO.new)
18
+ end
19
+
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,15 @@
1
+ module HttpStub
2
+ module Server
3
+ module Scenario
4
+
5
+ class ScenarioFixture
6
+
7
+ def self.empty
8
+ HttpStub::Server::Scenario::Scenario.new("name" => "empty", "stubs" => [], "triggered_scenario_names" => [])
9
+ end
10
+
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ module HttpStub
2
+ module Server
3
+ module Stub
4
+ module Match
5
+
6
+ class MatchFixture
7
+
8
+ def self.empty
9
+ HttpStub::Server::Stub::Match::Match.new(nil, HttpStub::Server::RequestFixture.create)
10
+ end
11
+
12
+ end
13
+
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,4 +1,5 @@
1
1
  shared_context "server integration" do
2
+ include Rack::Utils
2
3
 
3
4
  before(:context) do
4
5
  @pid = Process.spawn("rake example_server:start:foreground --trace")
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.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman
@@ -9,258 +9,258 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-24 00:00:00.000000000 Z
12
+ date: 2015-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '10.4'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '10.4'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sinatra
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.4'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.4'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: sinatra-partial
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0.4'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0.4'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: multipart-post
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ~>
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: http_server_manager
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0.4'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0.4'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: json-schema
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ~>
89
89
  - !ruby/object:Gem::Version
90
90
  version: '2.5'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ~>
96
96
  - !ruby/object:Gem::Version
97
97
  version: '2.5'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: activesupport
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - ~>
103
103
  - !ruby/object:Gem::Version
104
104
  version: '4.2'
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - "~>"
109
+ - - ~>
110
110
  - !ruby/object:Gem::Version
111
111
  version: '4.2'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: haml
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - "~>"
116
+ - - ~>
117
117
  - !ruby/object:Gem::Version
118
118
  version: '4.0'
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - "~>"
123
+ - - ~>
124
124
  - !ruby/object:Gem::Version
125
125
  version: '4.0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: sass
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - "~>"
130
+ - - ~>
131
131
  - !ruby/object:Gem::Version
132
132
  version: '3.4'
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - "~>"
137
+ - - ~>
138
138
  - !ruby/object:Gem::Version
139
139
  version: '3.4'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: travis-lint
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ~>
145
145
  - !ruby/object:Gem::Version
146
146
  version: '2.0'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - "~>"
151
+ - - ~>
152
152
  - !ruby/object:Gem::Version
153
153
  version: '2.0'
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: metric_fu
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - "~>"
158
+ - - ~>
159
159
  - !ruby/object:Gem::Version
160
160
  version: '4.12'
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - "~>"
165
+ - - ~>
166
166
  - !ruby/object:Gem::Version
167
167
  version: '4.12'
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: rspec
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - "~>"
172
+ - - ~>
173
173
  - !ruby/object:Gem::Version
174
174
  version: '3.3'
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - "~>"
179
+ - - ~>
180
180
  - !ruby/object:Gem::Version
181
181
  version: '3.3'
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: simplecov
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - "~>"
186
+ - - ~>
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0.10'
189
189
  type: :development
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - "~>"
193
+ - - ~>
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0.10'
196
196
  - !ruby/object:Gem::Dependency
197
197
  name: rack-test
198
198
  requirement: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - "~>"
200
+ - - ~>
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0.6'
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - "~>"
207
+ - - ~>
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0.6'
210
210
  - !ruby/object:Gem::Dependency
211
211
  name: json
212
212
  requirement: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - "~>"
214
+ - - ~>
215
215
  - !ruby/object:Gem::Version
216
216
  version: '1.8'
217
217
  type: :development
218
218
  prerelease: false
219
219
  version_requirements: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - "~>"
221
+ - - ~>
222
222
  - !ruby/object:Gem::Version
223
223
  version: '1.8'
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: nokogiri
226
226
  requirement: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - "~>"
228
+ - - ~>
229
229
  - !ruby/object:Gem::Version
230
230
  version: '1.6'
231
231
  type: :development
232
232
  prerelease: false
233
233
  version_requirements: !ruby/object:Gem::Requirement
234
234
  requirements:
235
- - - "~>"
235
+ - - ~>
236
236
  - !ruby/object:Gem::Version
237
237
  version: '1.6'
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: httparty
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  requirements:
242
- - - "~>"
242
+ - - ~>
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0.13'
245
245
  type: :development
246
246
  prerelease: false
247
247
  version_requirements: !ruby/object:Gem::Requirement
248
248
  requirements:
249
- - - "~>"
249
+ - - ~>
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0.13'
252
252
  - !ruby/object:Gem::Dependency
253
253
  name: wait_until
254
254
  requirement: !ruby/object:Gem::Requirement
255
255
  requirements:
256
- - - "~>"
256
+ - - ~>
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0.1'
259
259
  type: :development
260
260
  prerelease: false
261
261
  version_requirements: !ruby/object:Gem::Requirement
262
262
  requirements:
263
- - - "~>"
263
+ - - ~>
264
264
  - !ruby/object:Gem::Version
265
265
  version: '0.1'
266
266
  description: fakeweb for a HTTP server, informing it to stub / fake responses
@@ -269,169 +269,185 @@ executables: []
269
269
  extensions: []
270
270
  extra_rdoc_files: []
271
271
  files:
272
- - "./lib/http_stub.rb"
273
- - "./lib/http_stub/configurer.rb"
274
- - "./lib/http_stub/configurer/dsl/deprecated.rb"
275
- - "./lib/http_stub/configurer/dsl/endpoint_template.rb"
276
- - "./lib/http_stub/configurer/dsl/scenario_activator.rb"
277
- - "./lib/http_stub/configurer/dsl/scenario_builder.rb"
278
- - "./lib/http_stub/configurer/dsl/server.rb"
279
- - "./lib/http_stub/configurer/dsl/stub_activator_builder.rb"
280
- - "./lib/http_stub/configurer/dsl/stub_builder.rb"
281
- - "./lib/http_stub/configurer/dsl/stub_builder_producer.rb"
282
- - "./lib/http_stub/configurer/part.rb"
283
- - "./lib/http_stub/configurer/request/controllable_value.rb"
284
- - "./lib/http_stub/configurer/request/http/basic.rb"
285
- - "./lib/http_stub/configurer/request/http/factory.rb"
286
- - "./lib/http_stub/configurer/request/http/multipart.rb"
287
- - "./lib/http_stub/configurer/request/omittable.rb"
288
- - "./lib/http_stub/configurer/request/regexpable.rb"
289
- - "./lib/http_stub/configurer/request/scenario.rb"
290
- - "./lib/http_stub/configurer/request/stub.rb"
291
- - "./lib/http_stub/configurer/request/stub_response.rb"
292
- - "./lib/http_stub/configurer/request/stub_response_file.rb"
293
- - "./lib/http_stub/configurer/server/buffered_command_processor.rb"
294
- - "./lib/http_stub/configurer/server/command.rb"
295
- - "./lib/http_stub/configurer/server/command_processor.rb"
296
- - "./lib/http_stub/configurer/server/facade.rb"
297
- - "./lib/http_stub/configurer/server/request_processor.rb"
298
- - "./lib/http_stub/extensions/core/hash.rb"
299
- - "./lib/http_stub/extensions/rack/handler.rb"
300
- - "./lib/http_stub/hash_with_indifferent_and_insensitive_access.rb"
301
- - "./lib/http_stub/rake/server_daemon_tasks.rb"
302
- - "./lib/http_stub/rake/server_tasks.rb"
303
- - "./lib/http_stub/rake/task_generators.rb"
304
- - "./lib/http_stub/server/application.rb"
305
- - "./lib/http_stub/server/daemon.rb"
306
- - "./lib/http_stub/server/registry.rb"
307
- - "./lib/http_stub/server/response.rb"
308
- - "./lib/http_stub/server/response_pipeline.rb"
309
- - "./lib/http_stub/server/scenario.rb"
310
- - "./lib/http_stub/server/scenario/activator.rb"
311
- - "./lib/http_stub/server/scenario/controller.rb"
312
- - "./lib/http_stub/server/scenario/instance.rb"
313
- - "./lib/http_stub/server/scenario/request_parser.rb"
314
- - "./lib/http_stub/server/stub.rb"
315
- - "./lib/http_stub/server/stub/controller.rb"
316
- - "./lib/http_stub/server/stub/exact_value_matcher.rb"
317
- - "./lib/http_stub/server/stub/hash_with_string_value_matchers.rb"
318
- - "./lib/http_stub/server/stub/headers.rb"
319
- - "./lib/http_stub/server/stub/instance.rb"
320
- - "./lib/http_stub/server/stub/json_request_body.rb"
321
- - "./lib/http_stub/server/stub/method.rb"
322
- - "./lib/http_stub/server/stub/omitted_value_matcher.rb"
323
- - "./lib/http_stub/server/stub/payload_file_consolidator.rb"
324
- - "./lib/http_stub/server/stub/regexp_value_matcher.rb"
325
- - "./lib/http_stub/server/stub/registry.rb"
326
- - "./lib/http_stub/server/stub/request_body.rb"
327
- - "./lib/http_stub/server/stub/request_header_parser.rb"
328
- - "./lib/http_stub/server/stub/request_headers.rb"
329
- - "./lib/http_stub/server/stub/request_parameters.rb"
330
- - "./lib/http_stub/server/stub/request_parser.rb"
331
- - "./lib/http_stub/server/stub/response.rb"
332
- - "./lib/http_stub/server/stub/response/base.rb"
333
- - "./lib/http_stub/server/stub/response/file.rb"
334
- - "./lib/http_stub/server/stub/response/text.rb"
335
- - "./lib/http_stub/server/stub/simple_request_body.rb"
336
- - "./lib/http_stub/server/stub/string_value_matcher.rb"
337
- - "./lib/http_stub/server/stub/triggers.rb"
338
- - "./lib/http_stub/server/stub/truthy_request_matcher.rb"
339
- - "./lib/http_stub/server/stub/uri.rb"
340
- - "./lib/http_stub/server/views/_scenario.haml"
341
- - "./lib/http_stub/server/views/_stub.haml"
342
- - "./lib/http_stub/server/views/_stub_file_response.haml"
343
- - "./lib/http_stub/server/views/_stub_text_response.haml"
344
- - "./lib/http_stub/server/views/application.sass"
345
- - "./lib/http_stub/server/views/layout.haml"
346
- - "./lib/http_stub/server/views/scenarios.haml"
347
- - "./lib/http_stub/server/views/stubs.haml"
348
- - "./lib/http_stub/version.rb"
349
- - "./spec/acceptance/activator_spec.rb"
350
- - "./spec/acceptance/configurer_initialization_spec.rb"
351
- - "./spec/acceptance/configurer_part_spec.rb"
352
- - "./spec/acceptance/endpoint_template_spec.rb"
353
- - "./spec/acceptance/scenario_spec.rb"
354
- - "./spec/acceptance/server_defaults_spec.rb"
355
- - "./spec/acceptance/stub_body_request_matching_spec.rb"
356
- - "./spec/acceptance/stub_control_values_spec.rb"
357
- - "./spec/acceptance/stub_spec.rb"
358
- - "./spec/acceptance/stub_trigger_spec.rb"
359
- - "./spec/curl_samples.txt"
360
- - "./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb"
361
- - "./spec/lib/http_stub/configurer/dsl/endpoint_template_spec.rb"
362
- - "./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb"
363
- - "./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb"
364
- - "./spec/lib/http_stub/configurer/dsl/server_spec.rb"
365
- - "./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb"
366
- - "./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb"
367
- - "./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb"
368
- - "./spec/lib/http_stub/configurer/part_spec.rb"
369
- - "./spec/lib/http_stub/configurer/request/controllable_value_spec.rb"
370
- - "./spec/lib/http_stub/configurer/request/http/basic_spec.rb"
371
- - "./spec/lib/http_stub/configurer/request/http/factory_spec.rb"
372
- - "./spec/lib/http_stub/configurer/request/http/multipart_spec.rb"
373
- - "./spec/lib/http_stub/configurer/request/omittable_spec.rb"
374
- - "./spec/lib/http_stub/configurer/request/regexpable_spec.rb"
375
- - "./spec/lib/http_stub/configurer/request/scenario_spec.rb"
376
- - "./spec/lib/http_stub/configurer/request/stub_response_spec.rb"
377
- - "./spec/lib/http_stub/configurer/request/stub_spec.rb"
378
- - "./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb"
379
- - "./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb"
380
- - "./spec/lib/http_stub/configurer/server/command_spec.rb"
381
- - "./spec/lib/http_stub/configurer/server/facade_spec.rb"
382
- - "./spec/lib/http_stub/configurer/server/request_processor_spec.rb"
383
- - "./spec/lib/http_stub/extensions/core/hash_spec.rb"
384
- - "./spec/lib/http_stub/extensions/rack/handler_spec.rb"
385
- - "./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb"
386
- - "./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb"
387
- - "./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb"
388
- - "./spec/lib/http_stub/rake/server_tasks_spec.rb"
389
- - "./spec/lib/http_stub/server/application_integration_spec.rb"
390
- - "./spec/lib/http_stub/server/application_spec.rb"
391
- - "./spec/lib/http_stub/server/daemon_integration_spec.rb"
392
- - "./spec/lib/http_stub/server/daemon_spec.rb"
393
- - "./spec/lib/http_stub/server/registry_spec.rb"
394
- - "./spec/lib/http_stub/server/request_file_consolidator_spec.rb"
395
- - "./spec/lib/http_stub/server/response_pipeline_spec.rb"
396
- - "./spec/lib/http_stub/server/response_spec.rb"
397
- - "./spec/lib/http_stub/server/scenario/activator_spec.rb"
398
- - "./spec/lib/http_stub/server/scenario/controller_spec.rb"
399
- - "./spec/lib/http_stub/server/scenario/instance_spec.rb"
400
- - "./spec/lib/http_stub/server/scenario/request_parser_spec.rb"
401
- - "./spec/lib/http_stub/server/scenario_spec.rb"
402
- - "./spec/lib/http_stub/server/stub/controller_spec.rb"
403
- - "./spec/lib/http_stub/server/stub/exact_value_matcher_spec.rb"
404
- - "./spec/lib/http_stub/server/stub/hash_with_string_value_matchers_spec.rb"
405
- - "./spec/lib/http_stub/server/stub/headers_spec.rb"
406
- - "./spec/lib/http_stub/server/stub/instance_spec.rb"
407
- - "./spec/lib/http_stub/server/stub/json_request_body_spec.rb"
408
- - "./spec/lib/http_stub/server/stub/method_spec.rb"
409
- - "./spec/lib/http_stub/server/stub/omitted_value_matcher_spec.rb"
410
- - "./spec/lib/http_stub/server/stub/regexp_value_matcher_spec.rb"
411
- - "./spec/lib/http_stub/server/stub/registry_integration_spec.rb"
412
- - "./spec/lib/http_stub/server/stub/registry_spec.rb"
413
- - "./spec/lib/http_stub/server/stub/request_body_spec.rb"
414
- - "./spec/lib/http_stub/server/stub/request_header_parser_spec.rb"
415
- - "./spec/lib/http_stub/server/stub/request_headers_spec.rb"
416
- - "./spec/lib/http_stub/server/stub/request_parameters_spec.rb"
417
- - "./spec/lib/http_stub/server/stub/request_parser_spec.rb"
418
- - "./spec/lib/http_stub/server/stub/response/base_spec.rb"
419
- - "./spec/lib/http_stub/server/stub/response/file_spec.rb"
420
- - "./spec/lib/http_stub/server/stub/response/text_spec.rb"
421
- - "./spec/lib/http_stub/server/stub/response_spec.rb"
422
- - "./spec/lib/http_stub/server/stub/simple_request_body_spec.rb"
423
- - "./spec/lib/http_stub/server/stub/string_value_matcher_spec.rb"
424
- - "./spec/lib/http_stub/server/stub/triggers_spec.rb"
425
- - "./spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb"
426
- - "./spec/lib/http_stub/server/stub/uri_spec.rb"
427
- - "./spec/lib/http_stub/server/stub_spec.rb"
428
- - "./spec/resources/sample.pdf"
429
- - "./spec/resources/sample.txt"
430
- - "./spec/spec_helper.rb"
431
- - "./spec/support/configurer_integration.rb"
432
- - "./spec/support/scenario_fixture.rb"
433
- - "./spec/support/server_integration.rb"
434
- - "./spec/support/stub_fixture.rb"
272
+ - ./lib/http_stub.rb
273
+ - ./lib/http_stub/configurer.rb
274
+ - ./lib/http_stub/configurer/dsl/deprecated.rb
275
+ - ./lib/http_stub/configurer/dsl/endpoint_template.rb
276
+ - ./lib/http_stub/configurer/dsl/scenario_activator.rb
277
+ - ./lib/http_stub/configurer/dsl/scenario_builder.rb
278
+ - ./lib/http_stub/configurer/dsl/server.rb
279
+ - ./lib/http_stub/configurer/dsl/stub_activator_builder.rb
280
+ - ./lib/http_stub/configurer/dsl/stub_builder.rb
281
+ - ./lib/http_stub/configurer/dsl/stub_builder_producer.rb
282
+ - ./lib/http_stub/configurer/part.rb
283
+ - ./lib/http_stub/configurer/request/controllable_value.rb
284
+ - ./lib/http_stub/configurer/request/http/basic.rb
285
+ - ./lib/http_stub/configurer/request/http/factory.rb
286
+ - ./lib/http_stub/configurer/request/http/multipart.rb
287
+ - ./lib/http_stub/configurer/request/omittable.rb
288
+ - ./lib/http_stub/configurer/request/regexpable.rb
289
+ - ./lib/http_stub/configurer/request/scenario.rb
290
+ - ./lib/http_stub/configurer/request/stub.rb
291
+ - ./lib/http_stub/configurer/request/stub_response.rb
292
+ - ./lib/http_stub/configurer/request/stub_response_file.rb
293
+ - ./lib/http_stub/configurer/server/buffered_command_processor.rb
294
+ - ./lib/http_stub/configurer/server/command.rb
295
+ - ./lib/http_stub/configurer/server/command_processor.rb
296
+ - ./lib/http_stub/configurer/server/facade.rb
297
+ - ./lib/http_stub/configurer/server/request_processor.rb
298
+ - ./lib/http_stub/extensions/core/hash.rb
299
+ - ./lib/http_stub/extensions/rack/handler.rb
300
+ - ./lib/http_stub/hash_with_indifferent_and_insensitive_access.rb
301
+ - ./lib/http_stub/rake/server_daemon_tasks.rb
302
+ - ./lib/http_stub/rake/server_tasks.rb
303
+ - ./lib/http_stub/rake/task_generators.rb
304
+ - ./lib/http_stub/server/application.rb
305
+ - ./lib/http_stub/server/daemon.rb
306
+ - ./lib/http_stub/server/formatted_hash.rb
307
+ - ./lib/http_stub/server/header_parser.rb
308
+ - ./lib/http_stub/server/registry.rb
309
+ - ./lib/http_stub/server/request.rb
310
+ - ./lib/http_stub/server/request_pipeline.rb
311
+ - ./lib/http_stub/server/response.rb
312
+ - ./lib/http_stub/server/response_pipeline.rb
313
+ - ./lib/http_stub/server/scenario.rb
314
+ - ./lib/http_stub/server/scenario/activator.rb
315
+ - ./lib/http_stub/server/scenario/controller.rb
316
+ - ./lib/http_stub/server/scenario/parser.rb
317
+ - ./lib/http_stub/server/scenario/scenario.rb
318
+ - ./lib/http_stub/server/stub.rb
319
+ - ./lib/http_stub/server/stub/controller.rb
320
+ - ./lib/http_stub/server/stub/empty.rb
321
+ - ./lib/http_stub/server/stub/match/exact_value_matcher.rb
322
+ - ./lib/http_stub/server/stub/match/hash_with_string_value_matchers.rb
323
+ - ./lib/http_stub/server/stub/match/match.rb
324
+ - ./lib/http_stub/server/stub/match/omitted_value_matcher.rb
325
+ - ./lib/http_stub/server/stub/match/regexp_value_matcher.rb
326
+ - ./lib/http_stub/server/stub/match/rule/body.rb
327
+ - ./lib/http_stub/server/stub/match/rule/headers.rb
328
+ - ./lib/http_stub/server/stub/match/rule/json_body.rb
329
+ - ./lib/http_stub/server/stub/match/rule/method.rb
330
+ - ./lib/http_stub/server/stub/match/rule/parameters.rb
331
+ - ./lib/http_stub/server/stub/match/rule/simple_body.rb
332
+ - ./lib/http_stub/server/stub/match/rule/uri.rb
333
+ - ./lib/http_stub/server/stub/match/string_value_matcher.rb
334
+ - ./lib/http_stub/server/stub/match/truthy_matcher.rb
335
+ - ./lib/http_stub/server/stub/parser.rb
336
+ - ./lib/http_stub/server/stub/payload_file_consolidator.rb
337
+ - ./lib/http_stub/server/stub/registry.rb
338
+ - ./lib/http_stub/server/stub/response.rb
339
+ - ./lib/http_stub/server/stub/response/base.rb
340
+ - ./lib/http_stub/server/stub/response/file.rb
341
+ - ./lib/http_stub/server/stub/response/text.rb
342
+ - ./lib/http_stub/server/stub/stub.rb
343
+ - ./lib/http_stub/server/stub/triggers.rb
344
+ - ./lib/http_stub/server/views/_match.haml
345
+ - ./lib/http_stub/server/views/_scenario.haml
346
+ - ./lib/http_stub/server/views/_stub.haml
347
+ - ./lib/http_stub/server/views/_stub_file_response.haml
348
+ - ./lib/http_stub/server/views/_stub_text_response.haml
349
+ - ./lib/http_stub/server/views/application.sass
350
+ - ./lib/http_stub/server/views/layout.haml
351
+ - ./lib/http_stub/server/views/matches.haml
352
+ - ./lib/http_stub/server/views/scenarios.haml
353
+ - ./lib/http_stub/server/views/stub.haml
354
+ - ./lib/http_stub/server/views/stubs.haml
355
+ - ./lib/http_stub/version.rb
356
+ - ./spec/acceptance/activator_spec.rb
357
+ - ./spec/acceptance/configurer_initialization_spec.rb
358
+ - ./spec/acceptance/configurer_part_spec.rb
359
+ - ./spec/acceptance/endpoint_template_spec.rb
360
+ - ./spec/acceptance/scenario_spec.rb
361
+ - ./spec/acceptance/server_defaults_spec.rb
362
+ - ./spec/acceptance/stub_body_request_matching_spec.rb
363
+ - ./spec/acceptance/stub_control_values_spec.rb
364
+ - ./spec/acceptance/stub_match_spec.rb
365
+ - ./spec/acceptance/stub_spec.rb
366
+ - ./spec/acceptance/stub_trigger_spec.rb
367
+ - ./spec/curl_samples.txt
368
+ - ./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb
369
+ - ./spec/lib/http_stub/configurer/dsl/endpoint_template_spec.rb
370
+ - ./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb
371
+ - ./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb
372
+ - ./spec/lib/http_stub/configurer/dsl/server_spec.rb
373
+ - ./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb
374
+ - ./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb
375
+ - ./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb
376
+ - ./spec/lib/http_stub/configurer/part_spec.rb
377
+ - ./spec/lib/http_stub/configurer/request/controllable_value_spec.rb
378
+ - ./spec/lib/http_stub/configurer/request/http/basic_spec.rb
379
+ - ./spec/lib/http_stub/configurer/request/http/factory_spec.rb
380
+ - ./spec/lib/http_stub/configurer/request/http/multipart_spec.rb
381
+ - ./spec/lib/http_stub/configurer/request/omittable_spec.rb
382
+ - ./spec/lib/http_stub/configurer/request/regexpable_spec.rb
383
+ - ./spec/lib/http_stub/configurer/request/scenario_spec.rb
384
+ - ./spec/lib/http_stub/configurer/request/stub_response_spec.rb
385
+ - ./spec/lib/http_stub/configurer/request/stub_spec.rb
386
+ - ./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb
387
+ - ./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb
388
+ - ./spec/lib/http_stub/configurer/server/command_spec.rb
389
+ - ./spec/lib/http_stub/configurer/server/facade_spec.rb
390
+ - ./spec/lib/http_stub/configurer/server/request_processor_spec.rb
391
+ - ./spec/lib/http_stub/extensions/core/hash_spec.rb
392
+ - ./spec/lib/http_stub/extensions/rack/handler_spec.rb
393
+ - ./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb
394
+ - ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
395
+ - ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
396
+ - ./spec/lib/http_stub/rake/server_tasks_spec.rb
397
+ - ./spec/lib/http_stub/server/application_integration_spec.rb
398
+ - ./spec/lib/http_stub/server/application_spec.rb
399
+ - ./spec/lib/http_stub/server/daemon_integration_spec.rb
400
+ - ./spec/lib/http_stub/server/daemon_spec.rb
401
+ - ./spec/lib/http_stub/server/formatted_hash_spec.rb
402
+ - ./spec/lib/http_stub/server/header_parser_spec.rb
403
+ - ./spec/lib/http_stub/server/payload_file_consolidator_spec.rb
404
+ - ./spec/lib/http_stub/server/registry_spec.rb
405
+ - ./spec/lib/http_stub/server/request_pipeline_spec.rb
406
+ - ./spec/lib/http_stub/server/request_spec.rb
407
+ - ./spec/lib/http_stub/server/response_pipeline_spec.rb
408
+ - ./spec/lib/http_stub/server/response_spec.rb
409
+ - ./spec/lib/http_stub/server/scenario/activator_spec.rb
410
+ - ./spec/lib/http_stub/server/scenario/controller_spec.rb
411
+ - ./spec/lib/http_stub/server/scenario/parser_spec.rb
412
+ - ./spec/lib/http_stub/server/scenario/scenario_spec.rb
413
+ - ./spec/lib/http_stub/server/scenario_spec.rb
414
+ - ./spec/lib/http_stub/server/stub/controller_spec.rb
415
+ - ./spec/lib/http_stub/server/stub/empty_spec.rb
416
+ - ./spec/lib/http_stub/server/stub/match/exact_value_matcher_spec.rb
417
+ - ./spec/lib/http_stub/server/stub/match/hash_with_string_value_matchers_spec.rb
418
+ - ./spec/lib/http_stub/server/stub/match/match_spec.rb
419
+ - ./spec/lib/http_stub/server/stub/match/omitted_value_matcher_spec.rb
420
+ - ./spec/lib/http_stub/server/stub/match/regexp_value_matcher_spec.rb
421
+ - ./spec/lib/http_stub/server/stub/match/rule/body_spec.rb
422
+ - ./spec/lib/http_stub/server/stub/match/rule/headers_spec.rb
423
+ - ./spec/lib/http_stub/server/stub/match/rule/json_body_spec.rb
424
+ - ./spec/lib/http_stub/server/stub/match/rule/method_spec.rb
425
+ - ./spec/lib/http_stub/server/stub/match/rule/parameters_spec.rb
426
+ - ./spec/lib/http_stub/server/stub/match/rule/simple_body_spec.rb
427
+ - ./spec/lib/http_stub/server/stub/match/rule/uri_spec.rb
428
+ - ./spec/lib/http_stub/server/stub/match/string_value_matcher_spec.rb
429
+ - ./spec/lib/http_stub/server/stub/match/truthy_matcher_spec.rb
430
+ - ./spec/lib/http_stub/server/stub/parser_spec.rb
431
+ - ./spec/lib/http_stub/server/stub/registry_integration_spec.rb
432
+ - ./spec/lib/http_stub/server/stub/registry_spec.rb
433
+ - ./spec/lib/http_stub/server/stub/response/base_spec.rb
434
+ - ./spec/lib/http_stub/server/stub/response/file_spec.rb
435
+ - ./spec/lib/http_stub/server/stub/response/text_spec.rb
436
+ - ./spec/lib/http_stub/server/stub/response_spec.rb
437
+ - ./spec/lib/http_stub/server/stub/stub_spec.rb
438
+ - ./spec/lib/http_stub/server/stub/triggers_spec.rb
439
+ - ./spec/lib/http_stub/server/stub_spec.rb
440
+ - ./spec/resources/sample.pdf
441
+ - ./spec/resources/sample.txt
442
+ - ./spec/spec_helper.rb
443
+ - ./spec/support/configurer_integration.rb
444
+ - ./spec/support/http_stub/empty_configurer.rb
445
+ - ./spec/support/http_stub/scenario_fixture.rb
446
+ - ./spec/support/http_stub/server/request_fixture.rb
447
+ - ./spec/support/http_stub/server/scenario/scenario_fixture.rb
448
+ - ./spec/support/http_stub/server/stub/match/match_fixture.rb
449
+ - ./spec/support/http_stub/stub_fixture.rb
450
+ - ./spec/support/server_integration.rb
435
451
  homepage: http://github.com/MYOB-Technology/http_stub
436
452
  licenses:
437
453
  - MIT
@@ -442,104 +458,113 @@ require_paths:
442
458
  - lib
443
459
  required_ruby_version: !ruby/object:Gem::Requirement
444
460
  requirements:
445
- - - ">="
461
+ - - ! '>='
446
462
  - !ruby/object:Gem::Version
447
463
  version: 1.9.3
448
464
  required_rubygems_version: !ruby/object:Gem::Requirement
449
465
  requirements:
450
- - - ">="
466
+ - - ! '>='
451
467
  - !ruby/object:Gem::Version
452
468
  version: '0'
453
469
  requirements: []
454
470
  rubyforge_project: http_stub
455
- rubygems_version: 2.4.6
471
+ rubygems_version: 2.4.8
456
472
  signing_key:
457
473
  specification_version: 4
458
474
  summary: A HTTP Server replaying configured stub responses
459
475
  test_files:
460
- - "./spec/acceptance/activator_spec.rb"
461
- - "./spec/acceptance/configurer_initialization_spec.rb"
462
- - "./spec/acceptance/configurer_part_spec.rb"
463
- - "./spec/acceptance/endpoint_template_spec.rb"
464
- - "./spec/acceptance/scenario_spec.rb"
465
- - "./spec/acceptance/server_defaults_spec.rb"
466
- - "./spec/acceptance/stub_body_request_matching_spec.rb"
467
- - "./spec/acceptance/stub_control_values_spec.rb"
468
- - "./spec/acceptance/stub_spec.rb"
469
- - "./spec/acceptance/stub_trigger_spec.rb"
470
- - "./spec/curl_samples.txt"
471
- - "./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb"
472
- - "./spec/lib/http_stub/configurer/dsl/endpoint_template_spec.rb"
473
- - "./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb"
474
- - "./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb"
475
- - "./spec/lib/http_stub/configurer/dsl/server_spec.rb"
476
- - "./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb"
477
- - "./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb"
478
- - "./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb"
479
- - "./spec/lib/http_stub/configurer/part_spec.rb"
480
- - "./spec/lib/http_stub/configurer/request/controllable_value_spec.rb"
481
- - "./spec/lib/http_stub/configurer/request/http/basic_spec.rb"
482
- - "./spec/lib/http_stub/configurer/request/http/factory_spec.rb"
483
- - "./spec/lib/http_stub/configurer/request/http/multipart_spec.rb"
484
- - "./spec/lib/http_stub/configurer/request/omittable_spec.rb"
485
- - "./spec/lib/http_stub/configurer/request/regexpable_spec.rb"
486
- - "./spec/lib/http_stub/configurer/request/scenario_spec.rb"
487
- - "./spec/lib/http_stub/configurer/request/stub_response_spec.rb"
488
- - "./spec/lib/http_stub/configurer/request/stub_spec.rb"
489
- - "./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb"
490
- - "./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb"
491
- - "./spec/lib/http_stub/configurer/server/command_spec.rb"
492
- - "./spec/lib/http_stub/configurer/server/facade_spec.rb"
493
- - "./spec/lib/http_stub/configurer/server/request_processor_spec.rb"
494
- - "./spec/lib/http_stub/extensions/core/hash_spec.rb"
495
- - "./spec/lib/http_stub/extensions/rack/handler_spec.rb"
496
- - "./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb"
497
- - "./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb"
498
- - "./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb"
499
- - "./spec/lib/http_stub/rake/server_tasks_spec.rb"
500
- - "./spec/lib/http_stub/server/application_integration_spec.rb"
501
- - "./spec/lib/http_stub/server/application_spec.rb"
502
- - "./spec/lib/http_stub/server/daemon_integration_spec.rb"
503
- - "./spec/lib/http_stub/server/daemon_spec.rb"
504
- - "./spec/lib/http_stub/server/registry_spec.rb"
505
- - "./spec/lib/http_stub/server/request_file_consolidator_spec.rb"
506
- - "./spec/lib/http_stub/server/response_pipeline_spec.rb"
507
- - "./spec/lib/http_stub/server/response_spec.rb"
508
- - "./spec/lib/http_stub/server/scenario/activator_spec.rb"
509
- - "./spec/lib/http_stub/server/scenario/controller_spec.rb"
510
- - "./spec/lib/http_stub/server/scenario/instance_spec.rb"
511
- - "./spec/lib/http_stub/server/scenario/request_parser_spec.rb"
512
- - "./spec/lib/http_stub/server/scenario_spec.rb"
513
- - "./spec/lib/http_stub/server/stub/controller_spec.rb"
514
- - "./spec/lib/http_stub/server/stub/exact_value_matcher_spec.rb"
515
- - "./spec/lib/http_stub/server/stub/hash_with_string_value_matchers_spec.rb"
516
- - "./spec/lib/http_stub/server/stub/headers_spec.rb"
517
- - "./spec/lib/http_stub/server/stub/instance_spec.rb"
518
- - "./spec/lib/http_stub/server/stub/json_request_body_spec.rb"
519
- - "./spec/lib/http_stub/server/stub/method_spec.rb"
520
- - "./spec/lib/http_stub/server/stub/omitted_value_matcher_spec.rb"
521
- - "./spec/lib/http_stub/server/stub/regexp_value_matcher_spec.rb"
522
- - "./spec/lib/http_stub/server/stub/registry_integration_spec.rb"
523
- - "./spec/lib/http_stub/server/stub/registry_spec.rb"
524
- - "./spec/lib/http_stub/server/stub/request_body_spec.rb"
525
- - "./spec/lib/http_stub/server/stub/request_header_parser_spec.rb"
526
- - "./spec/lib/http_stub/server/stub/request_headers_spec.rb"
527
- - "./spec/lib/http_stub/server/stub/request_parameters_spec.rb"
528
- - "./spec/lib/http_stub/server/stub/request_parser_spec.rb"
529
- - "./spec/lib/http_stub/server/stub/response/base_spec.rb"
530
- - "./spec/lib/http_stub/server/stub/response/file_spec.rb"
531
- - "./spec/lib/http_stub/server/stub/response/text_spec.rb"
532
- - "./spec/lib/http_stub/server/stub/response_spec.rb"
533
- - "./spec/lib/http_stub/server/stub/simple_request_body_spec.rb"
534
- - "./spec/lib/http_stub/server/stub/string_value_matcher_spec.rb"
535
- - "./spec/lib/http_stub/server/stub/triggers_spec.rb"
536
- - "./spec/lib/http_stub/server/stub/truthy_request_matcher_spec.rb"
537
- - "./spec/lib/http_stub/server/stub/uri_spec.rb"
538
- - "./spec/lib/http_stub/server/stub_spec.rb"
539
- - "./spec/resources/sample.pdf"
540
- - "./spec/resources/sample.txt"
541
- - "./spec/spec_helper.rb"
542
- - "./spec/support/configurer_integration.rb"
543
- - "./spec/support/scenario_fixture.rb"
544
- - "./spec/support/server_integration.rb"
545
- - "./spec/support/stub_fixture.rb"
476
+ - ./spec/acceptance/activator_spec.rb
477
+ - ./spec/acceptance/configurer_initialization_spec.rb
478
+ - ./spec/acceptance/configurer_part_spec.rb
479
+ - ./spec/acceptance/endpoint_template_spec.rb
480
+ - ./spec/acceptance/scenario_spec.rb
481
+ - ./spec/acceptance/server_defaults_spec.rb
482
+ - ./spec/acceptance/stub_body_request_matching_spec.rb
483
+ - ./spec/acceptance/stub_control_values_spec.rb
484
+ - ./spec/acceptance/stub_match_spec.rb
485
+ - ./spec/acceptance/stub_spec.rb
486
+ - ./spec/acceptance/stub_trigger_spec.rb
487
+ - ./spec/curl_samples.txt
488
+ - ./spec/lib/http_stub/configurer/dsl/deprecated_spec.rb
489
+ - ./spec/lib/http_stub/configurer/dsl/endpoint_template_spec.rb
490
+ - ./spec/lib/http_stub/configurer/dsl/scenario_activator_spec.rb
491
+ - ./spec/lib/http_stub/configurer/dsl/scenario_builder_spec.rb
492
+ - ./spec/lib/http_stub/configurer/dsl/server_spec.rb
493
+ - ./spec/lib/http_stub/configurer/dsl/stub_activator_builder_spec.rb
494
+ - ./spec/lib/http_stub/configurer/dsl/stub_builder_producer_spec.rb
495
+ - ./spec/lib/http_stub/configurer/dsl/stub_builder_spec.rb
496
+ - ./spec/lib/http_stub/configurer/part_spec.rb
497
+ - ./spec/lib/http_stub/configurer/request/controllable_value_spec.rb
498
+ - ./spec/lib/http_stub/configurer/request/http/basic_spec.rb
499
+ - ./spec/lib/http_stub/configurer/request/http/factory_spec.rb
500
+ - ./spec/lib/http_stub/configurer/request/http/multipart_spec.rb
501
+ - ./spec/lib/http_stub/configurer/request/omittable_spec.rb
502
+ - ./spec/lib/http_stub/configurer/request/regexpable_spec.rb
503
+ - ./spec/lib/http_stub/configurer/request/scenario_spec.rb
504
+ - ./spec/lib/http_stub/configurer/request/stub_response_spec.rb
505
+ - ./spec/lib/http_stub/configurer/request/stub_spec.rb
506
+ - ./spec/lib/http_stub/configurer/server/buffered_command_processor_spec.rb
507
+ - ./spec/lib/http_stub/configurer/server/command_processor_integration_spec.rb
508
+ - ./spec/lib/http_stub/configurer/server/command_spec.rb
509
+ - ./spec/lib/http_stub/configurer/server/facade_spec.rb
510
+ - ./spec/lib/http_stub/configurer/server/request_processor_spec.rb
511
+ - ./spec/lib/http_stub/extensions/core/hash_spec.rb
512
+ - ./spec/lib/http_stub/extensions/rack/handler_spec.rb
513
+ - ./spec/lib/http_stub/hash_with_indifferent_and_insensitive_access_spec.rb
514
+ - ./spec/lib/http_stub/rake/server_daemon_tasks_smoke_spec.rb
515
+ - ./spec/lib/http_stub/rake/server_tasks_smoke_spec.rb
516
+ - ./spec/lib/http_stub/rake/server_tasks_spec.rb
517
+ - ./spec/lib/http_stub/server/application_integration_spec.rb
518
+ - ./spec/lib/http_stub/server/application_spec.rb
519
+ - ./spec/lib/http_stub/server/daemon_integration_spec.rb
520
+ - ./spec/lib/http_stub/server/daemon_spec.rb
521
+ - ./spec/lib/http_stub/server/formatted_hash_spec.rb
522
+ - ./spec/lib/http_stub/server/header_parser_spec.rb
523
+ - ./spec/lib/http_stub/server/payload_file_consolidator_spec.rb
524
+ - ./spec/lib/http_stub/server/registry_spec.rb
525
+ - ./spec/lib/http_stub/server/request_pipeline_spec.rb
526
+ - ./spec/lib/http_stub/server/request_spec.rb
527
+ - ./spec/lib/http_stub/server/response_pipeline_spec.rb
528
+ - ./spec/lib/http_stub/server/response_spec.rb
529
+ - ./spec/lib/http_stub/server/scenario/activator_spec.rb
530
+ - ./spec/lib/http_stub/server/scenario/controller_spec.rb
531
+ - ./spec/lib/http_stub/server/scenario/parser_spec.rb
532
+ - ./spec/lib/http_stub/server/scenario/scenario_spec.rb
533
+ - ./spec/lib/http_stub/server/scenario_spec.rb
534
+ - ./spec/lib/http_stub/server/stub/controller_spec.rb
535
+ - ./spec/lib/http_stub/server/stub/empty_spec.rb
536
+ - ./spec/lib/http_stub/server/stub/match/exact_value_matcher_spec.rb
537
+ - ./spec/lib/http_stub/server/stub/match/hash_with_string_value_matchers_spec.rb
538
+ - ./spec/lib/http_stub/server/stub/match/match_spec.rb
539
+ - ./spec/lib/http_stub/server/stub/match/omitted_value_matcher_spec.rb
540
+ - ./spec/lib/http_stub/server/stub/match/regexp_value_matcher_spec.rb
541
+ - ./spec/lib/http_stub/server/stub/match/rule/body_spec.rb
542
+ - ./spec/lib/http_stub/server/stub/match/rule/headers_spec.rb
543
+ - ./spec/lib/http_stub/server/stub/match/rule/json_body_spec.rb
544
+ - ./spec/lib/http_stub/server/stub/match/rule/method_spec.rb
545
+ - ./spec/lib/http_stub/server/stub/match/rule/parameters_spec.rb
546
+ - ./spec/lib/http_stub/server/stub/match/rule/simple_body_spec.rb
547
+ - ./spec/lib/http_stub/server/stub/match/rule/uri_spec.rb
548
+ - ./spec/lib/http_stub/server/stub/match/string_value_matcher_spec.rb
549
+ - ./spec/lib/http_stub/server/stub/match/truthy_matcher_spec.rb
550
+ - ./spec/lib/http_stub/server/stub/parser_spec.rb
551
+ - ./spec/lib/http_stub/server/stub/registry_integration_spec.rb
552
+ - ./spec/lib/http_stub/server/stub/registry_spec.rb
553
+ - ./spec/lib/http_stub/server/stub/response/base_spec.rb
554
+ - ./spec/lib/http_stub/server/stub/response/file_spec.rb
555
+ - ./spec/lib/http_stub/server/stub/response/text_spec.rb
556
+ - ./spec/lib/http_stub/server/stub/response_spec.rb
557
+ - ./spec/lib/http_stub/server/stub/stub_spec.rb
558
+ - ./spec/lib/http_stub/server/stub/triggers_spec.rb
559
+ - ./spec/lib/http_stub/server/stub_spec.rb
560
+ - ./spec/resources/sample.pdf
561
+ - ./spec/resources/sample.txt
562
+ - ./spec/spec_helper.rb
563
+ - ./spec/support/configurer_integration.rb
564
+ - ./spec/support/http_stub/empty_configurer.rb
565
+ - ./spec/support/http_stub/scenario_fixture.rb
566
+ - ./spec/support/http_stub/server/request_fixture.rb
567
+ - ./spec/support/http_stub/server/scenario/scenario_fixture.rb
568
+ - ./spec/support/http_stub/server/stub/match/match_fixture.rb
569
+ - ./spec/support/http_stub/stub_fixture.rb
570
+ - ./spec/support/server_integration.rb