rest-graph 2.0.2 → 2.0.3

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: 8edbfde462685834f2970d334f3af9460da2f359
4
+ data.tar.gz: 2b8ad684dc7c243ad2451919ac0f8efadeef4c51
5
+ SHA512:
6
+ metadata.gz: 6b75c1366ca76da64c915d70bb09745c1a4b3ac27c34d852d186e10f4087bc37405a2e7ef9e1239c44d998d44a86224c1dfb3097e82a3ce2d4953bc7af5922d2
7
+ data.tar.gz: 7171a81415a7f2448baf046f9b714cc8e87ba2238751b688aa0f47a97076c05573d37ffd5b71b60a5cba242f27cda677b64e7100fd047a97ae5d41bd7e77804f
@@ -7,8 +7,8 @@ env:
7
7
 
8
8
  rvm:
9
9
  - 1.8.7
10
- - 1.9.2
11
10
  - 1.9.3
11
+ - 2.0.0
12
12
  - rbx-18mode
13
13
  - rbx-19mode
14
14
  - jruby-18mode
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGES
2
2
 
3
+ ## rest-graph 2.0.3 -- 2013-04-26
4
+
5
+ * [RestGraph::RailsUtil] Adopt latest changes from rest-more. See:
6
+ https://github.com/cardinalblue/rest-more/commit/101e4b25f11e4cf3713fa2f1d6b5a46982266e44
7
+ https://github.com/cardinalblue/rest-more/commit/0e7d4db588ecc287fd8b2840c880dfb3fe3c3096
8
+
3
9
  ## rest-graph 2.0.2 -- 2012-07-13
4
10
 
5
11
  * [RestGraph] Adopt latest em-http-request.
@@ -80,16 +80,9 @@ module RestGraph::RailsUtil
80
80
 
81
81
  rest_graph_check_params_signed_request # canvas
82
82
  rest_graph_check_params_session # i think it would be deprecated
83
- rest_graph_check_cookie # for js sdk (canvas or not)
84
83
  rest_graph_check_code # oauth api
85
-
86
- # there are above 4 ways to check the user identity!
87
- # if nor of them passed, then we can suppose the user
88
- # didn't authorize for us, but we can check if user has authorized
89
- # before, in that case, the fbs would be inside session,
90
- # as we just saved it there
91
-
92
84
  rest_graph_check_rg_fbs # check rest-graph storage
85
+ rest_graph_check_cookie # for js sdk (canvas or not)
93
86
 
94
87
  if rest_graph_oget(:ensure_authorized) && !rest_graph.authorized?
95
88
  rest_graph_authorize('ensure authorized')
@@ -235,6 +228,8 @@ module RestGraph::RailsUtil
235
228
  rest_graph.parse_cookies!(cookies)
236
229
  logger.debug("DEBUG: RestGraph: detected cookies, parsed:" \
237
230
  " #{rest_graph.data.inspect}")
231
+
232
+ rest_graph_write_rg_fbs if rest_graph.authorized?
238
233
  end
239
234
 
240
235
  # exchange the code with access_token
@@ -290,7 +285,6 @@ module RestGraph::RailsUtil
290
285
  # ==================== end check ================================
291
286
  # ==================== begin write ================================
292
287
  def rest_graph_write_rg_fbs
293
- cookies.delete("fbs_#{rest_graph.app_id}")
294
288
  rest_graph_write_rg_handler
295
289
  rest_graph_write_rg_session
296
290
  rest_graph_write_rg_cookies
@@ -1,4 +1,4 @@
1
1
 
2
2
  require 'rest-graph/core'
3
3
 
4
- RestGraph::VERSION = '2.0.2'
4
+ RestGraph::VERSION = '2.0.3'
@@ -2,13 +2,13 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rest-graph"
5
- s.version = "2.0.2"
5
+ s.version = "2.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [
9
9
  "Cardinal Blue",
10
10
  "Lin Jen-Shin (godfat)"]
11
- s.date = "2012-07-13"
11
+ s.date = "2013-04-26"
12
12
  s.description = "A lightweight Facebook Graph API client\n\nWe have moved the development from rest-graph to [rest-core][].\nBy now on, we would only fix bugs in rest-graph rather than adding\nfeatures, and we would only backport important changes from rest-core\nonce in a period. If you want the latest goodies, please see [rest-core][]\nOtherwise, you can stay with rest-graph with bugs fixes.\n\n[rest-core]: https://github.com/cardinalblue/rest-core"
13
13
  s.email = ["dev (XD) cardinalblue.com"]
14
14
  s.files = [
@@ -101,7 +101,7 @@ Gem::Specification.new do |s|
101
101
  "test/test_timeout.rb"]
102
102
  s.homepage = "https://github.com/cardinalblue/rest-graph"
103
103
  s.require_paths = ["lib"]
104
- s.rubygems_version = "1.8.24"
104
+ s.rubygems_version = "2.0.0"
105
105
  s.summary = "A lightweight Facebook Graph API client"
106
106
  s.test_files = [
107
107
  "test/test_api.rb",
@@ -121,13 +121,4 @@ Gem::Specification.new do |s|
121
121
  "test/test_serialize.rb",
122
122
  "test/test_test_util.rb",
123
123
  "test/test_timeout.rb"]
124
-
125
- if s.respond_to? :specification_version then
126
- s.specification_version = 3
127
-
128
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
129
- else
130
- end
131
- else
132
- end
133
124
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
5
- prerelease:
4
+ version: 2.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Cardinal Blue
@@ -10,23 +9,18 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-07-13 00:00:00.000000000 Z
12
+ date: 2013-04-26 00:00:00.000000000 Z
14
13
  dependencies: []
15
- description: ! 'A lightweight Facebook Graph API client
16
-
14
+ description: |-
15
+ A lightweight Facebook Graph API client
17
16
 
18
17
  We have moved the development from rest-graph to [rest-core][].
19
-
20
18
  By now on, we would only fix bugs in rest-graph rather than adding
21
-
22
19
  features, and we would only backport important changes from rest-core
23
-
24
20
  once in a period. If you want the latest goodies, please see [rest-core][]
25
-
26
21
  Otherwise, you can stay with rest-graph with bugs fixes.
27
22
 
28
-
29
- [rest-core]: https://github.com/cardinalblue/rest-core'
23
+ [rest-core]: https://github.com/cardinalblue/rest-core
30
24
  email:
31
25
  - dev (XD) cardinalblue.com
32
26
  executables: []
@@ -122,27 +116,26 @@ files:
122
116
  - test/test_timeout.rb
123
117
  homepage: https://github.com/cardinalblue/rest-graph
124
118
  licenses: []
119
+ metadata: {}
125
120
  post_install_message:
126
121
  rdoc_options: []
127
122
  require_paths:
128
123
  - lib
129
124
  required_ruby_version: !ruby/object:Gem::Requirement
130
- none: false
131
125
  requirements:
132
- - - ! '>='
126
+ - - '>='
133
127
  - !ruby/object:Gem::Version
134
128
  version: '0'
135
129
  required_rubygems_version: !ruby/object:Gem::Requirement
136
- none: false
137
130
  requirements:
138
- - - ! '>='
131
+ - - '>='
139
132
  - !ruby/object:Gem::Version
140
133
  version: '0'
141
134
  requirements: []
142
135
  rubyforge_project:
143
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.0.0
144
137
  signing_key:
145
- specification_version: 3
138
+ specification_version: 4
146
139
  summary: A lightweight Facebook Graph API client
147
140
  test_files:
148
141
  - test/test_api.rb
@@ -162,4 +155,3 @@ test_files:
162
155
  - test/test_serialize.rb
163
156
  - test/test_test_util.rb
164
157
  - test/test_timeout.rb
165
- has_rdoc: