bgg_remote 0.1.1 → 0.1.2
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/CHANGELOG.md +5 -0
- data/lib/bgg_remote/client.rb +3 -4
- data/lib/bgg_remote/version.rb +1 -1
- metadata +11 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1977a9ebe52c8ba3ef59e64b1c8f8e9ffc969533f691b49a957ad8c3d585a706
|
|
4
|
+
data.tar.gz: d1005a548caf93bd7aedd62fad9b10a9a76d4b191db3179cd035b65d6618df37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 736a18f22165802ed8aeb19bdbd20cc5335d27e25be967b6747fe108b9728d962ca968ef6ad1b2e7eb6ea7d625c04fbf3884354d5bce267148ccd002dd1ac346
|
|
7
|
+
data.tar.gz: a7898088af1c98cc58db08da212e1ab069bc35694cb0015d73543e286f49989cbef75ceb83aa34805869eaba7406fb82451af40fa74c8c6ed46c738e5a97ab8e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.2] - 2026-02-10
|
|
4
|
+
- Relax `httparty` dependency to `>= 0.23.2, < 0.25`.
|
|
5
|
+
- Make token optional in `BggRemote::Client` initialization.
|
|
6
|
+
- Send `Authorization` header only when a token is present.
|
|
7
|
+
|
|
3
8
|
## [0.1.1] - 2025-12-29
|
|
4
9
|
- Add support for plays lookup without type
|
|
5
10
|
- Improve header handling when token is empty
|
data/lib/bgg_remote/client.rb
CHANGED
|
@@ -17,10 +17,8 @@ class BggRemote::Client
|
|
|
17
17
|
422 => BggRemote::Error::UnprocessableEntity
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
|
-
def initialize(token, timeout: 10)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@token = token
|
|
20
|
+
def initialize(token = nil, timeout: 10)
|
|
21
|
+
@token = token
|
|
24
22
|
@timeout = timeout
|
|
25
23
|
end
|
|
26
24
|
|
|
@@ -34,6 +32,7 @@ class BggRemote::Client
|
|
|
34
32
|
private
|
|
35
33
|
|
|
36
34
|
def headers
|
|
35
|
+
return { "Accept" => "application/xml" } if token.nil? || token.empty?
|
|
37
36
|
{ "Accept" => "application/xml", "Authorization" => "Bearer #{token}" }
|
|
38
37
|
end
|
|
39
38
|
|
data/lib/bgg_remote/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bgg_remote
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nícolas Amaral
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
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: httparty
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- -
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: 0.23.2
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0.25'
|
|
20
22
|
type: :runtime
|
|
21
23
|
prerelease: false
|
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
25
|
requirements:
|
|
24
|
-
- -
|
|
26
|
+
- - ">="
|
|
25
27
|
- !ruby/object:Gem::Version
|
|
26
28
|
version: 0.23.2
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0.25'
|
|
27
32
|
- !ruby/object:Gem::Dependency
|
|
28
33
|
name: crack
|
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,7 +112,6 @@ metadata:
|
|
|
107
112
|
homepage_uri: https://github.com/nicollinoxx/bgg_remote
|
|
108
113
|
source_code_uri: https://github.com/nicollinoxx/bgg_remote
|
|
109
114
|
changelog_uri: https://github.com/nicollinoxx/bgg_remote/blob/main/CHANGELOG.md
|
|
110
|
-
post_install_message:
|
|
111
115
|
rdoc_options: []
|
|
112
116
|
require_paths:
|
|
113
117
|
- lib
|
|
@@ -122,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
122
126
|
- !ruby/object:Gem::Version
|
|
123
127
|
version: '0'
|
|
124
128
|
requirements: []
|
|
125
|
-
rubygems_version: 3.
|
|
126
|
-
signing_key:
|
|
129
|
+
rubygems_version: 3.6.9
|
|
127
130
|
specification_version: 4
|
|
128
131
|
summary: Ruby client for the BoardGameGeek XML API2.
|
|
129
132
|
test_files: []
|