fbgraph 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('fbgraph', '0.0.8') do |p|
5
+ Echoe.new('fbgraph', '0.0.9') do |p|
6
6
  p.description = "A Gem for Facebook Open Graph API"
7
7
  p.url = "http://github.com/nsanta/fbgraph"
8
8
  p.author = "Nicolas Santa"
data/fbgraph.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fbgraph}
5
- s.version = "0.0.8"
5
+ s.version = "0.0.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nicolas Santa"]
9
9
  s.cert_chain = ["/home/nicolas/certs/gem-public_cert.pem"]
10
- s.date = %q{2010-05-29}
10
+ s.date = %q{2010-05-31}
11
11
  s.description = %q{A Gem for Facebook Open Graph API}
12
12
  s.email = %q{nicolas55ar@gmail.com}
13
13
  s.extra_rdoc_files = ["README", "README.textile", "TODO.list", "lib/fbgraph.rb", "lib/fbgraph/authorization.rb", "lib/fbgraph/base.rb", "lib/fbgraph/client.rb", "lib/fbgraph/realtime.rb", "lib/fbgraph/search.rb", "lib/fbgraph/selection.rb"]
data/lib/fbgraph.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'oauth2'
2
2
  require 'json'
3
-
3
+ require 'hashie'
4
4
 
5
5
 
6
6
  require 'fbgraph/client'
@@ -75,6 +75,13 @@ describe FBGraph do
75
75
  @base.info!(false)
76
76
  end
77
77
 
78
+ it "should parse the result by default" do
79
+ uri = "/123"
80
+ @base.find('123')
81
+ @client.consumer.stub!(:get).with(uri).and_return('{"me": [1, 2]}')
82
+ @base.info!.me.should == [1, 2]
83
+ end
84
+
78
85
  describe 'when a connection is passed' do
79
86
  it 'should request with the path "/123/home"' do
80
87
  uri = "/123/home"
data/specs/spec_helper.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
+ require 'rubygems'
2
3
  require 'fbgraph'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nicolas Santa
@@ -35,7 +35,7 @@ cert_chain:
35
35
  urUszHKBS/vEBMuC
36
36
  -----END CERTIFICATE-----
37
37
 
38
- date: 2010-05-29 00:00:00 -03:00
38
+ date: 2010-05-31 00:00:00 -03:00
39
39
  default_executable:
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file