webmock-net-http-pipeline 1.0.0 → 2.0.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: 397983d8f69cd968e08f3ce2656502d535efe32e
4
- data.tar.gz: 73e9b87762c31b999c59532fddd8dfa4bf004852
3
+ metadata.gz: 793eb42846bdd7e90eafbf17d4ca98895cc3552d
4
+ data.tar.gz: 717f1a89c16a5dc16241acd8b39df3f5a6f0c947
5
5
  SHA512:
6
- metadata.gz: ddad97f62dd128f21c63ea22908eb3a48c6ceb4454a1bf1ee60ddc5b8e8e88920b1e1312be739923473648acbd84d7de072001b4bf70966576795b3a5e29e858
7
- data.tar.gz: a3b9890f8752df0d882cbfe04485d5f24659cc1c36a0f3a5d7718ae085b7621f2e51a6aa1b69597ec79ba025e84416642b27d9e568539b30c2176128aeb194bf
6
+ metadata.gz: 48d1c9a9764b239fdca0e66a251b934d4ff93161526493662faea00a4537e3a61476264d3c00f81a482b04ba7473cd410c00facb590ff5827c24534bce952132
7
+ data.tar.gz: 04593bbeadd46ed1e21ff9313857a346337d121934820dcc886f58d99d00694b59e133b29c14a4783bb6d289e2b845e7bba678d865385146d4294b9e47180a00
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
@@ -0,0 +1 @@
1
+ 2.2.2
@@ -0,0 +1,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ webmock-net-http-pipeline (1.0.0)
5
+ webmock (~> 1.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.3.8)
11
+ crack (0.4.2)
12
+ safe_yaml (~> 1.0.0)
13
+ minitest (5.7.0)
14
+ rake (10.4.2)
15
+ safe_yaml (1.0.4)
16
+ webmock (1.21.0)
17
+ addressable (>= 2.3.6)
18
+ crack (>= 0.3.2)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ bundler (~> 1.5)
25
+ minitest
26
+ rake
27
+ webmock-net-http-pipeline!
28
+
29
+ BUNDLED WITH
30
+ 1.10.6
data/README.md CHANGED
@@ -33,9 +33,8 @@ $ gem install webmock-net-http-pipeline
33
33
 
34
34
  ## Usage
35
35
 
36
- Simply `require` this gem after requiring `webmock`, and start mocking and
37
- testing your pipelined requests.
38
-
36
+ Simply continue to mock your HTTP requests as you already do with Webmock, but
37
+ now you can test your mocked pipeline calls too.
39
38
 
40
39
  ```ruby
41
40
  require "webmock"
@@ -53,6 +52,11 @@ responses = http.pipeline(requests)
53
52
  p responses #=> [#<Net::HTTPOK 200 readbody=true>, ...]
54
53
  ```
55
54
 
55
+ ## Ruby Version Compatilbility
56
+
57
+ As of v2.0.0, this library is compatible with Ruby versions >= 2.0.0. For a
58
+ version compatible with earlier Rubies, please v1.0.0.
59
+
56
60
  ## Contributing
57
61
 
58
62
  1. Fork it: http://github.com/globaldev/webmock-net-http-pipeline/fork
@@ -61,5 +65,21 @@ p responses #=> [#<Net::HTTPOK 200 readbody=true>, ...]
61
65
  4. Push to the branch: `git push origin my-new-feature`
62
66
  5. Create new Pull Request
63
67
 
68
+ ## Licensing and Attribution
69
+
70
+ webmock-net-http-pipeline is released under the MIT license as detailed in the
71
+ LICENSE file that should be distributed with ; the source code is [freely
72
+ available][wnhp].
73
+
74
+ webmock-net-http-pipeline was developed by [Tim Blair][tim] and [Mat
75
+ Sadler][mat] during work on [White Label Dating][wld], while employed by
76
+ [Global Personals Ltd][gp]. Global Personals Ltd. have kindly agreed to the
77
+ extraction and release of this software under the license terms above.
78
+
64
79
  [webmock]: https://github.com/bblimke/webmock
65
- [nhp]: https://github.com/drbrain/net-http-pipeline
80
+ [nhp]: https://github.com/drbrain/net-http-pipeline
81
+ [wnhp]: https://gitbug.com/globaldev/webmock-net-http-pipeline
82
+ [tim]: http://tim.bla.ir/
83
+ [mat]: https://twitter.com/matsadler
84
+ [wld]: http://www.whitelabeldating.com/
85
+ [gp]: http://www.globalpersonals.co.uk/
data/Rakefile CHANGED
@@ -1 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ task :default => :test
5
+
6
+ Rake::TestTask.new do |task|
7
+ task.pattern = "test/test_*.rb"
8
+ end
@@ -21,5 +21,5 @@ module WebMock
21
21
  end
22
22
 
23
23
  WebMock::HttpLibAdapters::NetHttpAdapter.instance_variable_get(:@webMockNetHTTP).class_eval do
24
- include WebMock::NetHTTPPipeline
24
+ prepend WebMock::NetHTTPPipeline
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module WebMock
2
2
  module NetHTTPPipeline
3
- VERSION = "1.0.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require "minitest/autorun"
2
2
  require "webmock/net/http/pipeline"
3
3
 
4
- class TestPipeliningBehaviour < MiniTest::Unit::TestCase
4
+ class TestPipeliningBehaviour < MiniTest::Test
5
5
 
6
6
  class MockedResponse < Struct.new(:request); end
7
7
  class MockedClient
@@ -51,7 +51,7 @@ class TestPipeliningBehaviour < MiniTest::Unit::TestCase
51
51
  end
52
52
  end
53
53
 
54
- class TestWebMockInclusion < MiniTest::Unit::TestCase
54
+ class TestWebMockInclusion < MiniTest::Test
55
55
  def setup
56
56
  klass = WebMock::HttpLibAdapters::NetHttpAdapter
57
57
  @client = klass.instance_variable_get(:@webMockNetHTTP).new(nil)
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "webmock", "~> 1.7"
21
+ spec.add_dependency "webmock", "~> 1.8"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.5"
24
24
  spec.add_development_dependency "minitest"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock-net-http-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Blair
@@ -9,62 +9,62 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-22 00:00:00.000000000 Z
12
+ date: 2015-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: webmock
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.7'
20
+ version: '1.8'
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
- version: '1.7'
27
+ version: '1.8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.5'
35
35
  type: :development
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.5'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
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'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
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: '0'
70
70
  description: Mimics net-http-pipeline's behaviour within WebMock's Net::HTTP implementation,
@@ -76,8 +76,10 @@ executables: []
76
76
  extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
- - .gitignore
79
+ - ".gitignore"
80
+ - ".ruby-version"
80
81
  - Gemfile
82
+ - Gemfile.lock
81
83
  - LICENSE.txt
82
84
  - README.md
83
85
  - Rakefile
@@ -95,17 +97,17 @@ require_paths:
95
97
  - lib
96
98
  required_ruby_version: !ruby/object:Gem::Requirement
97
99
  requirements:
98
- - - '>='
100
+ - - ">="
99
101
  - !ruby/object:Gem::Version
100
102
  version: '0'
101
103
  required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
- - - '>='
105
+ - - ">="
104
106
  - !ruby/object:Gem::Version
105
107
  version: '0'
106
108
  requirements: []
107
109
  rubyforge_project:
108
- rubygems_version: 2.1.11
110
+ rubygems_version: 2.4.8
109
111
  signing_key:
110
112
  specification_version: 4
111
113
  summary: Use WebMock to test your use of pipelined HTTP requests.