koala 3.0.0.beta1 → 3.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
@@ -106,8 +106,6 @@ module KoalaTest
106
106
  self.code = data["oauth_test_data"]["code"]
107
107
  self.session_key = data["oauth_test_data"]["session_key"]
108
108
 
109
- self.vcr_oauth_token = data["vcr_data"]["oauth_token"]
110
-
111
109
  # fix the search time so it can be used in the mock responses
112
110
  self.search_time = data["search_time"] || (Time.now - 3600).to_s
113
111
  end
@@ -183,7 +181,7 @@ module KoalaTest
183
181
  # Data for testing
184
182
  def self.user1
185
183
  # user ID, either numeric or username
186
- test_user? ? @live_testing_user["id"] : "koppel"
184
+ test_user? ? @live_testing_user["id"] : "barackobama"
187
185
  end
188
186
 
189
187
  def self.user1_id
@@ -198,7 +196,7 @@ module KoalaTest
198
196
 
199
197
  def self.user2
200
198
  # see notes for user1
201
- test_user? ? @live_testing_friend["id"] : "lukeshepard"
199
+ test_user? ? @live_testing_friend["id"] : "koppel"
202
200
  end
203
201
 
204
202
  def self.user2_id
@@ -45,12 +45,12 @@ module Koala
45
45
  # to place a mock as well as a URL to request from
46
46
  # Facebook's servers for the actual data
47
47
  # (Don't forget to replace ACCESS_TOKEN with a real access token)
48
- data_trace = [path, args, verb, options] * ': '
48
+ data_trace = [request.raw_path, request.raw_args, request.raw_verb, request.raw_options] * ': '
49
49
 
50
- args = args == 'no_args' ? '' : "#{args}&"
50
+ args = request.raw_args == 'no_args' ? '' : "#{request.raw_args}&"
51
51
  args += 'format=json'
52
52
 
53
- raise "Missing a mock response for #{data_trace}\nAPI PATH: #{[path, args].join('?')}"
53
+ raise "Missing a mock response for #{data_trace}\nAPI PATH: #{[request.path, request.raw_args].join('?')}"
54
54
  end
55
55
 
56
56
  response_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koala
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta1
4
+ version: 3.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Koppel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
41
55
  description: Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write
42
56
  access to the social graph via the Graph and REST APIs, as well as support for realtime
43
57
  updates and OAuth and Facebook Connect authentication. Koala is fully tested and
@@ -67,7 +81,7 @@ files:
67
81
  - lib/koala.rb
68
82
  - lib/koala/api.rb
69
83
  - lib/koala/api/batch_operation.rb
70
- - lib/koala/api/graph_api.rb
84
+ - lib/koala/api/graph_api_methods.rb
71
85
  - lib/koala/api/graph_batch_api.rb
72
86
  - lib/koala/api/graph_collection.rb
73
87
  - lib/koala/api/graph_error_checker.rb
@@ -90,6 +104,7 @@ files:
90
104
  - spec/cases/graph_collection_spec.rb
91
105
  - spec/cases/graph_error_checker_spec.rb
92
106
  - spec/cases/http_service/request_spec.rb
107
+ - spec/cases/http_service/response_spec.rb
93
108
  - spec/cases/http_service_spec.rb
94
109
  - spec/cases/koala_spec.rb
95
110
  - spec/cases/koala_test_spec.rb
@@ -103,6 +118,7 @@ files:
103
118
  - spec/fixtures/cat.m4v
104
119
  - spec/fixtures/facebook_data.yml
105
120
  - spec/fixtures/mock_facebook_responses.yml
121
+ - spec/fixtures/vcr_cassettes/app_test_accounts.yml
106
122
  - spec/fixtures/vcr_cassettes/friend_list_next_page.yml
107
123
  - spec/integration/graph_collection_spec.rb
108
124
  - spec/spec_helper.rb
@@ -127,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
143
  requirements:
128
144
  - - ">="
129
145
  - !ruby/object:Gem::Version
130
- version: '0'
146
+ version: '2.1'
131
147
  required_rubygems_version: !ruby/object:Gem::Requirement
132
148
  requirements:
133
149
  - - ">"
@@ -135,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
151
  version: 1.3.1
136
152
  requirements: []
137
153
  rubyforge_project:
138
- rubygems_version: 2.4.3
154
+ rubygems_version: 2.6.10
139
155
  signing_key:
140
156
  specification_version: 4
141
157
  summary: A lightweight, flexible library for Facebook with support for the Graph API,
@@ -148,6 +164,7 @@ test_files:
148
164
  - spec/cases/graph_collection_spec.rb
149
165
  - spec/cases/graph_error_checker_spec.rb
150
166
  - spec/cases/http_service/request_spec.rb
167
+ - spec/cases/http_service/response_spec.rb
151
168
  - spec/cases/http_service_spec.rb
152
169
  - spec/cases/koala_spec.rb
153
170
  - spec/cases/koala_test_spec.rb
@@ -161,6 +178,7 @@ test_files:
161
178
  - spec/fixtures/cat.m4v
162
179
  - spec/fixtures/facebook_data.yml
163
180
  - spec/fixtures/mock_facebook_responses.yml
181
+ - spec/fixtures/vcr_cassettes/app_test_accounts.yml
164
182
  - spec/fixtures/vcr_cassettes/friend_list_next_page.yml
165
183
  - spec/integration/graph_collection_spec.rb
166
184
  - spec/spec_helper.rb