fbgraph 0.1.6.4.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/.bundle/config ADDED
@@ -0,0 +1,3 @@
1
+ ---
2
+ BUNDLE_DISABLE_SHARED_GEMS: "1"
3
+ BUNDLE_PATH: vendor
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "http://gems.github.com"
2
+ source "http://rubygems.org"
3
+
4
+ gem "jeweler"
5
+ gem "rake"
6
+ gem "bundler"
7
+ gem "activesupport"
8
+ gem "hashie"
9
+ gem "oauth2"
10
+ gem "json"
11
+ gem "rest-client", :require => "rest_client"
12
+ gem "fakeweb"
13
+ gem "rspec"
14
+ gem "echoe"
15
+ gem "rcov"
16
+ gem "redgreen"
data/README.textile CHANGED
@@ -1,6 +1,6 @@
1
- h2. FBGRaph (0.1.6.3)
1
+ h2. FBGRaph
2
2
 
3
- p. Facebook Open Graph API Gem.
3
+ p. Facebook Open Graph API Gem for Rails 3.
4
4
 
5
5
 
6
6
  h2. Resources
@@ -251,3 +251,4 @@ h2. Contributors List
251
251
 
252
252
  "Matias Käkelä":http://github.com/massive
253
253
 
254
+ "Matt Lightner (via RedRadiant)":http://github.com/redradiant
data/Rakefile CHANGED
@@ -1,17 +1,34 @@
1
1
  require 'rubygems'
2
+ require 'bundler/setup'
3
+ #require File.dirname(__FILE__) + "/lib/fbgraph.rb"
2
4
  require 'rake'
3
- require 'echoe'
5
+ require 'rspec'
6
+ require 'rspec/core/rake_task'
7
+ require 'rcov'
4
8
 
5
- Echoe.new('fbgraph', '0.1.6.4.1') do |p|
6
- p.description = "A Gem for Facebook Open Graph API"
7
- p.url = "http://github.com/nsanta/fbgraph"
8
- p.author = "Nicolas Santa"
9
- p.email = "nicolas55ar@gmail.com"
10
- p.ignore_pattern = ["tmp/*", "script/*"]
11
- p.development_dependencies = ['echoe', 'rspec']
12
- p.runtime_dependencies = ['oauth2' , 'json', 'hashie' , 'rest-client']
9
+ #$LOAD_PATH.unshift "/Users/technicalpickles/code/active/jeweler/lib"
10
+ begin
11
+ require 'jeweler'
12
+ Jeweler::Tasks.new do |s|
13
+ s.name = "fbgraph"
14
+ s.description = "A Gem for Facebook Open Graph API"
15
+ s.summary = "A Gem for Facebook Open Graph API"
16
+ s.homepage = "http://github.com/nsanta/fbgraph"
17
+ s.author = "Nicolas Santa"
18
+ s.email = "nicolas55ar@gmail.com"
19
+ Bundler.environment.dependencies.to_set.collect { |g| s.add_runtime_dependency g.name }
20
+ end
21
+ rescue LoadError
22
+ puts "Jeweler not available. Install it with: gem install jeweler"
13
23
  end
14
24
 
15
- Spec::Rake::SpecTask.new(:rspec) do |t|
16
- t.spec_files = FileList[File.join(File.dirname(__FILE__), 'specs', '**', '*_spec.rb')]
25
+
26
+ spec_files = FileList[File.join(File.dirname(__FILE__), 'specs', '**', '*_spec.rb')]
27
+
28
+ desc "Run all specs"
29
+ RSpec::Core::RakeTask.new do |t|
30
+ t.pattern = "./specs/**/*_spec.rb"
31
+ # t.rcov = true
32
+ # t.rcov_opts = t.rcov_opts = ['--exclude', 'spec']
17
33
  end
34
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.5.2
data/fbgraph.gemspec CHANGED
@@ -1,23 +1,51 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{fbgraph}
5
- s.version = "0.1.6.4.1"
8
+ s.version = "1.5.2"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Nicolas Santa"]
9
- s.cert_chain = ["/home/nicolas/certs/gem-public_cert.pem"]
10
- s.date = %q{2010-09-17}
12
+ s.date = %q{2010-12-08}
11
13
  s.description = %q{A Gem for Facebook Open Graph API}
12
14
  s.email = %q{nicolas55ar@gmail.com}
13
- s.extra_rdoc_files = ["README", "README.textile", "TODO.list", "lib/fbgraph.rb", "lib/fbgraph/authorization.rb", "lib/fbgraph/base.rb", "lib/fbgraph/canvas.rb", "lib/fbgraph/client.rb", "lib/fbgraph/realtime.rb", "lib/fbgraph/search.rb", "lib/fbgraph/selection.rb"]
14
- s.files = ["Manifest", "README", "README.textile", "Rakefile", "TODO.list", "fbgraph.gemspec", "lib/fbgraph.rb", "lib/fbgraph/authorization.rb", "lib/fbgraph/base.rb", "lib/fbgraph/canvas.rb", "lib/fbgraph/client.rb", "lib/fbgraph/realtime.rb", "lib/fbgraph/search.rb", "lib/fbgraph/selection.rb", "specs/lib/fbauth/authorization_spec.rb", "specs/lib/fbauth/base_spec.rb", "specs/lib/fbauth/client_spec.rb", "specs/lib/fbauth/realtime_spec.rb", "specs/lib/fbauth/search_spec.rb", "specs/lib/fbauth/selection_spec.rb", "specs/spec_helper.rb"]
15
+ s.extra_rdoc_files = [
16
+ "README",
17
+ "README.textile"
18
+ ]
19
+ s.files = [
20
+ ".bundle/config",
21
+ "Gemfile",
22
+ "Manifest",
23
+ "README",
24
+ "README.textile",
25
+ "Rakefile",
26
+ "TODO.list",
27
+ "VERSION",
28
+ "fbgraph.gemspec",
29
+ "lib/fbgraph.rb",
30
+ "lib/fbgraph/authorization.rb",
31
+ "lib/fbgraph/base.rb",
32
+ "lib/fbgraph/canvas.rb",
33
+ "lib/fbgraph/client.rb",
34
+ "lib/fbgraph/realtime.rb",
35
+ "lib/fbgraph/result.rb",
36
+ "lib/fbgraph/search.rb",
37
+ "lib/fbgraph/selection.rb",
38
+ "specs/lib/fbauth/authorization_spec.rb",
39
+ "specs/lib/fbauth/base_spec.rb",
40
+ "specs/lib/fbauth/client_spec.rb",
41
+ "specs/lib/fbauth/realtime_spec.rb",
42
+ "specs/lib/fbauth/search_spec.rb",
43
+ "specs/lib/fbauth/selection_spec.rb",
44
+ "specs/spec_helper.rb"
45
+ ]
15
46
  s.homepage = %q{http://github.com/nsanta/fbgraph}
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Fbgraph", "--main", "README"]
17
47
  s.require_paths = ["lib"]
18
- s.rubyforge_project = %q{fbgraph}
19
48
  s.rubygems_version = %q{1.3.7}
20
- s.signing_key = %q{/home/nicolas/certs/gem-private_key.pem}
21
49
  s.summary = %q{A Gem for Facebook Open Graph API}
22
50
 
23
51
  if s.respond_to? :specification_version then
@@ -25,26 +53,87 @@ Gem::Specification.new do |s|
25
53
  s.specification_version = 3
26
54
 
27
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
57
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
58
+ s.add_runtime_dependency(%q<bundler>, [">= 0"])
59
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
60
+ s.add_runtime_dependency(%q<hashie>, [">= 0"])
28
61
  s.add_runtime_dependency(%q<oauth2>, [">= 0"])
29
62
  s.add_runtime_dependency(%q<json>, [">= 0"])
30
- s.add_runtime_dependency(%q<hashie>, [">= 0"])
31
63
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
32
- s.add_development_dependency(%q<echoe>, [">= 0"])
33
- s.add_development_dependency(%q<rspec>, [">= 0"])
64
+ s.add_runtime_dependency(%q<fakeweb>, [">= 0"])
65
+ s.add_runtime_dependency(%q<rspec>, [">= 0"])
66
+ s.add_runtime_dependency(%q<echoe>, [">= 0"])
67
+ s.add_runtime_dependency(%q<rcov>, [">= 0"])
68
+ s.add_runtime_dependency(%q<redgreen>, [">= 0"])
69
+ s.add_runtime_dependency(%q<rspec>, [">= 0"])
70
+ s.add_runtime_dependency(%q<oauth2>, [">= 0"])
71
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
72
+ s.add_runtime_dependency(%q<json>, [">= 0"])
73
+ s.add_runtime_dependency(%q<redgreen>, [">= 0"])
74
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
75
+ s.add_runtime_dependency(%q<echoe>, [">= 0"])
76
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
77
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
78
+ s.add_runtime_dependency(%q<bundler>, [">= 0"])
79
+ s.add_runtime_dependency(%q<rcov>, [">= 0"])
80
+ s.add_runtime_dependency(%q<fakeweb>, [">= 0"])
81
+ s.add_runtime_dependency(%q<hashie>, [">= 0"])
34
82
  else
83
+ s.add_dependency(%q<jeweler>, [">= 0"])
84
+ s.add_dependency(%q<rake>, [">= 0"])
85
+ s.add_dependency(%q<bundler>, [">= 0"])
86
+ s.add_dependency(%q<activesupport>, [">= 0"])
87
+ s.add_dependency(%q<hashie>, [">= 0"])
35
88
  s.add_dependency(%q<oauth2>, [">= 0"])
36
89
  s.add_dependency(%q<json>, [">= 0"])
37
- s.add_dependency(%q<hashie>, [">= 0"])
38
90
  s.add_dependency(%q<rest-client>, [">= 0"])
91
+ s.add_dependency(%q<fakeweb>, [">= 0"])
92
+ s.add_dependency(%q<rspec>, [">= 0"])
39
93
  s.add_dependency(%q<echoe>, [">= 0"])
94
+ s.add_dependency(%q<rcov>, [">= 0"])
95
+ s.add_dependency(%q<redgreen>, [">= 0"])
40
96
  s.add_dependency(%q<rspec>, [">= 0"])
97
+ s.add_dependency(%q<oauth2>, [">= 0"])
98
+ s.add_dependency(%q<activesupport>, [">= 0"])
99
+ s.add_dependency(%q<json>, [">= 0"])
100
+ s.add_dependency(%q<redgreen>, [">= 0"])
101
+ s.add_dependency(%q<rest-client>, [">= 0"])
102
+ s.add_dependency(%q<echoe>, [">= 0"])
103
+ s.add_dependency(%q<rake>, [">= 0"])
104
+ s.add_dependency(%q<jeweler>, [">= 0"])
105
+ s.add_dependency(%q<bundler>, [">= 0"])
106
+ s.add_dependency(%q<rcov>, [">= 0"])
107
+ s.add_dependency(%q<fakeweb>, [">= 0"])
108
+ s.add_dependency(%q<hashie>, [">= 0"])
41
109
  end
42
110
  else
111
+ s.add_dependency(%q<jeweler>, [">= 0"])
112
+ s.add_dependency(%q<rake>, [">= 0"])
113
+ s.add_dependency(%q<bundler>, [">= 0"])
114
+ s.add_dependency(%q<activesupport>, [">= 0"])
115
+ s.add_dependency(%q<hashie>, [">= 0"])
43
116
  s.add_dependency(%q<oauth2>, [">= 0"])
44
117
  s.add_dependency(%q<json>, [">= 0"])
45
- s.add_dependency(%q<hashie>, [">= 0"])
46
118
  s.add_dependency(%q<rest-client>, [">= 0"])
119
+ s.add_dependency(%q<fakeweb>, [">= 0"])
120
+ s.add_dependency(%q<rspec>, [">= 0"])
47
121
  s.add_dependency(%q<echoe>, [">= 0"])
122
+ s.add_dependency(%q<rcov>, [">= 0"])
123
+ s.add_dependency(%q<redgreen>, [">= 0"])
48
124
  s.add_dependency(%q<rspec>, [">= 0"])
125
+ s.add_dependency(%q<oauth2>, [">= 0"])
126
+ s.add_dependency(%q<activesupport>, [">= 0"])
127
+ s.add_dependency(%q<json>, [">= 0"])
128
+ s.add_dependency(%q<redgreen>, [">= 0"])
129
+ s.add_dependency(%q<rest-client>, [">= 0"])
130
+ s.add_dependency(%q<echoe>, [">= 0"])
131
+ s.add_dependency(%q<rake>, [">= 0"])
132
+ s.add_dependency(%q<jeweler>, [">= 0"])
133
+ s.add_dependency(%q<bundler>, [">= 0"])
134
+ s.add_dependency(%q<rcov>, [">= 0"])
135
+ s.add_dependency(%q<fakeweb>, [">= 0"])
136
+ s.add_dependency(%q<hashie>, [">= 0"])
49
137
  end
50
138
  end
139
+
data/lib/fbgraph/base.rb CHANGED
@@ -1,23 +1,20 @@
1
1
  module FBGraph
2
2
 
3
3
  class Base
4
-
5
- attr_reader :objects , :connection_type , :logger
6
4
 
5
+ attr_reader :objects , :connection_type , :logger, :fields, :last_result
7
6
 
8
7
  def initialize(client)
9
8
  @client = client
9
+ @fields = []
10
10
  @params = {}
11
11
  end
12
12
 
13
-
14
-
15
13
  def find(objects)
16
14
  @objects = objects
17
15
  return self
18
16
  end
19
17
 
20
-
21
18
  def connection(connection_type)
22
19
  @connection_type = connection_type
23
20
  return self
@@ -35,9 +32,18 @@ module FBGraph
35
32
  def param(pm)
36
33
  @params.merge!(pm)
37
34
  return self
38
- end
35
+ end
39
36
 
40
- def info!(parsed = true)
37
+ def with_fields(*new_fields)
38
+ @fields.concat(new_fields) if !(new_fields.blank? rescue true)
39
+ @fields = sanitized_fields
40
+ self
41
+ end
42
+ alias :fields :with_fields
43
+
44
+ def info!(parsed = true, &block)
45
+ self.instance_eval(&block) if block_given?
46
+ @params.merge!(:fields => sanitized_fields.join(',')) unless sanitized_fields.blank?
41
47
  @params.merge!(:access_token => @client.access_token) unless @client.access_token.nil?
42
48
  if @objects.is_a? Array
43
49
  @params.merge!({:ids => @objects.join(',')})
@@ -45,31 +51,35 @@ module FBGraph
45
51
  elsif @objects.is_a? String
46
52
  path = build_open_graph_path(@objects , @connection_type, @params)
47
53
  end
48
- puts "FBGRAPH [GET]: #{path}"
49
- puts "ACCESS TOKEN: #{@client.access_token}"
54
+
55
+ # puts "FBGRAPH [GET]: #{path}"
56
+ # puts "ACCESS TOKEN: #{@client.access_token}"
50
57
  result = @client.consumer[path].get
51
- return parse_json(result, parsed)
58
+ @last_result = ::FBGraph::Result.new(result, @params)
52
59
  end
53
60
 
54
61
 
55
- def publish!(data = {},parsed = true)
62
+ def publish!(data = {},parsed = true, &block)
56
63
  @params.merge!(data)
64
+ self.instance_eval(&block) if block_given?
65
+ @params.merge!(:fields => sanitized_fields.join(',')) unless sanitized_fields.blank?
57
66
  params = @params.merge(:access_token => @client.access_token) if (@client.access_token)
58
67
  path = build_open_graph_path(@objects , @connection_type)
59
- puts "FBGRAPH [POST]: #{path}"
60
- puts "PARAMS: #{params.to_a.map{|p| p.join('=')}.join('&')}"
68
+ # puts "FBGRAPH [POST]: #{path}"
69
+ # puts "PARAMS: #{params.to_a.map{|p| p.join('=')}.join('&')}"
61
70
  result = @client.consumer[path].post(params)
62
- return parse_json(result, parsed)
71
+ @last_result = ::FBGraph::Result.new(result, @params)
63
72
  end
64
73
 
65
- def delete!(parsed = true)
74
+ def delete!(parsed = true, &block)
75
+ self.instance_eval(&block) if block_given?
66
76
  path = build_open_graph_path(@objects , nil)
67
77
  params = @params.merge(:access_token => @client.access_token) if (@client.access_token)
68
78
  params.merge!(:method => :delete)
69
- puts "FBGRAPH [DELETE]: #{path}"
70
- puts "PARAMS: #{params.to_a.map{|p| p.join('=')}.join('&')}"
79
+ # puts "FBGRAPH [DELETE]: #{path}"
80
+ # puts "PARAMS: #{params.to_a.map{|p| p.join('=')}.join('&')}"
71
81
  result = @client.consumer[path].post(params)
72
- return parse_json(result, parsed)
82
+ @last_result = ::FBGraph::Result.new(result, @params)
73
83
  end
74
84
 
75
85
  %w(limit offset until since).each do |paging|
@@ -84,10 +94,10 @@ module FBGraph
84
94
 
85
95
  private
86
96
 
87
- def parse_json(result, parsed)
88
- return parsed ? Hashie::Mash.new(JSON.parse(result.body)) : result.body
89
- end
90
-
97
+ def sanitized_fields
98
+ @fields.flatten.map(&:to_s).compact
99
+ end
100
+
91
101
  def build_open_graph_path(objects, connection_type = nil , params = {})
92
102
  request = [objects , connection_type].compact.join('/')
93
103
  request += "?"+params.to_a.map{|p| p.join('=')}.join('&') unless params.empty?
@@ -6,13 +6,19 @@ module FBGraph
6
6
 
7
7
  def initialize(options = {})
8
8
  @client_id, @secret_id = options[:client_id] || FBGraph.config[:client_id], options[:secret_id] || FBGraph.config[:secret_id]
9
- @facebook_uri = 'https://graph.facebook.com'
9
+ @facebook_uri = options[:facebook_uri] ||= 'https://graph.facebook.com'
10
10
  @consumer = RestClient::Resource.new(@facebook_uri)
11
11
  @access_token = options.fetch :token, nil
12
12
  @auth = OAuth2::AccessToken.new(oauth_client , @access_token)
13
13
  return true
14
14
  end
15
15
 
16
+ def set_token(new_token)
17
+ @access_token = new_token
18
+ @auth = OAuth2::AccessToken.new(oauth_client , @access_token)
19
+ new_token
20
+ end
21
+
16
22
  def authorization
17
23
  FBGraph::Authorization.new(self)
18
24
  end
@@ -0,0 +1,41 @@
1
+ require 'hashie/mash'
2
+
3
+ module FBGraph
4
+ class Result
5
+
6
+ attr_accessor :params, :unparsed, :data
7
+
8
+ def initialize(result, params = {}, &block)
9
+ result = result.respond_to?(:body) ? result.body : result.to_s
10
+ @data = Hashie::Mash.new(JSON.parse(result)) rescue result
11
+ @unparsed = result
12
+ @params = params.symbolize_keys
13
+ self
14
+ end
15
+
16
+ def paging
17
+ data.paging
18
+ end
19
+
20
+ def metadata
21
+ data.metadata
22
+ end
23
+
24
+ # Implement enumerable
25
+ def each(&block)
26
+ return nil if data.blank?
27
+ data.each(&block)
28
+ end
29
+ include Enumerable
30
+
31
+ # Implement Comparable
32
+ def <=>(other)
33
+ (data <=> other.data) rescue 0
34
+ end
35
+ include Comparable
36
+
37
+ def method_missing(method, *args, &block)
38
+ data.send(method, *args, &block) rescue super(method, *args, &block)
39
+ end
40
+ end
41
+ end
@@ -8,7 +8,7 @@ module FBGraph
8
8
  members tagged links groups albums
9
9
  statuses videos notes posts events friends
10
10
  activities interests music books movies television
11
- likes inbox outbox updates accounts chekins).freeze
11
+ likes inbox outbox updates accounts checkins).freeze
12
12
 
13
13
  OBJECTS.each do |object|
14
14
  class_eval <<-METHOD
@@ -38,11 +38,10 @@ module FBGraph
38
38
  self
39
39
  end
40
40
 
41
- def picture
42
- uri = [@client.facebook_uri , build_open_graph_path(@objects , 'picture')].join('/')
43
- return uri if @client.access_token.nil?
44
- uri + '?access_token=' + @client.access_token
45
-
41
+ def picture(type='square')
42
+ params = {:type => type}
43
+ params.merge!(:access_token => @client.access_token) unless @client.access_token.blank?
44
+ uri = [@client.facebook_uri , build_open_graph_path(@objects , 'picture' , params)].join('/')
46
45
  end
47
46
 
48
47
  end
data/lib/fbgraph.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'rubygems'
2
+ require "bundler/setup"
1
3
  require 'oauth2'
2
4
  require 'json'
3
5
  require 'hashie'
@@ -6,6 +8,7 @@ require 'uri'
6
8
  require "base64"
7
9
  require "openssl"
8
10
 
11
+ require 'fbgraph/result'
9
12
  require 'fbgraph/client'
10
13
  require 'fbgraph/base'
11
14
  require 'fbgraph/authorization'
data/specs/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
2
  require 'rubygems'
3
3
  require 'fbgraph'
4
+ require 'redgreen'
4
5
 
5
6
  def expect_consumer(uri, result = '')
6
7
  consumer = @client.consumer[uri]
metadata CHANGED
@@ -1,50 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbgraph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 141
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
- - 0
8
7
  - 1
9
- - 6
10
- - 4
11
- - 1
12
- version: 0.1.6.4.1
8
+ - 5
9
+ - 2
10
+ version: 1.5.2
13
11
  platform: ruby
14
12
  authors:
15
13
  - Nicolas Santa
16
14
  autorequire:
17
15
  bindir: bin
18
- cert_chain:
19
- - |
20
- -----BEGIN CERTIFICATE-----
21
- MIIDODCCAiCgAwIBAgIBADANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtuaWNv
22
- bGFzNTVhcjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
23
- Y29tMB4XDTEwMDUwNzE4MzUwOFoXDTExMDUwNzE4MzUwOFowQjEUMBIGA1UEAwwL
24
- bmljb2xhczU1YXIxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
25
- ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALfpoVqolklc
26
- pq3fDlP4GETB6EOGpUPLEMH04GmcNJCaLj4yOBBSMX0pJyjyMo8LRm+8q8LW0JmF
27
- BpCOKJCNZC8bic9Y6T+Ja9Rue3en4laRr/gtAeW50Lyigf7tlUTgFQ0z3H44U1IL
28
- yoYX7FgBC2BuqzUgsjLnX7fFZDvH+GlX/ChwId0TBOwHlvmjkzvmNJvc8zaetl7n
29
- Pwjdh+nVIUF70Tre+HK+T5IQ8bkGZxUWgByS3LYAHz/fD/wpEYwb3iYIv7VFEzJd
30
- GOL4WjTxCoadloV2Ux4hAn9cMarzPTAHPBddTAWCHcK00XZy00LExCDDFmIXfvT/
31
- 80P8PNIj0hkCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
32
- BBYEFKVi3eog182/K7f7sJVRe4An94CJMA0GCSqGSIb3DQEBBQUAA4IBAQBbCScY
33
- LVggsBMv5vHdywZV5oUW8g421NM7m2kEJZzmUtj9e2xXe2eN9snvwzynT+SjJvjk
34
- 4KlJOde2A6d4UUAlMfjjGOiSe/iENjC0ckMOS53ZsUFVr+BuY1ZF2YoMmd2UmyjP
35
- Ep+kyPuRJhvNh4wYJF/q1XN8pHI8kfde/nUia1HzuENyvfL9UBtz/WJHXO1S1iDX
36
- Fh4Xb6VBGNc0UolB6qVyK9+B73zWtHhkIbpm01Qs6udTRKT1fkyr+Q+s5d6YXANn
37
- t9TrnoR25hfiEkK0T2TVSJ5ULXUdp970cmXugmPG84hcwFrfrEFmqBbILdIdc/E1
38
- urUszHKBS/vEBMuC
39
- -----END CERTIFICATE-----
16
+ cert_chain: []
40
17
 
41
- date: 2010-09-17 00:00:00 -03:00
18
+ date: 2010-12-08 00:00:00 -03:00
42
19
  default_executable:
43
20
  dependencies:
44
21
  - !ruby/object:Gem::Dependency
45
- name: oauth2
46
22
  prerelease: false
47
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ name: jeweler
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
48
25
  none: false
49
26
  requirements:
50
27
  - - ">="
@@ -53,12 +30,26 @@ dependencies:
53
30
  segments:
54
31
  - 0
55
32
  version: "0"
33
+ requirement: *id001
34
+ type: :runtime
35
+ - !ruby/object:Gem::Dependency
36
+ prerelease: false
37
+ name: rake
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ requirement: *id002
56
48
  type: :runtime
57
- version_requirements: *id001
58
49
  - !ruby/object:Gem::Dependency
59
- name: json
60
50
  prerelease: false
61
- requirement: &id002 !ruby/object:Gem::Requirement
51
+ name: bundler
52
+ version_requirements: &id003 !ruby/object:Gem::Requirement
62
53
  none: false
63
54
  requirements:
64
55
  - - ">="
@@ -67,12 +58,40 @@ dependencies:
67
58
  segments:
68
59
  - 0
69
60
  version: "0"
61
+ requirement: *id003
70
62
  type: :runtime
71
- version_requirements: *id002
72
63
  - !ruby/object:Gem::Dependency
64
+ prerelease: false
65
+ name: activesupport
66
+ version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ requirement: *id004
76
+ type: :runtime
77
+ - !ruby/object:Gem::Dependency
78
+ prerelease: false
73
79
  name: hashie
80
+ version_requirements: &id005 !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ requirement: *id005
90
+ type: :runtime
91
+ - !ruby/object:Gem::Dependency
74
92
  prerelease: false
75
- requirement: &id003 !ruby/object:Gem::Requirement
93
+ name: oauth2
94
+ version_requirements: &id006 !ruby/object:Gem::Requirement
76
95
  none: false
77
96
  requirements:
78
97
  - - ">="
@@ -81,12 +100,54 @@ dependencies:
81
100
  segments:
82
101
  - 0
83
102
  version: "0"
103
+ requirement: *id006
84
104
  type: :runtime
85
- version_requirements: *id003
86
105
  - !ruby/object:Gem::Dependency
106
+ prerelease: false
107
+ name: json
108
+ version_requirements: &id007 !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ requirement: *id007
118
+ type: :runtime
119
+ - !ruby/object:Gem::Dependency
120
+ prerelease: false
87
121
  name: rest-client
122
+ version_requirements: &id008 !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 3
128
+ segments:
129
+ - 0
130
+ version: "0"
131
+ requirement: *id008
132
+ type: :runtime
133
+ - !ruby/object:Gem::Dependency
134
+ prerelease: false
135
+ name: fakeweb
136
+ version_requirements: &id009 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ hash: 3
142
+ segments:
143
+ - 0
144
+ version: "0"
145
+ requirement: *id009
146
+ type: :runtime
147
+ - !ruby/object:Gem::Dependency
88
148
  prerelease: false
89
- requirement: &id004 !ruby/object:Gem::Requirement
149
+ name: rspec
150
+ version_requirements: &id010 !ruby/object:Gem::Requirement
90
151
  none: false
91
152
  requirements:
92
153
  - - ">="
@@ -95,12 +156,40 @@ dependencies:
95
156
  segments:
96
157
  - 0
97
158
  version: "0"
159
+ requirement: *id010
98
160
  type: :runtime
99
- version_requirements: *id004
100
161
  - !ruby/object:Gem::Dependency
162
+ prerelease: false
101
163
  name: echoe
164
+ version_requirements: &id011 !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ hash: 3
170
+ segments:
171
+ - 0
172
+ version: "0"
173
+ requirement: *id011
174
+ type: :runtime
175
+ - !ruby/object:Gem::Dependency
176
+ prerelease: false
177
+ name: rcov
178
+ version_requirements: &id012 !ruby/object:Gem::Requirement
179
+ none: false
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ hash: 3
184
+ segments:
185
+ - 0
186
+ version: "0"
187
+ requirement: *id012
188
+ type: :runtime
189
+ - !ruby/object:Gem::Dependency
102
190
  prerelease: false
103
- requirement: &id005 !ruby/object:Gem::Requirement
191
+ name: redgreen
192
+ version_requirements: &id013 !ruby/object:Gem::Requirement
104
193
  none: false
105
194
  requirements:
106
195
  - - ">="
@@ -109,12 +198,26 @@ dependencies:
109
198
  segments:
110
199
  - 0
111
200
  version: "0"
112
- type: :development
113
- version_requirements: *id005
201
+ requirement: *id013
202
+ type: :runtime
114
203
  - !ruby/object:Gem::Dependency
204
+ prerelease: false
115
205
  name: rspec
206
+ version_requirements: &id014 !ruby/object:Gem::Requirement
207
+ none: false
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ hash: 3
212
+ segments:
213
+ - 0
214
+ version: "0"
215
+ requirement: *id014
216
+ type: :runtime
217
+ - !ruby/object:Gem::Dependency
116
218
  prerelease: false
117
- requirement: &id006 !ruby/object:Gem::Requirement
219
+ name: oauth2
220
+ version_requirements: &id015 !ruby/object:Gem::Requirement
118
221
  none: false
119
222
  requirements:
120
223
  - - ">="
@@ -123,8 +226,162 @@ dependencies:
123
226
  segments:
124
227
  - 0
125
228
  version: "0"
126
- type: :development
127
- version_requirements: *id006
229
+ requirement: *id015
230
+ type: :runtime
231
+ - !ruby/object:Gem::Dependency
232
+ prerelease: false
233
+ name: activesupport
234
+ version_requirements: &id016 !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ hash: 3
240
+ segments:
241
+ - 0
242
+ version: "0"
243
+ requirement: *id016
244
+ type: :runtime
245
+ - !ruby/object:Gem::Dependency
246
+ prerelease: false
247
+ name: json
248
+ version_requirements: &id017 !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ hash: 3
254
+ segments:
255
+ - 0
256
+ version: "0"
257
+ requirement: *id017
258
+ type: :runtime
259
+ - !ruby/object:Gem::Dependency
260
+ prerelease: false
261
+ name: redgreen
262
+ version_requirements: &id018 !ruby/object:Gem::Requirement
263
+ none: false
264
+ requirements:
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ hash: 3
268
+ segments:
269
+ - 0
270
+ version: "0"
271
+ requirement: *id018
272
+ type: :runtime
273
+ - !ruby/object:Gem::Dependency
274
+ prerelease: false
275
+ name: rest-client
276
+ version_requirements: &id019 !ruby/object:Gem::Requirement
277
+ none: false
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ hash: 3
282
+ segments:
283
+ - 0
284
+ version: "0"
285
+ requirement: *id019
286
+ type: :runtime
287
+ - !ruby/object:Gem::Dependency
288
+ prerelease: false
289
+ name: echoe
290
+ version_requirements: &id020 !ruby/object:Gem::Requirement
291
+ none: false
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ hash: 3
296
+ segments:
297
+ - 0
298
+ version: "0"
299
+ requirement: *id020
300
+ type: :runtime
301
+ - !ruby/object:Gem::Dependency
302
+ prerelease: false
303
+ name: rake
304
+ version_requirements: &id021 !ruby/object:Gem::Requirement
305
+ none: false
306
+ requirements:
307
+ - - ">="
308
+ - !ruby/object:Gem::Version
309
+ hash: 3
310
+ segments:
311
+ - 0
312
+ version: "0"
313
+ requirement: *id021
314
+ type: :runtime
315
+ - !ruby/object:Gem::Dependency
316
+ prerelease: false
317
+ name: jeweler
318
+ version_requirements: &id022 !ruby/object:Gem::Requirement
319
+ none: false
320
+ requirements:
321
+ - - ">="
322
+ - !ruby/object:Gem::Version
323
+ hash: 3
324
+ segments:
325
+ - 0
326
+ version: "0"
327
+ requirement: *id022
328
+ type: :runtime
329
+ - !ruby/object:Gem::Dependency
330
+ prerelease: false
331
+ name: bundler
332
+ version_requirements: &id023 !ruby/object:Gem::Requirement
333
+ none: false
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ hash: 3
338
+ segments:
339
+ - 0
340
+ version: "0"
341
+ requirement: *id023
342
+ type: :runtime
343
+ - !ruby/object:Gem::Dependency
344
+ prerelease: false
345
+ name: rcov
346
+ version_requirements: &id024 !ruby/object:Gem::Requirement
347
+ none: false
348
+ requirements:
349
+ - - ">="
350
+ - !ruby/object:Gem::Version
351
+ hash: 3
352
+ segments:
353
+ - 0
354
+ version: "0"
355
+ requirement: *id024
356
+ type: :runtime
357
+ - !ruby/object:Gem::Dependency
358
+ prerelease: false
359
+ name: fakeweb
360
+ version_requirements: &id025 !ruby/object:Gem::Requirement
361
+ none: false
362
+ requirements:
363
+ - - ">="
364
+ - !ruby/object:Gem::Version
365
+ hash: 3
366
+ segments:
367
+ - 0
368
+ version: "0"
369
+ requirement: *id025
370
+ type: :runtime
371
+ - !ruby/object:Gem::Dependency
372
+ prerelease: false
373
+ name: hashie
374
+ version_requirements: &id026 !ruby/object:Gem::Requirement
375
+ none: false
376
+ requirements:
377
+ - - ">="
378
+ - !ruby/object:Gem::Version
379
+ hash: 3
380
+ segments:
381
+ - 0
382
+ version: "0"
383
+ requirement: *id026
384
+ type: :runtime
128
385
  description: A Gem for Facebook Open Graph API
129
386
  email: nicolas55ar@gmail.com
130
387
  executables: []
@@ -134,21 +391,15 @@ extensions: []
134
391
  extra_rdoc_files:
135
392
  - README
136
393
  - README.textile
137
- - TODO.list
138
- - lib/fbgraph.rb
139
- - lib/fbgraph/authorization.rb
140
- - lib/fbgraph/base.rb
141
- - lib/fbgraph/canvas.rb
142
- - lib/fbgraph/client.rb
143
- - lib/fbgraph/realtime.rb
144
- - lib/fbgraph/search.rb
145
- - lib/fbgraph/selection.rb
146
394
  files:
395
+ - .bundle/config
396
+ - Gemfile
147
397
  - Manifest
148
398
  - README
149
399
  - README.textile
150
400
  - Rakefile
151
401
  - TODO.list
402
+ - VERSION
152
403
  - fbgraph.gemspec
153
404
  - lib/fbgraph.rb
154
405
  - lib/fbgraph/authorization.rb
@@ -156,6 +407,7 @@ files:
156
407
  - lib/fbgraph/canvas.rb
157
408
  - lib/fbgraph/client.rb
158
409
  - lib/fbgraph/realtime.rb
410
+ - lib/fbgraph/result.rb
159
411
  - lib/fbgraph/search.rb
160
412
  - lib/fbgraph/selection.rb
161
413
  - specs/lib/fbauth/authorization_spec.rb
@@ -170,13 +422,8 @@ homepage: http://github.com/nsanta/fbgraph
170
422
  licenses: []
171
423
 
172
424
  post_install_message:
173
- rdoc_options:
174
- - --line-numbers
175
- - --inline-source
176
- - --title
177
- - Fbgraph
178
- - --main
179
- - README
425
+ rdoc_options: []
426
+
180
427
  require_paths:
181
428
  - lib
182
429
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -193,14 +440,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
440
  requirements:
194
441
  - - ">="
195
442
  - !ruby/object:Gem::Version
196
- hash: 11
443
+ hash: 3
197
444
  segments:
198
- - 1
199
- - 2
200
- version: "1.2"
445
+ - 0
446
+ version: "0"
201
447
  requirements: []
202
448
 
203
- rubyforge_project: fbgraph
449
+ rubyforge_project:
204
450
  rubygems_version: 1.3.7
205
451
  signing_key:
206
452
  specification_version: 3
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file