fb_graph 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (1.8.3)
4
+ fb_graph (1.8.4)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.8.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- activesupport (3.0.7)
11
+ activesupport (3.0.8)
12
12
  addressable (2.2.6)
13
13
  attr_required (0.0.3)
14
14
  crack (0.1.8)
15
15
  diff-lcs (1.1.2)
16
- httpclient (2.2.0.2)
16
+ httpclient (2.2.1)
17
17
  i18n (0.6.0)
18
18
  json (1.5.1)
19
19
  rack (1.3.0)
@@ -24,13 +24,13 @@ GEM
24
24
  i18n
25
25
  json (>= 1.4.3)
26
26
  rack (>= 1.1)
27
- rake (0.9.0)
27
+ rake (0.9.2)
28
28
  rcov (0.9.9)
29
29
  rspec (2.6.0)
30
30
  rspec-core (~> 2.6.0)
31
31
  rspec-expectations (~> 2.6.0)
32
32
  rspec-mocks (~> 2.6.0)
33
- rspec-core (2.6.3)
33
+ rspec-core (2.6.4)
34
34
  rspec-expectations (2.6.0)
35
35
  diff-lcs (~> 1.1.2)
36
36
  rspec-mocks (2.6.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.4
1
+ 1.8.5
@@ -6,7 +6,7 @@ module FbGraph
6
6
  # If you want access token, use FbGraph::Auth.new(APP_ID, APP_SECRET, :cookie => {..}) instead
7
7
  class Cookie
8
8
  def self.parse(client, cookie)
9
- fb_cookie_string = if cookie.is_a?(Hash)
9
+ fb_cookie_string = if cookie.respond_to?(:[])
10
10
  cookie["fbs_#{client.identifier}"]
11
11
  else
12
12
  cookie
@@ -4,7 +4,7 @@ module FbGraph
4
4
 
5
5
  def initialize(identifier, attributes = {})
6
6
  super
7
- if application = attributes[:application]
7
+ if app = attributes[:application]
8
8
  @application = Application.new(app[:id], app)
9
9
  end
10
10
  if from = attributes[:from]
@@ -28,7 +28,12 @@ module FbGraph
28
28
  end
29
29
 
30
30
  def refunded!(options = {})
31
- update options.merge(:status => :refunded, :refund_funding_source => true)
31
+ defaults = {
32
+ :status => :refunded,
33
+ :message => "Refunded", # message is currently required by facebook in a refund
34
+ :refund_funding_source => true
35
+ }
36
+ update defaults.merge(options)
32
37
  end
33
38
 
34
39
  def canceled!(options = {})
@@ -48,4 +53,4 @@ module FbGraph
48
53
  post params
49
54
  end
50
55
  end
51
- end
56
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 8
9
- - 4
10
- version: 1.8.4
5
+ version: 1.8.5
11
6
  platform: ruby
12
7
  authors:
13
8
  - nov matake
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-29 00:00:00 Z
13
+ date: 2011-06-14 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: httpclient
@@ -25,12 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- hash: 123
29
- segments:
30
- - 2
31
- - 2
32
- - 0
33
- - 2
34
23
  version: 2.2.0.2
35
24
  type: :runtime
36
25
  version_requirements: *id001
@@ -42,11 +31,6 @@ dependencies:
42
31
  requirements:
43
32
  - - ">="
44
33
  - !ruby/object:Gem::Version
45
- hash: 63
46
- segments:
47
- - 0
48
- - 8
49
- - 0
50
34
  version: 0.8.0
51
35
  type: :runtime
52
36
  version_requirements: *id002
@@ -58,10 +42,6 @@ dependencies:
58
42
  requirements:
59
43
  - - ">="
60
44
  - !ruby/object:Gem::Version
61
- hash: 27
62
- segments:
63
- - 0
64
- - 8
65
45
  version: "0.8"
66
46
  type: :development
67
47
  version_requirements: *id003
@@ -73,10 +53,6 @@ dependencies:
73
53
  requirements:
74
54
  - - ">="
75
55
  - !ruby/object:Gem::Version
76
- hash: 25
77
- segments:
78
- - 0
79
- - 9
80
56
  version: "0.9"
81
57
  type: :development
82
58
  version_requirements: *id004
@@ -88,9 +64,6 @@ dependencies:
88
64
  requirements:
89
65
  - - ">="
90
66
  - !ruby/object:Gem::Version
91
- hash: 7
92
- segments:
93
- - 2
94
67
  version: "2"
95
68
  type: :development
96
69
  version_requirements: *id005
@@ -102,11 +75,6 @@ dependencies:
102
75
  requirements:
103
76
  - - ">="
104
77
  - !ruby/object:Gem::Version
105
- hash: 11
106
- segments:
107
- - 1
108
- - 6
109
- - 2
110
78
  version: 1.6.2
111
79
  type: :development
112
80
  version_requirements: *id006
@@ -449,18 +417,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
449
417
  requirements:
450
418
  - - ">="
451
419
  - !ruby/object:Gem::Version
452
- hash: 3
453
- segments:
454
- - 0
455
420
  version: "0"
456
421
  required_rubygems_version: !ruby/object:Gem::Requirement
457
422
  none: false
458
423
  requirements:
459
424
  - - ">="
460
425
  - !ruby/object:Gem::Version
461
- hash: 3
462
- segments:
463
- - 0
464
426
  version: "0"
465
427
  requirements: []
466
428