http_stub 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/http_stub.rb +29 -33
- data/lib/http_stub/version.rb +1 -1
- data/spec/spec_helper.rb +11 -14
- metadata +2 -2
data/lib/http_stub.rb
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
|
-
Bundler.require(:default)
|
4
|
-
|
5
1
|
require 'sinatra'
|
6
2
|
require 'sinatra/partial'
|
7
3
|
require 'haml'
|
@@ -10,32 +6,32 @@ require 'net/http'
|
|
10
6
|
require 'json'
|
11
7
|
require 'http_server_manager'
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
9
|
+
require_relative 'http_stub/hash_extensions'
|
10
|
+
require_relative 'http_stub/models/response'
|
11
|
+
require_relative 'http_stub/models/omitted_value_matcher'
|
12
|
+
require_relative 'http_stub/models/regexp_value_matcher'
|
13
|
+
require_relative 'http_stub/models/exact_value_matcher'
|
14
|
+
require_relative 'http_stub/models/value_matcher'
|
15
|
+
require_relative 'http_stub/models/hash_with_value_matchers'
|
16
|
+
require_relative 'http_stub/models/request_header_parser'
|
17
|
+
require_relative 'http_stub/models/stub_uri'
|
18
|
+
require_relative 'http_stub/models/stub_headers'
|
19
|
+
require_relative 'http_stub/models/stub_parameters'
|
20
|
+
require_relative 'http_stub/models/stub'
|
21
|
+
require_relative 'http_stub/models/stub_activator'
|
22
|
+
require_relative 'http_stub/models/registry'
|
23
|
+
require_relative 'http_stub/models/request_pipeline'
|
24
|
+
require_relative 'http_stub/controllers/stub_controller'
|
25
|
+
require_relative 'http_stub/controllers/stub_activator_controller'
|
26
|
+
require_relative 'http_stub/server'
|
27
|
+
require_relative 'http_stub/daemon'
|
28
|
+
require_relative 'http_stub/configurer/request/omittable'
|
29
|
+
require_relative 'http_stub/configurer/request/regexpable'
|
30
|
+
require_relative 'http_stub/configurer/request/controllable_value'
|
31
|
+
require_relative 'http_stub/configurer/request/stub'
|
32
|
+
require_relative 'http_stub/configurer/request/stub_activator'
|
33
|
+
require_relative 'http_stub/configurer/command'
|
34
|
+
require_relative 'http_stub/configurer/command_processor'
|
35
|
+
require_relative 'http_stub/configurer/patient_command_chain'
|
36
|
+
require_relative 'http_stub/configurer/impatient_command_chain'
|
37
|
+
require_relative 'http_stub/configurer'
|
data/lib/http_stub/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,25 +1,22 @@
|
|
1
|
-
require '
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.require(:default, :development)
|
3
|
+
|
2
4
|
SimpleCov.start do
|
3
5
|
add_filter "/spec/"
|
4
6
|
add_filter "/vendor/"
|
5
|
-
minimum_coverage
|
7
|
+
minimum_coverage 100
|
6
8
|
refuse_coverage_drop
|
7
9
|
end if ENV["coverage"]
|
8
10
|
|
9
|
-
require 'httparty'
|
10
|
-
require 'nokogiri'
|
11
|
-
require 'rack/test'
|
12
|
-
require 'wait_until'
|
13
|
-
|
14
11
|
require 'http_server_manager/test_support'
|
15
12
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
require_relative '../lib/http_stub/rake/task_generators'
|
14
|
+
require_relative '../lib/http_stub'
|
15
|
+
require_relative '../examples/configurer_with_class_activator'
|
16
|
+
require_relative '../examples/configurer_with_class_stub'
|
17
|
+
require_relative '../examples/configurer_with_initialize_callback'
|
18
|
+
require_relative '../examples/configurer_with_complex_initializer'
|
19
|
+
require_relative '../examples/configurer_with_many_class_activators'
|
23
20
|
|
24
21
|
HttpStub::Daemon.log_dir = File.expand_path('../../tmp/log', __FILE__)
|
25
22
|
HttpStub::Daemon.pid_dir = File.expand_path('../../tmp/pids', __FILE__)
|
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.11.
|
4
|
+
version: 0.11.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -372,7 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
372
372
|
version: '0'
|
373
373
|
segments:
|
374
374
|
- 0
|
375
|
-
hash:
|
375
|
+
hash: 338662377944414106
|
376
376
|
requirements: []
|
377
377
|
rubyforge_project: http_stub
|
378
378
|
rubygems_version: 1.8.25
|