httparty 0.2.7 → 0.2.8

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.

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)
@@ -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
- pp HTTParty.get('http://twitter.com/statuses/public_timeline.json')
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{httparty}
5
- s.version = "0.2.7"
5
+ s.version = "0.2.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
@@ -8,8 +8,8 @@ module HTTParty
8
8
  @code = code
9
9
  end
10
10
 
11
- def method_missing(name, *args)
12
- @delegate.send(name, *args)
11
+ def method_missing(name, *args, &block)
12
+ @delegate.send(name, *args, &block)
13
13
  end
14
14
 
15
15
  def ==(other)
@@ -1,3 +1,3 @@
1
1
  module HTTParty
2
- Version = '0.2.7'
2
+ Version = '0.2.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httparty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker