fbgraph 1.10.0 → 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9693391d7f6ed80afce4a7c7d4723514d4793dcd
4
+ data.tar.gz: e88d546a392ad9d34989ab9539158bef5abb1127
5
+ SHA512:
6
+ metadata.gz: baa76429ff9130f80a68db20172e25f1fa9d90f03c36c3ecf66351ff3a3e088497c11f38c8ebf13aff2e352cd5e1f4547fff686cf5f2bc827f0fa4966489a460
7
+ data.tar.gz: da05cdd4fdbec36f5090da24cfcc273a2ac7b947e1de4469e805c933a6368eb886fca4cbbb757a05d74d0fd7460c950d024139fadc90d304dd0bf8b8bf062b4a
data/Gemfile CHANGED
@@ -1,20 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
- gem "activesupport"
4
- gem "hashie", ">= 1.0.0"
5
- gem "oauth2", ">= 0.5.0"
6
- gem "faraday", ">= 0.7.5"
7
- gem "json", ">= 1.0.0"
8
- gem "rest-client", :require => "rest_client"
9
- gem "i18n"
10
-
11
- group :development do
12
- gem "jeweler", "~> 1.6.0"
13
- gem "rake", "~> 0.9.2"
14
- gem "bundler", "~> 1.0.0"
15
- gem "fakeweb", "~> 1.3.0"
16
- gem "rspec", ">= 2.6.0"
17
- gem "rcov", ">= 0"
18
- gem "rdoc", ">= 3.9.0"
19
- gem "redgreen", "~> 1.2.2"
20
- end
3
+ gemspec
@@ -31,7 +31,7 @@ h2. Example Apps
31
31
 
32
32
  h2. Usage
33
33
 
34
- p. FBGraph supports the most (no analytics yet) features of Facebook Open Graph API: developers.facebook.com/docs/reference/api/
34
+ p. FBGraph supports most (no analytics yet) features of Facebook Open Graph API: developers.facebook.com/docs/reference/api/
35
35
 
36
36
  **IMPORTANT!!** Facebook object IDs can be very large numbers--too large to fit in a regular SQL "INTEGER" column. If you use an integer column, your database will likely just store the largest number allowed resulting in a bug that may confound you beyond belief.
37
37
 
@@ -81,7 +81,7 @@ h2. TODO
81
81
 
82
82
  h3. Canvas
83
83
 
84
- Facebook send a segned_request as a parameter. Can be decoded with the method parse_signed_request of FBGraph::Canvas module
84
+ Facebook send a signed_request as a parameter. Can be decoded with the method parse_signed_request of FBGraph::Canvas module
85
85
 
86
86
  > FBGraph::Canvas.parse_signed_request(app_secret, params[:signed_request])
87
87
 
@@ -283,4 +283,8 @@ h2. Contributors List
283
283
 
284
284
  "Matias Käkelä":http://github.com/massive
285
285
 
286
- h4.
286
+ "Max De Marzi":http://github.com/maxdemarzi
287
+
288
+ "Peter Boling":https://github.com/pboling
289
+
290
+ "Roberto Miranda":https://github.com/robertomiranda
data/Rakefile CHANGED
@@ -1,32 +1,12 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
1
+ # encoding: utf-8
2
+ #!/usr/bin/env rake
3
+ require "bundler/gem_tasks"
10
4
  require 'rake'
11
5
 
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- gem.name = "fbgraph"
15
- gem.homepage = "http://github.com/nsanta/fbgraph"
16
- gem.license = "MIT"
17
- gem.description = "A Gem for Facebook Open Graph API"
18
- gem.summary = "A Gem for Facebook Open Graph API"
19
- gem.author = "Nicolas Santa"
20
- gem.email = "nicolas55ar@gmail.com"
21
-
22
- # Dependencies in Gemfile.
23
- end
24
- Jeweler::RubygemsDotOrgTasks.new
25
-
26
6
  require 'rspec/core'
27
7
  require 'rspec/core/rake_task'
28
8
  RSpec::Core::RakeTask.new(:spec) do |spec|
29
- spec.pattern = FileList['specs/**/*_spec.rb']
9
+ spec.pattern = FileList['spec/**/*_spec.rb']
30
10
  end
31
11
 
32
12
  RSpec::Core::RakeTask.new(:rcov) do |spec|
@@ -38,10 +18,12 @@ task :default => :spec
38
18
 
39
19
  require 'rdoc/task'
40
20
  Rake::RDocTask.new do |rdoc|
41
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
-
21
+ require File.expand_path('../lib/fbgraph/version', __FILE__)
43
22
  rdoc.rdoc_dir = 'rdoc'
44
- rdoc.title = "anki-importer #{version}"
23
+ rdoc.title = "SanitizeEmail #{FBGraph::VERSION}"
24
+ rdoc.options << '--line-numbers'
45
25
  rdoc.rdoc_files.include('README*')
46
26
  rdoc.rdoc_files.include('lib/**/*.rb')
47
27
  end
28
+
29
+ Bundler::GemHelper.install_tasks
@@ -1,11 +1,9 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/fbgraph/version', __FILE__)
5
3
 
6
4
  Gem::Specification.new do |s|
7
5
  s.name = "fbgraph"
8
- s.version = "1.10.0"
6
+ s.version = FBGraph::VERSION
9
7
 
10
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
9
  s.authors = ["Nicolas Santa"]
@@ -13,18 +11,22 @@ Gem::Specification.new do |s|
13
11
  s.description = "A Gem for Facebook Open Graph API"
14
12
  s.email = "nicolas55ar@gmail.com"
15
13
  s.extra_rdoc_files = [
16
- "README",
17
14
  "README.textile"
18
15
  ]
16
+ s.files = `git ls-files`.split($\)
17
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
19
+
20
+ s.extra_rdoc_files = [
21
+ "README.textile",
22
+ ]
19
23
  s.files = [
20
24
  ".bundle/config",
21
25
  "Gemfile",
22
26
  "Manifest",
23
- "README",
24
27
  "README.textile",
25
28
  "Rakefile",
26
29
  "TODO.list",
27
- "VERSION",
28
30
  "fbgraph.gemspec",
29
31
  "lib/fbgraph.rb",
30
32
  "lib/fbgraph/authorization.rb",
@@ -39,14 +41,14 @@ Gem::Specification.new do |s|
39
41
  "lib/fbgraph/search.rb",
40
42
  "lib/fbgraph/selection.rb",
41
43
  "lib/fbgraph/timeline.rb",
42
- "specs/lib/fbauth/authorization_spec.rb",
43
- "specs/lib/fbauth/base_spec.rb",
44
- "specs/lib/fbauth/canvas_spec.rb",
45
- "specs/lib/fbauth/client_spec.rb",
46
- "specs/lib/fbauth/realtime_spec.rb",
47
- "specs/lib/fbauth/search_spec.rb",
48
- "specs/lib/fbauth/selection_spec.rb",
49
- "specs/spec_helper.rb"
44
+ "spec/lib/fbauth/authorization_spec.rb",
45
+ "spec/lib/fbauth/base_spec.rb",
46
+ "spec/lib/fbauth/canvas_spec.rb",
47
+ "spec/lib/fbauth/client_spec.rb",
48
+ "spec/lib/fbauth/realtime_spec.rb",
49
+ "spec/lib/fbauth/search_spec.rb",
50
+ "spec/lib/fbauth/selection_spec.rb",
51
+ "spec/spec_helper.rb"
50
52
  ]
51
53
  s.homepage = "http://github.com/nsanta/fbgraph"
52
54
  s.licenses = ["MIT"]
@@ -65,14 +67,12 @@ Gem::Specification.new do |s|
65
67
  s.add_runtime_dependency(%q<json>, [">= 1.0.0"])
66
68
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
67
69
  s.add_runtime_dependency(%q<i18n>, [">= 0"])
68
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
69
70
  s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
70
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
71
+ s.add_development_dependency(%q<bundler>, ["> 1.0.0"])
71
72
  s.add_development_dependency(%q<fakeweb>, ["~> 1.3.0"])
72
- s.add_development_dependency(%q<rspec>, [">= 2.6.0"])
73
- s.add_development_dependency(%q<rcov>, [">= 0"])
73
+ s.add_development_dependency(%q<rspec>, ["~> 2.6"])
74
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
74
75
  s.add_development_dependency(%q<rdoc>, [">= 3.9.0"])
75
- s.add_development_dependency(%q<redgreen>, ["~> 1.2.2"])
76
76
  else
77
77
  s.add_dependency(%q<activesupport>, [">= 0"])
78
78
  s.add_dependency(%q<hashie>, [">= 1.0.0"])
@@ -81,14 +81,12 @@ Gem::Specification.new do |s|
81
81
  s.add_dependency(%q<json>, [">= 1.0.0"])
82
82
  s.add_dependency(%q<rest-client>, [">= 0"])
83
83
  s.add_dependency(%q<i18n>, [">= 0"])
84
- s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
85
84
  s.add_dependency(%q<rake>, ["~> 0.9.2"])
86
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
85
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
87
86
  s.add_dependency(%q<fakeweb>, ["~> 1.3.0"])
88
- s.add_dependency(%q<rspec>, [">= 2.6.0"])
89
- s.add_dependency(%q<rcov>, [">= 0"])
87
+ s.add_dependency(%q<rspec>, ["~> 2.6"])
88
+ s.add_dependency(%q<simplecov>, [">= 0"])
90
89
  s.add_dependency(%q<rdoc>, [">= 3.9.0"])
91
- s.add_dependency(%q<redgreen>, ["~> 1.2.2"])
92
90
  end
93
91
  else
94
92
  s.add_dependency(%q<activesupport>, [">= 0"])
@@ -98,14 +96,12 @@ Gem::Specification.new do |s|
98
96
  s.add_dependency(%q<json>, [">= 1.0.0"])
99
97
  s.add_dependency(%q<rest-client>, [">= 0"])
100
98
  s.add_dependency(%q<i18n>, [">= 0"])
101
- s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
102
99
  s.add_dependency(%q<rake>, ["~> 0.9.2"])
103
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
100
+ s.add_dependency(%q<bundler>, ["> 1.0.0"])
104
101
  s.add_dependency(%q<fakeweb>, ["~> 1.3.0"])
105
- s.add_dependency(%q<rspec>, [">= 2.6.0"])
106
- s.add_dependency(%q<rcov>, [">= 0"])
102
+ s.add_dependency(%q<rspec>, ["~> 2.6"])
103
+ s.add_dependency(%q<simplecov>, [">= 0"])
107
104
  s.add_dependency(%q<rdoc>, [">= 3.9.0"])
108
- s.add_dependency(%q<redgreen>, ["~> 1.2.2"])
109
105
  end
110
106
  end
111
107
 
@@ -1,9 +1,9 @@
1
1
  module FBGraph
2
-
2
+
3
3
  class Client
4
4
 
5
5
  attr_accessor :client_id , :secret_id , :facebook_uri , :access_token , :consumer , :auth , :logger
6
-
6
+
7
7
  def initialize(options = {})
8
8
  @client_id = options[:client_id] || FBGraph.config[:client_id]
9
9
  @secret_id = options[:secret_id] || FBGraph.config[:secret_id]
@@ -15,7 +15,7 @@ module FBGraph
15
15
  @logger = options[:logger] || FBGraph::Logger
16
16
  return true
17
17
  end
18
-
18
+
19
19
  def set_token(new_token)
20
20
  @access_token = new_token
21
21
  @auth = OAuth2::AccessToken.new(oauth_client, @access_token)
@@ -25,27 +25,27 @@ module FBGraph
25
25
  def authorization
26
26
  FBGraph::Authorization.new(self)
27
27
  end
28
-
28
+
29
29
  def selection
30
30
  FBGraph::Selection.new(self)
31
31
  end
32
-
32
+
33
33
  def search
34
34
  FBGraph::Search.new(self)
35
35
  end
36
-
36
+
37
37
  def realtime
38
38
  FBGraph::Realtime.new(self)
39
39
  end
40
-
40
+
41
41
  def fql
42
42
  FBGraph::FQL.new(self)
43
43
  end
44
-
44
+
45
45
  def timeline
46
46
  FBGraph::Timeline.new(self)
47
47
  end
48
-
48
+
49
49
  def oauth_client
50
50
  OAuth2::Client.new(client_id, secret_id,
51
51
  :site => { :url => facebook_uri },
@@ -57,7 +57,7 @@ module FBGraph
57
57
  def oauth_client_ssl_options
58
58
  { :ca_file => @ca_file, :verify => OpenSSL::SSL::VERIFY_PEER }
59
59
  end
60
-
60
+
61
61
  def rest_client_ssl_options
62
62
  { :ssl_ca_file => @ca_file, :verify_ssl => OpenSSL::SSL::VERIFY_PEER }
63
63
  end
@@ -69,9 +69,11 @@ module FBGraph
69
69
  end
70
70
 
71
71
  # :nodoc: undo the clusterfuck that rest-client has done
72
- module Net
73
- class HTTP
74
- undef request
75
- alias request __request__
72
+ if Net::HTTP.method_defined? :__request__
73
+ module Net
74
+ class HTTP
75
+ undef request
76
+ alias request __request__
77
+ end
76
78
  end
77
79
  end
@@ -28,8 +28,8 @@ module FBGraph
28
28
  self
29
29
  end
30
30
 
31
- def veryfy_token(token)
32
- @params[:veryfy_token] = token
31
+ def verify_token(token)
32
+ @params[:verify_token] = token
33
33
  self
34
34
  end
35
35
 
@@ -3,7 +3,7 @@ module FBGraph
3
3
 
4
4
  OBJECTS = %w(user album event group link note page photo post status
5
5
  video comment checkin friendlist thread order application
6
- apprequest).freeze
6
+ apprequest subscription).freeze
7
7
 
8
8
  CONNECTION_TYPES = %w(home photos comments feed noreply
9
9
  maybe invited attending declined picture
@@ -13,7 +13,8 @@ module FBGraph
13
13
  likes inbox outbox updates accounts checkins
14
14
  friendlists platformrequests threads participants
15
15
  former_participants senders messages insights
16
- subscriptions payments apprequests reviews).freeze
16
+ subscriptions payments apprequests reviews
17
+ mutualfriends family).freeze
17
18
 
18
19
  OBJECTS.each do |object|
19
20
  class_eval <<-METHOD
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Authorization do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Authorization do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Canvas do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Client do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Realtime do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Search do
@@ -1,4 +1,4 @@
1
- require File.expand_path('../../../spec_helper', __FILE__)
1
+ require "spec_helper"
2
2
 
3
3
  describe FBGraph do
4
4
  describe FBGraph::Selection do
@@ -0,0 +1,30 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+
8
+ require 'fbgraph'
9
+ require 'support/fbgraph_spec_helper'
10
+ begin
11
+ require 'redgreen'
12
+ rescue LoadError
13
+ # redgreen is for pretty spec result colors on Windows... no biggie.
14
+ end
15
+
16
+ RSpec.configure do |config|
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ config.run_all_when_everything_filtered = true
19
+ config.filter_run :focus
20
+
21
+ # Run specs in random order to surface order dependencies. If you find an
22
+ # order dependency and want to debug it, you can fix the order by providing
23
+ # the seed, which is printed after each run.
24
+ # --seed 1234
25
+ config.order = 'random'
26
+
27
+ config.include FBGraphSpecHelper
28
+ end
29
+
30
+
@@ -0,0 +1,13 @@
1
+ module FBGraphSpecHelper
2
+ def expect_consumer(uri, result = '')
3
+ consumer = @client.consumer[uri]
4
+ consumer.stub!(:get).and_return(Struct.new(:body).new(result))
5
+ @client.consumer.stub!(:[]).with(uri).and_return(consumer)
6
+ end
7
+
8
+ def expect_consumer_post(uri, params = {}, result = '')
9
+ rest_client = @client.consumer[uri]
10
+ rest_client.stub!(:post).with(params).and_return(Struct.new(:body).new(result))
11
+ @client.consumer.stub!(:[]).with(uri).and_return(rest_client)
12
+ end
13
+ end
metadata CHANGED
@@ -1,272 +1,210 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fbgraph
3
- version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease:
6
- segments:
7
- - 1
8
- - 10
9
- - 0
10
- version: 1.10.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.10.1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Nicolas Santa
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-04-27 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2012-04-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: activesupport
22
- prerelease: false
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- requirement: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: hashie
36
21
  prerelease: false
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
40
24
  - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 23
43
- segments:
44
- - 1
45
- - 0
46
- - 0
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hashie
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
47
33
  version: 1.0.0
48
34
  type: :runtime
49
- requirement: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: oauth2
52
35
  prerelease: false
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
56
38
  - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 11
59
- segments:
60
- - 0
61
- - 5
62
- - 0
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: oauth2
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
63
47
  version: 0.5.0
64
48
  type: :runtime
65
- requirement: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: faraday
68
49
  prerelease: false
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: faraday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
72
59
  - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 9
75
- segments:
76
- - 0
77
- - 7
78
- - 5
60
+ - !ruby/object:Gem::Version
79
61
  version: 0.7.5
80
62
  type: :runtime
81
- requirement: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: json
84
63
  prerelease: false
85
- version_requirements: &id005 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
88
73
  - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 23
91
- segments:
92
- - 1
93
- - 0
94
- - 0
74
+ - !ruby/object:Gem::Version
95
75
  version: 1.0.0
96
76
  type: :runtime
97
- requirement: *id005
98
- - !ruby/object:Gem::Dependency
99
- name: rest-client
100
77
  prerelease: false
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
102
- none: false
103
- requirements:
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rest-client
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
104
87
  - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- version: "0"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
110
90
  type: :runtime
111
- requirement: *id006
112
- - !ruby/object:Gem::Dependency
113
- name: i18n
114
91
  prerelease: false
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: i18n
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
118
101
  - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
- version: "0"
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
124
104
  type: :runtime
125
- requirement: *id007
126
- - !ruby/object:Gem::Dependency
127
- name: jeweler
128
105
  prerelease: false
129
- version_requirements: &id008 !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ~>
133
- - !ruby/object:Gem::Version
134
- hash: 15
135
- segments:
136
- - 1
137
- - 6
138
- - 0
139
- version: 1.6.0
140
- type: :development
141
- requirement: *id008
142
- - !ruby/object:Gem::Dependency
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
143
112
  name: rake
144
- prerelease: false
145
- version_requirements: &id009 !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ~>
149
- - !ruby/object:Gem::Version
150
- hash: 63
151
- segments:
152
- - 0
153
- - 9
154
- - 2
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
155
117
  version: 0.9.2
156
118
  type: :development
157
- requirement: *id009
158
- - !ruby/object:Gem::Dependency
159
- name: bundler
160
119
  prerelease: false
161
- version_requirements: &id010 !ruby/object:Gem::Requirement
162
- none: false
163
- requirements:
164
- - - ~>
165
- - !ruby/object:Gem::Version
166
- hash: 23
167
- segments:
168
- - 1
169
- - 0
170
- - 0
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.9.2
125
+ - !ruby/object:Gem::Dependency
126
+ name: bundler
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">"
130
+ - !ruby/object:Gem::Version
171
131
  version: 1.0.0
172
132
  type: :development
173
- requirement: *id010
174
- - !ruby/object:Gem::Dependency
175
- name: fakeweb
176
133
  prerelease: false
177
- version_requirements: &id011 !ruby/object:Gem::Requirement
178
- none: false
179
- requirements:
180
- - - ~>
181
- - !ruby/object:Gem::Version
182
- hash: 27
183
- segments:
184
- - 1
185
- - 3
186
- - 0
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: fakeweb
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
187
145
  version: 1.3.0
188
146
  type: :development
189
- requirement: *id011
190
- - !ruby/object:Gem::Dependency
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.3.0
153
+ - !ruby/object:Gem::Dependency
191
154
  name: rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.6'
160
+ type: :development
192
161
  prerelease: false
193
- version_requirements: &id012 !ruby/object:Gem::Requirement
194
- none: false
195
- requirements:
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.6'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
196
171
  - - ">="
197
- - !ruby/object:Gem::Version
198
- hash: 23
199
- segments:
200
- - 2
201
- - 6
202
- - 0
203
- version: 2.6.0
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
204
174
  type: :development
205
- requirement: *id012
206
- - !ruby/object:Gem::Dependency
207
- name: rcov
208
175
  prerelease: false
209
- version_requirements: &id013 !ruby/object:Gem::Requirement
210
- none: false
211
- requirements:
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
212
178
  - - ">="
213
- - !ruby/object:Gem::Version
214
- hash: 3
215
- segments:
216
- - 0
217
- version: "0"
218
- type: :development
219
- requirement: *id013
220
- - !ruby/object:Gem::Dependency
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
221
182
  name: rdoc
222
- prerelease: false
223
- version_requirements: &id014 !ruby/object:Gem::Requirement
224
- none: false
225
- requirements:
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
226
185
  - - ">="
227
- - !ruby/object:Gem::Version
228
- hash: 35
229
- segments:
230
- - 3
231
- - 9
232
- - 0
186
+ - !ruby/object:Gem::Version
233
187
  version: 3.9.0
234
188
  type: :development
235
- requirement: *id014
236
- - !ruby/object:Gem::Dependency
237
- name: redgreen
238
189
  prerelease: false
239
- version_requirements: &id015 !ruby/object:Gem::Requirement
240
- none: false
241
- requirements:
242
- - - ~>
243
- - !ruby/object:Gem::Version
244
- hash: 27
245
- segments:
246
- - 1
247
- - 2
248
- - 2
249
- version: 1.2.2
250
- type: :development
251
- requirement: *id015
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 3.9.0
252
195
  description: A Gem for Facebook Open Graph API
253
196
  email: nicolas55ar@gmail.com
254
197
  executables: []
255
-
256
198
  extensions: []
257
-
258
- extra_rdoc_files:
259
- - README
199
+ extra_rdoc_files:
260
200
  - README.textile
261
- files:
262
- - .bundle/config
201
+ files:
202
+ - ".bundle/config"
263
203
  - Gemfile
264
204
  - Manifest
265
- - README
266
205
  - README.textile
267
206
  - Rakefile
268
207
  - TODO.list
269
- - VERSION
270
208
  - fbgraph.gemspec
271
209
  - lib/fbgraph.rb
272
210
  - lib/fbgraph/authorization.rb
@@ -281,46 +219,47 @@ files:
281
219
  - lib/fbgraph/search.rb
282
220
  - lib/fbgraph/selection.rb
283
221
  - lib/fbgraph/timeline.rb
284
- - specs/lib/fbauth/authorization_spec.rb
285
- - specs/lib/fbauth/base_spec.rb
286
- - specs/lib/fbauth/canvas_spec.rb
287
- - specs/lib/fbauth/client_spec.rb
288
- - specs/lib/fbauth/realtime_spec.rb
289
- - specs/lib/fbauth/search_spec.rb
290
- - specs/lib/fbauth/selection_spec.rb
291
- - specs/spec_helper.rb
222
+ - spec/lib/fbauth/authorization_spec.rb
223
+ - spec/lib/fbauth/base_spec.rb
224
+ - spec/lib/fbauth/canvas_spec.rb
225
+ - spec/lib/fbauth/client_spec.rb
226
+ - spec/lib/fbauth/realtime_spec.rb
227
+ - spec/lib/fbauth/search_spec.rb
228
+ - spec/lib/fbauth/selection_spec.rb
229
+ - spec/spec_helper.rb
230
+ - spec/support/fbgraph_spec_helper.rb
292
231
  homepage: http://github.com/nsanta/fbgraph
293
- licenses:
232
+ licenses:
294
233
  - MIT
234
+ metadata: {}
295
235
  post_install_message:
296
236
  rdoc_options: []
297
-
298
- require_paths:
237
+ require_paths:
299
238
  - lib
300
- required_ruby_version: !ruby/object:Gem::Requirement
301
- none: false
302
- requirements:
239
+ required_ruby_version: !ruby/object:Gem::Requirement
240
+ requirements:
303
241
  - - ">="
304
- - !ruby/object:Gem::Version
305
- hash: 3
306
- segments:
307
- - 0
308
- version: "0"
309
- required_rubygems_version: !ruby/object:Gem::Requirement
310
- none: false
311
- requirements:
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ required_rubygems_version: !ruby/object:Gem::Requirement
245
+ requirements:
312
246
  - - ">="
313
- - !ruby/object:Gem::Version
314
- hash: 3
315
- segments:
316
- - 0
317
- version: "0"
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
318
249
  requirements: []
319
-
320
250
  rubyforge_project:
321
- rubygems_version: 1.8.21
251
+ rubygems_version: 2.4.2
322
252
  signing_key:
323
253
  specification_version: 3
324
254
  summary: A Gem for Facebook Open Graph API
325
- test_files: []
326
-
255
+ test_files:
256
+ - spec/lib/fbauth/authorization_spec.rb
257
+ - spec/lib/fbauth/base_spec.rb
258
+ - spec/lib/fbauth/canvas_spec.rb
259
+ - spec/lib/fbauth/client_spec.rb
260
+ - spec/lib/fbauth/realtime_spec.rb
261
+ - spec/lib/fbauth/search_spec.rb
262
+ - spec/lib/fbauth/selection_spec.rb
263
+ - spec/spec_helper.rb
264
+ - spec/support/fbgraph_spec_helper.rb
265
+ has_rdoc:
data/README DELETED
File without changes
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.10.0
@@ -1,20 +0,0 @@
1
- $LOAD_PATH << File.expand_path('../../lib', __FILE__)
2
- require 'rubygems'
3
- require 'fbgraph'
4
- begin
5
- require 'redgreen'
6
- rescue LoadError
7
- # No pretty colors in Ruby 1.9+.
8
- end
9
-
10
- def expect_consumer(uri, result = '')
11
- consumer = @client.consumer[uri]
12
- consumer.stub!(:get).and_return(Struct.new(:body).new(result))
13
- @client.consumer.stub!(:[]).with(uri).and_return(consumer)
14
- end
15
-
16
- def expect_consumer_post(uri, params = {}, result = '')
17
- rest_client = @client.consumer[uri]
18
- rest_client.stub!(:post).with(params).and_return(Struct.new(:body).new(result))
19
- @client.consumer.stub!(:[]).with(uri).and_return(rest_client)
20
- end