httparty 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of httparty might be problematic. Click here for more details.
- data/History +4 -0
- data/examples/basic.rb +6 -1
- data/httparty.gemspec +1 -1
- data/lib/httparty/response.rb +2 -2
- data/lib/httparty/version.rb +1 -1
- metadata +1 -1
data/History
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.2.8 2009-01-28
|
2
|
+
* 1 major fix
|
3
|
+
* fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
|
4
|
+
|
1
5
|
== 0.2.7 2009-01-28
|
2
6
|
* 2 minor fixes, 2 minor enhancements, 2 major enhancements
|
3
7
|
* fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
|
data/examples/basic.rb
CHANGED
@@ -3,4 +3,9 @@ require File.join(dir, 'httparty')
|
|
3
3
|
require 'pp'
|
4
4
|
|
5
5
|
# You can also use post, put, delete in the same fashion
|
6
|
-
|
6
|
+
response = HTTParty.get('http://twitter.com/statuses/public_timeline.json')
|
7
|
+
pp response
|
8
|
+
|
9
|
+
response.each do |item|
|
10
|
+
puts item['user']['screen_name']
|
11
|
+
end
|
data/httparty.gemspec
CHANGED
data/lib/httparty/response.rb
CHANGED
data/lib/httparty/version.rb
CHANGED