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 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
- require File.expand_path('../http_stub/hash_extensions', __FILE__)
14
- require File.expand_path('../http_stub/models/response', __FILE__)
15
- require File.expand_path('../http_stub/models/omitted_value_matcher', __FILE__)
16
- require File.expand_path('../http_stub/models/regexp_value_matcher', __FILE__)
17
- require File.expand_path('../http_stub/models/exact_value_matcher', __FILE__)
18
- require File.expand_path('../http_stub/models/value_matcher', __FILE__)
19
- require File.expand_path('../http_stub/models/hash_with_value_matchers', __FILE__)
20
- require File.expand_path('../http_stub/models/request_header_parser', __FILE__)
21
- require File.expand_path('../http_stub/models/stub_uri', __FILE__)
22
- require File.expand_path('../http_stub/models/stub_headers', __FILE__)
23
- require File.expand_path('../http_stub/models/stub_parameters', __FILE__)
24
- require File.expand_path('../http_stub/models/stub', __FILE__)
25
- require File.expand_path('../http_stub/models/stub_activator', __FILE__)
26
- require File.expand_path('../http_stub/models/registry', __FILE__)
27
- require File.expand_path('../http_stub/models/request_pipeline', __FILE__)
28
- require File.expand_path('../http_stub/controllers/stub_controller', __FILE__)
29
- require File.expand_path('../http_stub/controllers/stub_activator_controller', __FILE__)
30
- require File.expand_path('../http_stub/server', __FILE__)
31
- require File.expand_path('../http_stub/daemon', __FILE__)
32
- require File.expand_path('../http_stub/configurer/request/omittable', __FILE__)
33
- require File.expand_path('../http_stub/configurer/request/regexpable', __FILE__)
34
- require File.expand_path('../http_stub/configurer/request/controllable_value', __FILE__)
35
- require File.expand_path('../http_stub/configurer/request/stub', __FILE__)
36
- require File.expand_path('../http_stub/configurer/request/stub_activator', __FILE__)
37
- require File.expand_path('../http_stub/configurer/command', __FILE__)
38
- require File.expand_path('../http_stub/configurer/command_processor', __FILE__)
39
- require File.expand_path('../http_stub/configurer/patient_command_chain', __FILE__)
40
- require File.expand_path('../http_stub/configurer/impatient_command_chain', __FILE__)
41
- require File.expand_path('../http_stub/configurer', __FILE__)
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'
@@ -1,3 +1,3 @@
1
1
  module HttpStub
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,25 +1,22 @@
1
- require 'simplecov'
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 99.2
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
- require File.expand_path('../../lib/http_stub/rake/task_generators', __FILE__)
17
- require File.expand_path('../../lib/http_stub', __FILE__)
18
- require File.expand_path('../../examples/configurer_with_class_activator', __FILE__)
19
- require File.expand_path('../../examples/configurer_with_class_stub', __FILE__)
20
- require File.expand_path('../../examples/configurer_with_initialize_callback', __FILE__)
21
- require File.expand_path('../../examples/configurer_with_complex_initializer', __FILE__)
22
- require File.expand_path('../../examples/configurer_with_many_class_activators', __FILE__)
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.0
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: 244872953293739403
375
+ hash: 338662377944414106
376
376
  requirements: []
377
377
  rubyforge_project: http_stub
378
378
  rubygems_version: 1.8.25