jugend-httparty 0.5.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/.gitignore +7 -0
  2. data/History +209 -0
  3. data/MIT-LICENSE +20 -0
  4. data/Manifest +47 -0
  5. data/README.rdoc +54 -0
  6. data/Rakefile +80 -0
  7. data/VERSION +1 -0
  8. data/bin/httparty +108 -0
  9. data/cucumber.yml +1 -0
  10. data/examples/aaws.rb +32 -0
  11. data/examples/basic.rb +11 -0
  12. data/examples/custom_parsers.rb +67 -0
  13. data/examples/delicious.rb +37 -0
  14. data/examples/google.rb +16 -0
  15. data/examples/rubyurl.rb +14 -0
  16. data/examples/twitter.rb +31 -0
  17. data/examples/whoismyrep.rb +10 -0
  18. data/features/basic_authentication.feature +20 -0
  19. data/features/command_line.feature +7 -0
  20. data/features/deals_with_http_error_codes.feature +26 -0
  21. data/features/handles_multiple_formats.feature +34 -0
  22. data/features/steps/env.rb +23 -0
  23. data/features/steps/httparty_response_steps.rb +26 -0
  24. data/features/steps/httparty_steps.rb +27 -0
  25. data/features/steps/mongrel_helper.rb +78 -0
  26. data/features/steps/remote_service_steps.rb +61 -0
  27. data/features/supports_redirection.feature +22 -0
  28. data/features/supports_timeout_option.feature +13 -0
  29. data/jugend-httparty.gemspec +127 -0
  30. data/lib/httparty/cookie_hash.rb +22 -0
  31. data/lib/httparty/core_extensions.rb +31 -0
  32. data/lib/httparty/exceptions.rb +26 -0
  33. data/lib/httparty/module_inheritable_attributes.rb +25 -0
  34. data/lib/httparty/parser.rb +141 -0
  35. data/lib/httparty/request.rb +206 -0
  36. data/lib/httparty/response.rb +62 -0
  37. data/lib/httparty.rb +343 -0
  38. data/spec/fixtures/delicious.xml +23 -0
  39. data/spec/fixtures/empty.xml +0 -0
  40. data/spec/fixtures/google.html +3 -0
  41. data/spec/fixtures/twitter.json +1 -0
  42. data/spec/fixtures/twitter.xml +403 -0
  43. data/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
  44. data/spec/httparty/cookie_hash_spec.rb +71 -0
  45. data/spec/httparty/parser_spec.rb +154 -0
  46. data/spec/httparty/request_spec.rb +415 -0
  47. data/spec/httparty/response_spec.rb +83 -0
  48. data/spec/httparty_spec.rb +514 -0
  49. data/spec/spec.opts +3 -0
  50. data/spec/spec_helper.rb +19 -0
  51. data/spec/support/stub_response.rb +30 -0
  52. data/website/css/common.css +47 -0
  53. data/website/index.html +73 -0
  54. metadata +209 -0
metadata ADDED
@@ -0,0 +1,209 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jugend-httparty
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 2
9
+ - 1
10
+ version: 0.5.2.1
11
+ platform: ruby
12
+ authors:
13
+ - John Nunemaker
14
+ - Sandro Turriate
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-05-26 00:00:00 +08:00
20
+ default_executable: httparty
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: crack
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ - 1
32
+ - 6
33
+ version: 0.1.6
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 2
45
+ - 3
46
+ version: "2.3"
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: cucumber
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
58
+ - 4
59
+ version: "0.4"
60
+ type: :development
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: fakeweb
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 1
71
+ - 2
72
+ version: "1.2"
73
+ type: :development
74
+ version_requirements: *id004
75
+ - !ruby/object:Gem::Dependency
76
+ name: mongrel
77
+ prerelease: false
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ segments:
83
+ - 1
84
+ - 1
85
+ version: "1.1"
86
+ type: :development
87
+ version_requirements: *id005
88
+ - !ruby/object:Gem::Dependency
89
+ name: rspec
90
+ prerelease: false
91
+ requirement: &id006 !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "="
94
+ - !ruby/object:Gem::Version
95
+ segments:
96
+ - 1
97
+ - 2
98
+ - 9
99
+ version: 1.2.9
100
+ type: :development
101
+ version_requirements: *id006
102
+ description: Makes http fun! Also, makes consuming restful web services dead easy.
103
+ email: nunemaker@gmail.com
104
+ executables:
105
+ - httparty
106
+ extensions: []
107
+
108
+ extra_rdoc_files:
109
+ - README.rdoc
110
+ files:
111
+ - .gitignore
112
+ - History
113
+ - MIT-LICENSE
114
+ - Manifest
115
+ - README.rdoc
116
+ - Rakefile
117
+ - VERSION
118
+ - bin/httparty
119
+ - cucumber.yml
120
+ - examples/aaws.rb
121
+ - examples/basic.rb
122
+ - examples/custom_parsers.rb
123
+ - examples/delicious.rb
124
+ - examples/google.rb
125
+ - examples/rubyurl.rb
126
+ - examples/twitter.rb
127
+ - examples/whoismyrep.rb
128
+ - features/basic_authentication.feature
129
+ - features/command_line.feature
130
+ - features/deals_with_http_error_codes.feature
131
+ - features/handles_multiple_formats.feature
132
+ - features/steps/env.rb
133
+ - features/steps/httparty_response_steps.rb
134
+ - features/steps/httparty_steps.rb
135
+ - features/steps/mongrel_helper.rb
136
+ - features/steps/remote_service_steps.rb
137
+ - features/supports_redirection.feature
138
+ - features/supports_timeout_option.feature
139
+ - jugend-httparty.gemspec
140
+ - lib/httparty.rb
141
+ - lib/httparty/cookie_hash.rb
142
+ - lib/httparty/core_extensions.rb
143
+ - lib/httparty/exceptions.rb
144
+ - lib/httparty/module_inheritable_attributes.rb
145
+ - lib/httparty/parser.rb
146
+ - lib/httparty/request.rb
147
+ - lib/httparty/response.rb
148
+ - spec/fixtures/delicious.xml
149
+ - spec/fixtures/empty.xml
150
+ - spec/fixtures/google.html
151
+ - spec/fixtures/twitter.json
152
+ - spec/fixtures/twitter.xml
153
+ - spec/fixtures/undefined_method_add_node_for_nil.xml
154
+ - spec/httparty/cookie_hash_spec.rb
155
+ - spec/httparty/parser_spec.rb
156
+ - spec/httparty/request_spec.rb
157
+ - spec/httparty/response_spec.rb
158
+ - spec/httparty_spec.rb
159
+ - spec/spec.opts
160
+ - spec/spec_helper.rb
161
+ - spec/support/stub_response.rb
162
+ - website/css/common.css
163
+ - website/index.html
164
+ has_rdoc: true
165
+ homepage: http://httparty.rubyforge.org
166
+ licenses: []
167
+
168
+ post_install_message: When you HTTParty, you must party hard!
169
+ rdoc_options:
170
+ - --charset=UTF-8
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ segments:
185
+ - 0
186
+ version: "0"
187
+ requirements: []
188
+
189
+ rubyforge_project:
190
+ rubygems_version: 1.3.6
191
+ signing_key:
192
+ specification_version: 3
193
+ summary: Makes http fun! Also, makes consuming restful web services dead easy.
194
+ test_files:
195
+ - spec/httparty/cookie_hash_spec.rb
196
+ - spec/httparty/parser_spec.rb
197
+ - spec/httparty/request_spec.rb
198
+ - spec/httparty/response_spec.rb
199
+ - spec/httparty_spec.rb
200
+ - spec/spec_helper.rb
201
+ - spec/support/stub_response.rb
202
+ - examples/aaws.rb
203
+ - examples/basic.rb
204
+ - examples/custom_parsers.rb
205
+ - examples/delicious.rb
206
+ - examples/google.rb
207
+ - examples/rubyurl.rb
208
+ - examples/twitter.rb
209
+ - examples/whoismyrep.rb