typhoeus 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## Master
4
+
5
+ [Full Changelog](http://github.com/typhoeus/typhoeus/compare/v0.5.1...master)
6
+
7
+ ## 0.5.1
8
+
9
+ [Full Changelog](http://github.com/typhoeus/typhoeus/compare/v0.5.0...v0.5.1)
10
+
11
+ Enhancements:
12
+
13
+ * Downcase header keys for easier access
14
+ ( [\#227](https://github.com/typhoeus/typhoeus/issues/227) )
15
+ * Using an updated Ethon version.
16
+
3
17
  ## 0.5.0
4
18
 
5
- [Full Changelog](http://github.com/typhoeus/typhoeus/compare/v0.4.2...master)
19
+ [Full Changelog](http://github.com/typhoeus/typhoeus/compare/v0.4.2...v0.5.0)
6
20
 
7
21
  Major Changes:
8
22
 
data/README.md CHANGED
@@ -21,10 +21,10 @@ hydra.run
21
21
  ## Installation
22
22
 
23
23
  ```
24
- gem install typhoeus --pre
24
+ gem install typhoeus
25
25
  ```
26
26
  ```
27
- gem "typhoeus", git: "git://github.com/typhoeus/typhoeus.git"
27
+ gem "typhoeus"
28
28
  ```
29
29
 
30
30
  ## Project Tracking
@@ -2,8 +2,8 @@ module Typhoeus
2
2
  class Hydra
3
3
 
4
4
  # This is a Factory for easies to be used in the hydra.
5
- # Before an easy is ready to be added to a multi, it needs
6
- # to be prepared and the on_complete callback to be set.
5
+ # Before an easy is ready to be added to a multi the
6
+ # on_complete callback to be set.
7
7
  # This is done by this class.
8
8
  #
9
9
  # @api private
@@ -41,19 +41,18 @@ module Typhoeus
41
41
  @easy ||= hydra.get_easy
42
42
  end
43
43
 
44
- # Fabricated and prepared easy.
44
+ # Fabricated easy.
45
45
  #
46
46
  # @example Prepared easy.
47
47
  # easy_factory.get
48
48
  #
49
- # @return [ Ethon::Easy ] The prepared easy.
49
+ # @return [ Ethon::Easy ] The easy.
50
50
  def get
51
51
  easy.http_request(
52
52
  request.url,
53
53
  request.options.fetch(:method, :get),
54
54
  request.options.reject{|k,_| k==:method}
55
55
  )
56
- easy.prepare
57
56
  set_callback
58
57
  easy
59
58
  end
@@ -13,7 +13,6 @@ module Typhoeus
13
13
  #
14
14
  # @return [ Symbol ] Return value from multi.perform.
15
15
  def run
16
- multi.prepare
17
16
  multi.perform
18
17
  end
19
18
  end
@@ -23,7 +23,6 @@ module Typhoeus
23
23
  help = provide_help(e.message.match(/:\s(\w+)/)[1])
24
24
  raise $!, "#{$!}#{help}", $!.backtrace
25
25
  end
26
- easy.prepare
27
26
  easy.perform
28
27
  finish(Response.new(easy.to_hash))
29
28
  Typhoeus.release_easy(easy)
@@ -35,6 +35,7 @@ module Typhoeus
35
35
  # @return [ void ]
36
36
  def process_line(header)
37
37
  key, value = header.split(':', 2).map(&:strip)
38
+ key = key.downcase
38
39
  if self.has_key?(key)
39
40
  self[key] = [self[key]] unless self[key].is_a? Array
40
41
  self[key] << value
@@ -1,5 +1,5 @@
1
1
  module Typhoeus
2
2
 
3
3
  # The current Typhoeus version.
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
metadata CHANGED
@@ -1,73 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ prerelease:
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Balatero
9
9
  - Paul Dix
10
10
  - Hans Hasselberg
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-30 00:00:00.000000000 Z
14
+ date: 2012-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ethon
18
- requirement: !ruby/object:Gem::Requirement
19
- none: false
18
+ version_requirements: !ruby/object:Gem::Requirement
20
19
  requirements:
21
20
  - - '='
22
21
  - !ruby/object:Gem::Version
23
- version: 0.5.2
24
- type: :runtime
25
- prerelease: false
26
- version_requirements: !ruby/object:Gem::Requirement
22
+ version: 0.5.3
27
23
  none: false
24
+ requirement: !ruby/object:Gem::Requirement
28
25
  requirements:
29
26
  - - '='
30
27
  - !ruby/object:Gem::Version
31
- version: 0.5.2
32
- description: Like a modern code version of the mythical beast with 100 serpent heads,
33
- Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.
28
+ version: 0.5.3
29
+ none: false
30
+ prerelease: false
31
+ type: :runtime
32
+ description: Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.
34
33
  email:
35
34
  - hans.hasselberg@gmail.com
36
35
  executables: []
37
36
  extensions: []
38
37
  extra_rdoc_files: []
39
38
  files:
40
- - lib/typhoeus/adapters/faraday.rb
41
- - lib/typhoeus/config.rb
42
- - lib/typhoeus/errors/no_stub.rb
43
- - lib/typhoeus/errors/typhoeus_error.rb
44
- - lib/typhoeus/errors.rb
45
- - lib/typhoeus/expectation.rb
46
- - lib/typhoeus/hydra/before.rb
47
- - lib/typhoeus/hydra/block_connection.rb
48
- - lib/typhoeus/hydra/easy_factory.rb
49
- - lib/typhoeus/hydra/easy_pool.rb
50
- - lib/typhoeus/hydra/memoizable.rb
51
- - lib/typhoeus/hydra/queueable.rb
52
- - lib/typhoeus/hydra/runnable.rb
53
- - lib/typhoeus/hydra/stubbable.rb
54
- - lib/typhoeus/hydra.rb
55
- - lib/typhoeus/request/actions.rb
56
- - lib/typhoeus/request/before.rb
57
- - lib/typhoeus/request/block_connection.rb
58
- - lib/typhoeus/request/callbacks.rb
59
- - lib/typhoeus/request/marshal.rb
60
- - lib/typhoeus/request/memoizable.rb
61
- - lib/typhoeus/request/operations.rb
62
- - lib/typhoeus/request/responseable.rb
63
- - lib/typhoeus/request/stubbable.rb
64
- - lib/typhoeus/request.rb
65
- - lib/typhoeus/response/header.rb
66
- - lib/typhoeus/response/informations.rb
67
- - lib/typhoeus/response/status.rb
68
- - lib/typhoeus/response.rb
69
- - lib/typhoeus/version.rb
70
- - lib/typhoeus.rb
39
+ - !binary |-
40
+ bGliL3R5cGhvZXVzLnJi
41
+ - !binary |-
42
+ bGliL3R5cGhvZXVzL2NvbmZpZy5yYg==
43
+ - !binary |-
44
+ bGliL3R5cGhvZXVzL2Vycm9ycy5yYg==
45
+ - !binary |-
46
+ bGliL3R5cGhvZXVzL2V4cGVjdGF0aW9uLnJi
47
+ - !binary |-
48
+ bGliL3R5cGhvZXVzL2h5ZHJhLnJi
49
+ - !binary |-
50
+ bGliL3R5cGhvZXVzL3JlcXVlc3QucmI=
51
+ - !binary |-
52
+ bGliL3R5cGhvZXVzL3Jlc3BvbnNlLnJi
53
+ - !binary |-
54
+ bGliL3R5cGhvZXVzL3ZlcnNpb24ucmI=
55
+ - !binary |-
56
+ bGliL3R5cGhvZXVzL2FkYXB0ZXJzL2ZhcmFkYXkucmI=
57
+ - !binary |-
58
+ bGliL3R5cGhvZXVzL2Vycm9ycy9ub19zdHViLnJi
59
+ - !binary |-
60
+ bGliL3R5cGhvZXVzL2Vycm9ycy90eXBob2V1c19lcnJvci5yYg==
61
+ - !binary |-
62
+ bGliL3R5cGhvZXVzL2h5ZHJhL2JlZm9yZS5yYg==
63
+ - !binary |-
64
+ bGliL3R5cGhvZXVzL2h5ZHJhL2Jsb2NrX2Nvbm5lY3Rpb24ucmI=
65
+ - !binary |-
66
+ bGliL3R5cGhvZXVzL2h5ZHJhL2Vhc3lfZmFjdG9yeS5yYg==
67
+ - !binary |-
68
+ bGliL3R5cGhvZXVzL2h5ZHJhL2Vhc3lfcG9vbC5yYg==
69
+ - !binary |-
70
+ bGliL3R5cGhvZXVzL2h5ZHJhL21lbW9pemFibGUucmI=
71
+ - !binary |-
72
+ bGliL3R5cGhvZXVzL2h5ZHJhL3F1ZXVlYWJsZS5yYg==
73
+ - !binary |-
74
+ bGliL3R5cGhvZXVzL2h5ZHJhL3J1bm5hYmxlLnJi
75
+ - !binary |-
76
+ bGliL3R5cGhvZXVzL2h5ZHJhL3N0dWJiYWJsZS5yYg==
77
+ - !binary |-
78
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvYWN0aW9ucy5yYg==
79
+ - !binary |-
80
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvYmVmb3JlLnJi
81
+ - !binary |-
82
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvYmxvY2tfY29ubmVjdGlvbi5yYg==
83
+ - !binary |-
84
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvY2FsbGJhY2tzLnJi
85
+ - !binary |-
86
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvbWFyc2hhbC5yYg==
87
+ - !binary |-
88
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvbWVtb2l6YWJsZS5yYg==
89
+ - !binary |-
90
+ bGliL3R5cGhvZXVzL3JlcXVlc3Qvb3BlcmF0aW9ucy5yYg==
91
+ - !binary |-
92
+ bGliL3R5cGhvZXVzL3JlcXVlc3QvcmVzcG9uc2VhYmxlLnJi
93
+ - !binary |-
94
+ bGliL3R5cGhvZXVzL3JlcXVlc3Qvc3R1YmJhYmxlLnJi
95
+ - !binary |-
96
+ bGliL3R5cGhvZXVzL3Jlc3BvbnNlL2hlYWRlci5yYg==
97
+ - !binary |-
98
+ bGliL3R5cGhvZXVzL3Jlc3BvbnNlL2luZm9ybWF0aW9ucy5yYg==
99
+ - !binary |-
100
+ bGliL3R5cGhvZXVzL3Jlc3BvbnNlL3N0YXR1cy5yYg==
71
101
  - CHANGELOG.md
72
102
  - Gemfile
73
103
  - LICENSE
@@ -75,29 +105,31 @@ files:
75
105
  - Rakefile
76
106
  homepage: https://github.com/typhoeus/typhoeus
77
107
  licenses: []
78
- post_install_message:
108
+ post_install_message:
79
109
  rdoc_options: []
80
110
  require_paths:
81
111
  - lib
82
112
  required_ruby_version: !ruby/object:Gem::Requirement
83
- none: false
84
113
  requirements:
85
114
  - - ! '>='
86
115
  - !ruby/object:Gem::Version
87
- version: '0'
88
116
  segments:
89
117
  - 0
90
- hash: -2522351330136258713
91
- required_rubygems_version: !ruby/object:Gem::Requirement
118
+ hash: 2
119
+ version: !binary |-
120
+ MA==
92
121
  none: false
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
123
  requirements:
94
124
  - - ! '>='
95
125
  - !ruby/object:Gem::Version
96
126
  version: 1.3.6
127
+ none: false
97
128
  requirements: []
98
129
  rubyforge_project: ! '[none]'
99
- rubygems_version: 1.8.23
100
- signing_key:
130
+ rubygems_version: 1.8.24
131
+ signing_key:
101
132
  specification_version: 3
102
133
  summary: Parallel HTTP library on top of libcurl multi.
103
134
  test_files: []
135
+ ...