httparty 0.7.0 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of httparty might be problematic. Click here for more details.

@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- httparty (0.6.1)
4
+ httparty (0.7.2)
5
5
  crack (= 0.1.8)
6
6
 
7
7
  GEM
@@ -9,7 +9,6 @@ GEM
9
9
  specs:
10
10
  activesupport (2.3.10)
11
11
  builder (2.1.2)
12
- cgi_multipart_eof_fix (2.5.0)
13
12
  crack (0.1.8)
14
13
  cucumber (0.9.2)
15
14
  builder (~> 2.1.2)
@@ -17,20 +16,23 @@ GEM
17
16
  gherkin (~> 2.2.5)
18
17
  json (~> 1.4.6)
19
18
  term-ansicolor (~> 1.0.5)
20
- daemons (1.1.0)
19
+ daemons (1.0.10)
21
20
  diff-lcs (1.1.2)
22
21
  fakeweb (1.3.0)
23
- fastthread (1.0.7)
24
22
  gem_plugin (0.2.3)
25
23
  gherkin (2.2.9)
26
24
  json (~> 1.4.6)
27
25
  term-ansicolor (~> 1.0.5)
26
+ git (1.2.5)
27
+ jeweler (1.5.2)
28
+ bundler (~> 1.0.0)
29
+ git (>= 1.2.5)
30
+ rake
28
31
  json (1.4.6)
29
- mongrel (1.1.5)
30
- cgi_multipart_eof_fix (>= 2.4)
31
- daemons (>= 1.0.3)
32
- fastthread (>= 1.0.1)
33
- gem_plugin (>= 0.2.3)
32
+ mongrel (1.2.0.pre2)
33
+ daemons (~> 1.0.10)
34
+ gem_plugin (~> 0.2.3)
35
+ rake (0.8.7)
34
36
  rspec (1.3.1)
35
37
  term-ansicolor (1.0.5)
36
38
 
@@ -39,9 +41,9 @@ PLATFORMS
39
41
 
40
42
  DEPENDENCIES
41
43
  activesupport (~> 2.3)
42
- crack (= 0.1.8)
43
44
  cucumber (~> 0.7)
44
45
  fakeweb (~> 1.2)
45
46
  httparty!
46
- mongrel (~> 1.1)
47
+ jeweler (~> 1.5)
48
+ mongrel (= 1.2.0.pre2)
47
49
  rspec (~> 1.3)
data/History CHANGED
@@ -1,4 +1,9 @@
1
- == 0.7.0 2010-01-18
1
+ == 0.7.1 2011-01-19
2
+ * bug fixes
3
+ * Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
4
+ * Other fixes for 1.9.2, full suite still fails (cap10morgan)
5
+
6
+ == 0.7.0 2011-01-18
2
7
  * minor enhancements
3
8
  * Added query methods for HTTP status codes, i.e. response.success?
4
9
  response.created? (thanks citizenparker)
data/Rakefile CHANGED
@@ -10,16 +10,16 @@ begin
10
10
  gem.email = "nunemaker@gmail.com"
11
11
  gem.homepage = "http://httparty.rubyforge.org"
12
12
  gem.authors = ["John Nunemaker", "Sandro Turriate"]
13
- gem.version = HTTParty::VERSION
13
+ gem.version = HTTParty::VERSION.dup
14
14
 
15
15
  gem.add_dependency 'crack', HTTParty::CRACK_DEPENDENCY
16
16
 
17
17
  gem.add_development_dependency "activesupport", "~>2.3"
18
18
  gem.add_development_dependency "cucumber", "~>0.7"
19
19
  gem.add_development_dependency "fakeweb", "~>1.2"
20
- gem.add_development_dependency "mongrel", "~>1.1"
21
20
  gem.add_development_dependency "rspec", "~>1.3"
22
21
  gem.add_development_dependency "jeweler", "~>1.5"
22
+ gem.add_development_dependency "mongrel", "1.2.0.pre2"
23
23
  gem.post_install_message = "When you HTTParty, you must party hard!"
24
24
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
25
25
  end
@@ -1,6 +1,6 @@
1
1
  require 'mongrel'
2
2
  require 'active_support'
3
- require 'lib/httparty'
3
+ require './lib/httparty'
4
4
  require 'spec/expectations'
5
5
 
6
6
  Before do
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{httparty}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John Nunemaker", "Sandro Turriate"]
12
- s.date = %q{2011-01-18}
12
+ s.date = %q{2011-01-20}
13
13
  s.default_executable = %q{httparty}
14
14
  s.description = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
15
15
  s.email = %q{nunemaker@gmail.com}
@@ -18,104 +18,102 @@ Gem::Specification.new do |s|
18
18
  "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
- ".gitignore",
22
- ".rvmrc",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "History",
26
- "MIT-LICENSE",
27
- "Manifest",
28
- "README.rdoc",
29
- "Rakefile",
30
- "bin/httparty",
31
- "cucumber.yml",
32
- "examples/aaws.rb",
33
- "examples/basic.rb",
34
- "examples/custom_parsers.rb",
35
- "examples/delicious.rb",
36
- "examples/google.rb",
37
- "examples/rubyurl.rb",
38
- "examples/tripit_sign_in.rb",
39
- "examples/twitter.rb",
40
- "examples/whoismyrep.rb",
41
- "features/basic_authentication.feature",
42
- "features/command_line.feature",
43
- "features/deals_with_http_error_codes.feature",
44
- "features/digest_authentication.feature",
45
- "features/handles_compressed_responses.feature",
46
- "features/handles_multiple_formats.feature",
47
- "features/steps/env.rb",
48
- "features/steps/httparty_response_steps.rb",
49
- "features/steps/httparty_steps.rb",
50
- "features/steps/mongrel_helper.rb",
51
- "features/steps/remote_service_steps.rb",
52
- "features/supports_redirection.feature",
53
- "features/supports_timeout_option.feature",
54
- "httparty.gemspec",
55
- "lib/httparty.rb",
56
- "lib/httparty/cookie_hash.rb",
57
- "lib/httparty/core_extensions.rb",
58
- "lib/httparty/exceptions.rb",
59
- "lib/httparty/module_inheritable_attributes.rb",
60
- "lib/httparty/net_digest_auth.rb",
61
- "lib/httparty/parser.rb",
62
- "lib/httparty/request.rb",
63
- "lib/httparty/response.rb",
64
- "spec/fixtures/delicious.xml",
65
- "spec/fixtures/empty.xml",
66
- "spec/fixtures/google.html",
67
- "spec/fixtures/ssl/generate.sh",
68
- "spec/fixtures/ssl/generated/1fe462c2.0",
69
- "spec/fixtures/ssl/generated/bogushost.crt",
70
- "spec/fixtures/ssl/generated/ca.crt",
71
- "spec/fixtures/ssl/generated/ca.key",
72
- "spec/fixtures/ssl/generated/selfsigned.crt",
73
- "spec/fixtures/ssl/generated/server.crt",
74
- "spec/fixtures/ssl/generated/server.key",
75
- "spec/fixtures/ssl/openssl-exts.cnf",
76
- "spec/fixtures/twitter.json",
77
- "spec/fixtures/twitter.xml",
78
- "spec/fixtures/undefined_method_add_node_for_nil.xml",
79
- "spec/httparty/cookie_hash_spec.rb",
80
- "spec/httparty/parser_spec.rb",
81
- "spec/httparty/request_spec.rb",
82
- "spec/httparty/response_spec.rb",
83
- "spec/httparty/ssl_spec.rb",
84
- "spec/httparty_spec.rb",
85
- "spec/spec.opts",
86
- "spec/spec_helper.rb",
87
- "spec/support/ssl_test_helper.rb",
88
- "spec/support/ssl_test_server.rb",
89
- "spec/support/stub_response.rb",
90
- "website/css/common.css",
91
- "website/index.html"
21
+ ".rvmrc",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "History",
25
+ "MIT-LICENSE",
26
+ "Manifest",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "bin/httparty",
30
+ "cucumber.yml",
31
+ "examples/aaws.rb",
32
+ "examples/basic.rb",
33
+ "examples/custom_parsers.rb",
34
+ "examples/delicious.rb",
35
+ "examples/google.rb",
36
+ "examples/rubyurl.rb",
37
+ "examples/tripit_sign_in.rb",
38
+ "examples/twitter.rb",
39
+ "examples/whoismyrep.rb",
40
+ "features/basic_authentication.feature",
41
+ "features/command_line.feature",
42
+ "features/deals_with_http_error_codes.feature",
43
+ "features/digest_authentication.feature",
44
+ "features/handles_compressed_responses.feature",
45
+ "features/handles_multiple_formats.feature",
46
+ "features/steps/env.rb",
47
+ "features/steps/httparty_response_steps.rb",
48
+ "features/steps/httparty_steps.rb",
49
+ "features/steps/mongrel_helper.rb",
50
+ "features/steps/remote_service_steps.rb",
51
+ "features/supports_redirection.feature",
52
+ "features/supports_timeout_option.feature",
53
+ "httparty.gemspec",
54
+ "lib/httparty.rb",
55
+ "lib/httparty/cookie_hash.rb",
56
+ "lib/httparty/core_extensions.rb",
57
+ "lib/httparty/exceptions.rb",
58
+ "lib/httparty/module_inheritable_attributes.rb",
59
+ "lib/httparty/net_digest_auth.rb",
60
+ "lib/httparty/parser.rb",
61
+ "lib/httparty/request.rb",
62
+ "lib/httparty/response.rb",
63
+ "spec/fixtures/delicious.xml",
64
+ "spec/fixtures/empty.xml",
65
+ "spec/fixtures/google.html",
66
+ "spec/fixtures/ssl/generate.sh",
67
+ "spec/fixtures/ssl/generated/1fe462c2.0",
68
+ "spec/fixtures/ssl/generated/bogushost.crt",
69
+ "spec/fixtures/ssl/generated/ca.crt",
70
+ "spec/fixtures/ssl/generated/ca.key",
71
+ "spec/fixtures/ssl/generated/selfsigned.crt",
72
+ "spec/fixtures/ssl/generated/server.crt",
73
+ "spec/fixtures/ssl/generated/server.key",
74
+ "spec/fixtures/ssl/openssl-exts.cnf",
75
+ "spec/fixtures/twitter.json",
76
+ "spec/fixtures/twitter.xml",
77
+ "spec/fixtures/undefined_method_add_node_for_nil.xml",
78
+ "spec/httparty/cookie_hash_spec.rb",
79
+ "spec/httparty/parser_spec.rb",
80
+ "spec/httparty/request_spec.rb",
81
+ "spec/httparty/response_spec.rb",
82
+ "spec/httparty/ssl_spec.rb",
83
+ "spec/httparty_spec.rb",
84
+ "spec/spec.opts",
85
+ "spec/spec_helper.rb",
86
+ "spec/support/ssl_test_helper.rb",
87
+ "spec/support/ssl_test_server.rb",
88
+ "spec/support/stub_response.rb",
89
+ "website/css/common.css",
90
+ "website/index.html"
92
91
  ]
93
92
  s.homepage = %q{http://httparty.rubyforge.org}
94
93
  s.post_install_message = %q{When you HTTParty, you must party hard!}
95
- s.rdoc_options = ["--charset=UTF-8"]
96
94
  s.require_paths = ["lib"]
97
95
  s.rubygems_version = %q{1.3.7}
98
96
  s.summary = %q{Makes http fun! Also, makes consuming restful web services dead easy.}
99
97
  s.test_files = [
98
+ "examples/aaws.rb",
99
+ "examples/basic.rb",
100
+ "examples/custom_parsers.rb",
101
+ "examples/delicious.rb",
102
+ "examples/google.rb",
103
+ "examples/rubyurl.rb",
104
+ "examples/tripit_sign_in.rb",
105
+ "examples/twitter.rb",
106
+ "examples/whoismyrep.rb",
100
107
  "spec/httparty/cookie_hash_spec.rb",
101
- "spec/httparty/parser_spec.rb",
102
- "spec/httparty/request_spec.rb",
103
- "spec/httparty/response_spec.rb",
104
- "spec/httparty/ssl_spec.rb",
105
- "spec/httparty_spec.rb",
106
- "spec/spec_helper.rb",
107
- "spec/support/ssl_test_helper.rb",
108
- "spec/support/ssl_test_server.rb",
109
- "spec/support/stub_response.rb",
110
- "examples/aaws.rb",
111
- "examples/basic.rb",
112
- "examples/custom_parsers.rb",
113
- "examples/delicious.rb",
114
- "examples/google.rb",
115
- "examples/rubyurl.rb",
116
- "examples/tripit_sign_in.rb",
117
- "examples/twitter.rb",
118
- "examples/whoismyrep.rb"
108
+ "spec/httparty/parser_spec.rb",
109
+ "spec/httparty/request_spec.rb",
110
+ "spec/httparty/response_spec.rb",
111
+ "spec/httparty/ssl_spec.rb",
112
+ "spec/httparty_spec.rb",
113
+ "spec/spec_helper.rb",
114
+ "spec/support/ssl_test_helper.rb",
115
+ "spec/support/ssl_test_server.rb",
116
+ "spec/support/stub_response.rb"
119
117
  ]
120
118
 
121
119
  if s.respond_to? :specification_version then
@@ -127,26 +125,26 @@ Gem::Specification.new do |s|
127
125
  s.add_development_dependency(%q<activesupport>, ["~> 2.3"])
128
126
  s.add_development_dependency(%q<cucumber>, ["~> 0.7"])
129
127
  s.add_development_dependency(%q<fakeweb>, ["~> 1.2"])
130
- s.add_development_dependency(%q<mongrel>, ["~> 1.1"])
131
128
  s.add_development_dependency(%q<rspec>, ["~> 1.3"])
132
129
  s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
130
+ s.add_development_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
133
131
  else
134
132
  s.add_dependency(%q<crack>, ["= 0.1.8"])
135
133
  s.add_dependency(%q<activesupport>, ["~> 2.3"])
136
134
  s.add_dependency(%q<cucumber>, ["~> 0.7"])
137
135
  s.add_dependency(%q<fakeweb>, ["~> 1.2"])
138
- s.add_dependency(%q<mongrel>, ["~> 1.1"])
139
136
  s.add_dependency(%q<rspec>, ["~> 1.3"])
140
137
  s.add_dependency(%q<jeweler>, ["~> 1.5"])
138
+ s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
141
139
  end
142
140
  else
143
141
  s.add_dependency(%q<crack>, ["= 0.1.8"])
144
142
  s.add_dependency(%q<activesupport>, ["~> 2.3"])
145
143
  s.add_dependency(%q<cucumber>, ["~> 0.7"])
146
144
  s.add_dependency(%q<fakeweb>, ["~> 1.2"])
147
- s.add_dependency(%q<mongrel>, ["~> 1.1"])
148
145
  s.add_dependency(%q<rspec>, ["~> 1.3"])
149
146
  s.add_dependency(%q<jeweler>, ["~> 1.5"])
147
+ s.add_dependency(%q<mongrel>, ["= 1.2.0.pre2"])
150
148
  end
151
149
  end
152
150
 
@@ -13,7 +13,7 @@ require dir + 'httparty/net_digest_auth'
13
13
 
14
14
  # @see HTTParty::ClassMethods
15
15
  module HTTParty
16
- VERSION = "0.7.0".freeze
16
+ VERSION = "0.7.2".freeze
17
17
  CRACK_DEPENDENCY = "0.1.8".freeze
18
18
 
19
19
  module AllowedFormatsDeprecation
@@ -12,7 +12,7 @@ module HTTParty
12
12
  SupportedURISchemes = [URI::HTTP, URI::HTTPS]
13
13
 
14
14
  NON_RAILS_QUERY_STRING_NORMALIZER = Proc.new do |query|
15
- query.map do |key, value|
15
+ Array(query).map do |key, value|
16
16
  if value.nil?
17
17
  key
18
18
  elsif value.is_a?(Array)
@@ -1,7 +1,7 @@
1
1
  module HTTParty
2
2
  class Response < HTTParty::BasicObject #:nodoc:
3
3
  class Headers
4
- include Net::HTTPHeader
4
+ include ::Net::HTTPHeader
5
5
 
6
6
  def initialize(header)
7
7
  @header = header
@@ -56,7 +56,7 @@ module HTTParty
56
56
  %(#<#{self.class}:0x#{inspect_id} @parsed_response=#{parsed_response.inspect}, @response=#{response.inspect}, @headers=#{headers.inspect}>)
57
57
  end
58
58
 
59
- CODES_TO_OBJ = Net::HTTPResponse::CODE_CLASS_TO_OBJ.merge Net::HTTPResponse::CODE_TO_OBJ
59
+ CODES_TO_OBJ = ::Net::HTTPResponse::CODE_CLASS_TO_OBJ.merge ::Net::HTTPResponse::CODE_TO_OBJ
60
60
 
61
61
  CODES_TO_OBJ.each do |response_code, klass|
62
62
  name = klass.name.sub("Net::HTTP", '')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httparty
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 2
10
+ version: 0.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Nunemaker
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-18 00:00:00 -05:00
19
+ date: 2011-01-20 00:00:00 -05:00
20
20
  default_executable: httparty
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -81,48 +81,50 @@ dependencies:
81
81
  type: :development
82
82
  version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency
84
- name: mongrel
84
+ name: rspec
85
85
  prerelease: false
86
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
89
89
  - - ~>
90
90
  - !ruby/object:Gem::Version
91
- hash: 13
91
+ hash: 9
92
92
  segments:
93
93
  - 1
94
- - 1
95
- version: "1.1"
94
+ - 3
95
+ version: "1.3"
96
96
  type: :development
97
97
  version_requirements: *id005
98
98
  - !ruby/object:Gem::Dependency
99
- name: rspec
99
+ name: jeweler
100
100
  prerelease: false
101
101
  requirement: &id006 !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
104
104
  - - ~>
105
105
  - !ruby/object:Gem::Version
106
- hash: 9
106
+ hash: 5
107
107
  segments:
108
108
  - 1
109
- - 3
110
- version: "1.3"
109
+ - 5
110
+ version: "1.5"
111
111
  type: :development
112
112
  version_requirements: *id006
113
113
  - !ruby/object:Gem::Dependency
114
- name: jeweler
114
+ name: mongrel
115
115
  prerelease: false
116
116
  requirement: &id007 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
- - - ~>
119
+ - - "="
120
120
  - !ruby/object:Gem::Version
121
- hash: 5
121
+ hash: -1876988191
122
122
  segments:
123
123
  - 1
124
- - 5
125
- version: "1.5"
124
+ - 2
125
+ - 0
126
+ - pre2
127
+ version: 1.2.0.pre2
126
128
  type: :development
127
129
  version_requirements: *id007
128
130
  description: Makes http fun! Also, makes consuming restful web services dead easy.
@@ -134,7 +136,6 @@ extensions: []
134
136
  extra_rdoc_files:
135
137
  - README.rdoc
136
138
  files:
137
- - .gitignore
138
139
  - .rvmrc
139
140
  - Gemfile
140
141
  - Gemfile.lock
@@ -210,8 +211,8 @@ homepage: http://httparty.rubyforge.org
210
211
  licenses: []
211
212
 
212
213
  post_install_message: When you HTTParty, you must party hard!
213
- rdoc_options:
214
- - --charset=UTF-8
214
+ rdoc_options: []
215
+
215
216
  require_paths:
216
217
  - lib
217
218
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -240,6 +241,15 @@ signing_key:
240
241
  specification_version: 3
241
242
  summary: Makes http fun! Also, makes consuming restful web services dead easy.
242
243
  test_files:
244
+ - examples/aaws.rb
245
+ - examples/basic.rb
246
+ - examples/custom_parsers.rb
247
+ - examples/delicious.rb
248
+ - examples/google.rb
249
+ - examples/rubyurl.rb
250
+ - examples/tripit_sign_in.rb
251
+ - examples/twitter.rb
252
+ - examples/whoismyrep.rb
243
253
  - spec/httparty/cookie_hash_spec.rb
244
254
  - spec/httparty/parser_spec.rb
245
255
  - spec/httparty/request_spec.rb
@@ -250,12 +260,3 @@ test_files:
250
260
  - spec/support/ssl_test_helper.rb
251
261
  - spec/support/ssl_test_server.rb
252
262
  - spec/support/stub_response.rb
253
- - examples/aaws.rb
254
- - examples/basic.rb
255
- - examples/custom_parsers.rb
256
- - examples/delicious.rb
257
- - examples/google.rb
258
- - examples/rubyurl.rb
259
- - examples/tripit_sign_in.rb
260
- - examples/twitter.rb
261
- - examples/whoismyrep.rb
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- .DS_Store
2
- .yardoc/
3
- doc/
4
- tmp/
5
- log/
6
- pkg/
7
- *.swp
8
- /.bundle