marnen-typhoeus 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- marnen-typhoeus (0.3.6)
4
+ marnen-typhoeus (0.3.7)
5
5
  mime-types
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- ZenTest (4.7.0)
11
- autotest (4.4.6)
12
- ZenTest (>= 4.4.1)
13
- coderay (0.9.8)
14
10
  diff-lcs (1.1.2)
15
11
  json (1.5.3)
16
- method_source (0.6.7)
17
- ruby_parser (>= 2.3.1)
18
12
  mime-types (1.18)
19
- pry (0.9.7.4)
20
- coderay (~> 0.9.8)
21
- method_source (~> 0.6.7)
22
- ruby_parser (>= 2.3.1)
23
- slop (~> 2.1.0)
24
- pry-nav (0.0.4)
25
- pry (~> 0.9.7.4)
26
13
  rack (1.3.0)
27
14
  rake (0.9.2)
28
15
  rspec (2.6.0)
@@ -33,24 +20,18 @@ GEM
33
20
  rspec-expectations (2.6.0)
34
21
  diff-lcs (~> 1.1.2)
35
22
  rspec-mocks (2.6.0)
36
- ruby_parser (2.3.1)
37
- sexp_processor (~> 3.0)
38
- sexp_processor (3.0.10)
39
23
  sinatra (1.2.6)
40
24
  rack (~> 1.1)
41
25
  tilt (>= 1.2.2, < 2.0)
42
- slop (2.1.0)
43
26
  tilt (1.3.2)
44
27
 
45
28
  PLATFORMS
46
29
  ruby
47
30
 
48
31
  DEPENDENCIES
49
- autotest
50
32
  diff-lcs
51
33
  json
52
34
  marnen-typhoeus!
53
- pry-nav
54
35
  rake
55
36
  rspec (~> 2.6)
56
37
  sinatra
@@ -35,33 +35,5 @@ module Typhoeus
35
35
  end
36
36
  end
37
37
  module_function :bytesize
38
-
39
- private
40
-
41
- def process_value(current_value, options)
42
- result = options[:result]
43
- new_key = options[:new_key]
44
-
45
- case current_value
46
- when Hash
47
- traverse_params_hash(current_value, result, new_key)
48
- when Array
49
- current_value.each do |v|
50
- result[:params] << [new_key, v.to_s]
51
- end
52
- when File, Tempfile
53
- filename = File.basename(current_value.path)
54
- types = MIME::Types.type_for(filename)
55
- result[:files] << [
56
- new_key,
57
- filename,
58
- types.empty? ? 'application/octet-stream' : types[0].to_s,
59
- File.expand_path(current_value.path)
60
- ]
61
- else
62
- result[:params] << [new_key, current_value.to_s]
63
- end
64
- end
65
- module_function :process_value
66
38
  end
67
39
  end
@@ -1,3 +1,3 @@
1
1
  module Typhoeus
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
  end
@@ -30,6 +30,4 @@ Gem::Specification.new do |s|
30
30
  s.add_development_dependency 'sinatra', [">= 0"]
31
31
  s.add_development_dependency 'json', [">= 0"]
32
32
  s.add_development_dependency 'rake', [">= 0"]
33
- s.add_development_dependency 'pry-nav', [">= 0"]
34
- s.add_development_dependency 'autotest', [">= 0"]
35
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marnen-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -109,38 +109,6 @@ dependencies:
109
109
  - - ! '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: pry-nav
114
- requirement: !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ! '>='
118
- - !ruby/object:Gem::Version
119
- version: '0'
120
- type: :development
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ! '>='
126
- - !ruby/object:Gem::Version
127
- version: '0'
128
- - !ruby/object:Gem::Dependency
129
- name: autotest
130
- requirement: !ruby/object:Gem::Requirement
131
- none: false
132
- requirements:
133
- - - ! '>='
134
- - !ruby/object:Gem::Version
135
- version: '0'
136
- type: :development
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
- requirements:
141
- - - ! '>='
142
- - !ruby/object:Gem::Version
143
- version: '0'
144
112
  description: Like a modern code version of the mythical beast with 100 serpent heads,
145
113
  Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.
146
114
  (This is Marnen Laibow-Koser's fork of the original Typhoeus gem, available at https://github.com/dbalatero/typhoeus.)