fb_graph 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ begin
16
16
  gem.add_dependency 'oauth2', '>= 0.0.10'
17
17
  gem.add_development_dependency 'rspec'
18
18
  gem.add_development_dependency 'rcov'
19
- gem.add_development_dependency 'fakeweb'
19
+ gem.add_development_dependency 'fakeweb', '>= 1.3.0'
20
20
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
21
21
  end
22
22
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
data/fb_graph.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
12
- s.date = %q{2010-09-15}
12
+ s.date = %q{2010-11-03}
13
13
  s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
14
14
  s.email = %q{nov@matake.jp}
15
15
  s.extra_rdoc_files = [
@@ -304,7 +304,7 @@ Gem::Specification.new do |s|
304
304
  s.add_runtime_dependency(%q<oauth2>, [">= 0.0.10"])
305
305
  s.add_development_dependency(%q<rspec>, [">= 0"])
306
306
  s.add_development_dependency(%q<rcov>, [">= 0"])
307
- s.add_development_dependency(%q<fakeweb>, [">= 0"])
307
+ s.add_development_dependency(%q<fakeweb>, [">= 1.3.0"])
308
308
  else
309
309
  s.add_dependency(%q<json>, [">= 0"])
310
310
  s.add_dependency(%q<activesupport>, [">= 0"])
@@ -312,7 +312,7 @@ Gem::Specification.new do |s|
312
312
  s.add_dependency(%q<oauth2>, [">= 0.0.10"])
313
313
  s.add_dependency(%q<rspec>, [">= 0"])
314
314
  s.add_dependency(%q<rcov>, [">= 0"])
315
- s.add_dependency(%q<fakeweb>, [">= 0"])
315
+ s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
316
316
  end
317
317
  else
318
318
  s.add_dependency(%q<json>, [">= 0"])
@@ -321,7 +321,7 @@ Gem::Specification.new do |s|
321
321
  s.add_dependency(%q<oauth2>, [">= 0.0.10"])
322
322
  s.add_dependency(%q<rspec>, [">= 0"])
323
323
  s.add_dependency(%q<rcov>, [">= 0"])
324
- s.add_dependency(%q<fakeweb>, [">= 0"])
324
+ s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
325
325
  end
326
326
  end
327
327
 
data/lib/fb_graph/node.rb CHANGED
@@ -65,7 +65,7 @@ module FbGraph
65
65
  _endpoint_ = if params[:connection]
66
66
  File.join(self.endpoint, params.delete(:connection).to_s)
67
67
  else
68
- params[:endpoint] || self.endpoint
68
+ self.endpoint.dup
69
69
  end
70
70
 
71
71
  params.delete_if do |k, v|
@@ -33,4 +33,13 @@ describe FbGraph::Collection, '.new' do
33
33
  collection = FbGraph::Collection.new({:count => 5})
34
34
  collection.total_count.should == 5
35
35
  end
36
+
37
+ it 'should accept Array' do
38
+ collection = FbGraph::Collection.new([1, 2, 3])
39
+ collection.total_count.should == 3
40
+ collection.should == [1, 2, 3]
41
+ collection.previous.should be_blank
42
+ collection.next.should be_blank
43
+ end
44
+
36
45
  end
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
+ require 'rubygems'
4
5
  require 'spec'
5
6
  require 'spec/autorun'
6
7
  require 'fb_graph'
7
- require 'rubygems'
8
8
  require 'fakeweb'
9
9
  require 'helpers/fake_json_helper'
10
10
  include FakeJsonHelper
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-15 00:00:00 +09:00
18
+ date: 2010-11-03 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -113,10 +113,12 @@ dependencies:
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- hash: 3
116
+ hash: 27
117
117
  segments:
118
+ - 1
119
+ - 3
118
120
  - 0
119
- version: "0"
121
+ version: 1.3.0
120
122
  type: :development
121
123
  version_requirements: *id007
122
124
  description: A full-stack Facebook Graph API wrapper in Ruby.