koala 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/Gemfile +1 -1
- data/changelog.md +14 -0
- data/koala.gemspec +2 -0
- data/lib/koala/api/graph_collection.rb +1 -0
- data/lib/koala/version.rb +1 -1
- data/spec/cases/api_spec.rb +1 -1
- data/spec/cases/graph_error_checker_spec.rb +1 -1
- data/spec/cases/http_service_spec.rb +18 -6
- metadata +32 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cacc94480f8090c1c5380856b9315897e46b23b907efd411ab937d0c090d15ab
|
4
|
+
data.tar.gz: da676d048bd4d57e41eccef84cd72f7793ecad5e591728bac7ba45c51e01bb93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709df731e154734f941caba0b9df74aa3c0201f1e769bed433947e4dc54e6c3c27396560dfcaedd6eccaaa5d2d3a02f01b7d09e934ad70e97d7f37f766794efd
|
7
|
+
data.tar.gz: 9d15308a886501cedd51422a76a5e38e72b453ecfe0a067337b773b790c4a483cfc9c164c0299b62ca3f0cda0833201409b8e4dbdfbb934906df00888ef73516
|
data/.github/workflows/test.yml
CHANGED
data/Gemfile
CHANGED
@@ -15,7 +15,7 @@ end
|
|
15
15
|
|
16
16
|
group :test do
|
17
17
|
gem "rspec", "~> 3.0", "< 3.10" # resrict rspec version until https://github.com/rspec/rspec-support/pull/537 gets merged
|
18
|
-
gem "vcr", github: 'vcr/vcr', ref: '
|
18
|
+
gem "vcr", github: 'vcr/vcr', ref: 'ce35c236fe48899f02ddf780973b44cdb756c0ee' # needs https://github.com/vcr/vcr/issues/1057 for ruby 3.5
|
19
19
|
gem "webmock"
|
20
20
|
gem "simplecov"
|
21
21
|
end
|
data/changelog.md
CHANGED
@@ -15,6 +15,20 @@ Testing improvements:
|
|
15
15
|
|
16
16
|
Others:
|
17
17
|
|
18
|
+
v3.7.0 (2025-08-27)
|
19
|
+
==========
|
20
|
+
|
21
|
+
Internal improvements:
|
22
|
+
|
23
|
+
* explicitly require ostruct for ruby >= 3.3.5 ([694](https://github.com/arsduo/koala/pull/694))
|
24
|
+
* explicitly require cgi for ruby >= 3.5.0 ([702](https://github.com/arsduo/koala/pull/702))
|
25
|
+
|
26
|
+
Testing improvements:
|
27
|
+
|
28
|
+
* Add ruby 3.4 to CI ([696](https://github.com/arsduo/koala/pull/696))
|
29
|
+
* Fix json assertions in CI ([701](https://github.com/arsduo/koala/pull/701))
|
30
|
+
* Fix ruby 3.5 CI ([702](https://github.com/arsduo/koala/pull/702))
|
31
|
+
|
18
32
|
v3.6.0 (2024-06-27)
|
19
33
|
==========
|
20
34
|
|
data/koala.gemspec
CHANGED
data/lib/koala/version.rb
CHANGED
data/spec/cases/api_spec.rb
CHANGED
@@ -345,7 +345,7 @@ describe "Koala::Facebook::API" do
|
|
345
345
|
response = Koala::HTTPService::Response.new(200, result.to_json, { "x-ad-account-usage" => "{\"acc_id_util_pct\"9.67}"})
|
346
346
|
allow(Koala).to receive(:make_request).and_return(response)
|
347
347
|
|
348
|
-
expect(Koala::Utils.logger).to receive(:error).with(
|
348
|
+
expect(Koala::Utils.logger).to receive(:error).with("JSON::ParserError: expected ':' after object key at line 1 column 19 while parsing x-ad-account-usage = {\"acc_id_util_pct\"9.67}")
|
349
349
|
api.graph_call('anything')
|
350
350
|
end
|
351
351
|
|
@@ -112,7 +112,7 @@ module Koala
|
|
112
112
|
"x-app-usage" => '{invalid:json}'
|
113
113
|
)
|
114
114
|
|
115
|
-
expect(Koala::Utils.logger).to receive(:error).with(
|
115
|
+
expect(Koala::Utils.logger).to receive(:error).with("JSON::ParserError: expected object key, got 'invalid:json}' at line 1 column 2 while parsing x-app-usage = {invalid:json}")
|
116
116
|
expect(error.fb_app_usage).to eq(nil)
|
117
117
|
end
|
118
118
|
|
@@ -238,8 +238,12 @@ describe Koala::HTTPService do
|
|
238
238
|
it 'logs tokens' do
|
239
239
|
allow(Koala.config).to receive(:mask_tokens) { false }
|
240
240
|
|
241
|
-
expect(Koala::Utils).to receive(:debug)
|
242
|
-
|
241
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
242
|
+
expect(log).to match(/STARTED => GET: \/foo params: {"an"\s?=>\s?:arg, "access_token"\s?=>\s?"myvisbleaccesstoken"}/)
|
243
|
+
end
|
244
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
245
|
+
expect(log).to match(/FINISHED => GET: \/foo params: {"an"\s?=>\s?:arg, "access_token"\s?=>\s?"myvisbleaccesstoken"}/)
|
246
|
+
end
|
243
247
|
|
244
248
|
Koala::HTTPService.make_request(request)
|
245
249
|
end
|
@@ -247,8 +251,12 @@ describe Koala::HTTPService do
|
|
247
251
|
it 'doesnt log tokens' do
|
248
252
|
allow(Koala.config).to receive(:mask_tokens) { true }
|
249
253
|
|
250
|
-
expect(Koala::Utils).to receive(:debug)
|
251
|
-
|
254
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
255
|
+
expect(log).to match(/STARTED => GET: \/foo params: {"an"\s?=>\s?:arg, "access_token"\s?=>\s?"myvisbleac[*]{5}token"}/)
|
256
|
+
end
|
257
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
258
|
+
expect(log).to match(/FINISHED => GET: \/foo params: {"an"\s?=>\s?:arg, "access_token"\s?=>\s?"myvisbleac[*]{5}token"}/)
|
259
|
+
end
|
252
260
|
|
253
261
|
Koala::HTTPService.make_request(request)
|
254
262
|
end
|
@@ -258,8 +266,12 @@ describe Koala::HTTPService do
|
|
258
266
|
|
259
267
|
allow(Koala.config).to receive(:mask_tokens) { true }
|
260
268
|
|
261
|
-
expect(Koala::Utils).to receive(:debug)
|
262
|
-
|
269
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
270
|
+
expect(log).to match(/STARTED => GET: \/debug_token params: {"input_token"\s?=>\s?"myvisiblea[*]{5}token", "access_token"\s?=>\s?"myvisiblea[*]{5}token"}/)
|
271
|
+
end
|
272
|
+
expect(Koala::Utils).to receive(:debug) do |log|
|
273
|
+
expect(log).to match(/FINISHED => GET: \/debug_token params: {"input_token"\s?=>\s?"myvisiblea[*]{5}token", "access_token"\s?=>\s?"myvisiblea[*]{5}token"}/)
|
274
|
+
end
|
263
275
|
|
264
276
|
Koala::HTTPService.make_request(request)
|
265
277
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Koppel
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: faraday
|
@@ -94,6 +93,34 @@ dependencies:
|
|
94
93
|
- - ">="
|
95
94
|
- !ruby/object:Gem::Version
|
96
95
|
version: '0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: ostruct
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: cgi
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
97
124
|
description: Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write
|
98
125
|
access to the social graph via the Graph and REST APIs, as well as support for realtime
|
99
126
|
updates and OAuth and Facebook Connect authentication. Koala is fully tested and
|
@@ -103,8 +130,8 @@ email: alex@alexkoppel.com
|
|
103
130
|
executables: []
|
104
131
|
extensions: []
|
105
132
|
extra_rdoc_files:
|
106
|
-
- readme.md
|
107
133
|
- changelog.md
|
134
|
+
- readme.md
|
108
135
|
files:
|
109
136
|
- ".github/workflows/test.yml"
|
110
137
|
- ".gitignore"
|
@@ -172,7 +199,6 @@ homepage: http://github.com/arsduo/koala
|
|
172
199
|
licenses:
|
173
200
|
- MIT
|
174
201
|
metadata: {}
|
175
|
-
post_install_message:
|
176
202
|
rdoc_options:
|
177
203
|
- "--line-numbers"
|
178
204
|
- "--inline-source"
|
@@ -191,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
217
|
- !ruby/object:Gem::Version
|
192
218
|
version: '0'
|
193
219
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
195
|
-
signing_key:
|
220
|
+
rubygems_version: 3.8.0.dev
|
196
221
|
specification_version: 4
|
197
222
|
summary: A lightweight, flexible library for Facebook with support for the Graph API,
|
198
223
|
the REST API, realtime updates, and OAuth authentication.
|