poli_page-rails 0.13.1 → 0.15.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/CHANGELOG.md +21 -1
- data/README.md +3 -2
- data/lib/poli_page/rails/configuration.rb +0 -17
- data/lib/poli_page/rails/deprecator.rb +1 -1
- data/lib/poli_page/rails/version.rb +1 -1
- data/sig/poli_page/rails/configuration.rbs +0 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19e494a0a761fd0c982506d2b1f82beb8f411439dc79b38f77b0e1413826e05c
|
|
4
|
+
data.tar.gz: abf6a6f8c2f89bf2a6e6b189b2ae6cf56691e0d801626982c55c41637c543b50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e9944dbb28eaa3e32a506cdb29469bacfa78a79e7598e13a9d5ef45e5f2d049041f61fc70cb3789a0c149d895f597ffe37a965eed0bdddac56c6c74ca8c3361
|
|
7
|
+
data.tar.gz: 2cd39dfa4f9c7433815586409e7fbb1154c88994218cc859cd08088c7a47e359a82773e5383772f3ee3104489c68535f2c3a73fadaef916f06241fd5e64d311e
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,25 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.15.0] - 2026-11-17
|
|
10
|
+
|
|
11
|
+
Requires the `poli-page` SDK 0.15 (`~> 0.15.0`, that is `>= 0.15.0, < 0.16`)
|
|
12
|
+
and passes the Poli Page API contract v0.15.0. There is no 0.14 release of the
|
|
13
|
+
gem.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Requires the `poli-page` SDK 0.15 (`~> 0.15.0`; was `~> 0.13.0`).
|
|
18
|
+
- The API contract cases run against contract v0.15.0 (contract format 2).
|
|
19
|
+
The `impl` cases the gem runs are unchanged from v0.13.0.
|
|
20
|
+
|
|
21
|
+
### Removed
|
|
22
|
+
|
|
23
|
+
- **Breaking:** `config.poli_page.user_agent`, deprecated in 0.13.1. It never
|
|
24
|
+
had an effect: the `poli-page` SDK sends its own `User-Agent` and takes no
|
|
25
|
+
option for it. An initializer that still sets it now fails at boot with
|
|
26
|
+
`NoMethodError`; delete the line.
|
|
27
|
+
|
|
9
28
|
## [0.13.1] - 2026-11-05
|
|
10
29
|
|
|
11
30
|
### Deprecated
|
|
@@ -146,6 +165,7 @@ changes made during those lines.
|
|
|
146
165
|
- Example app: the demo page's status row no longer shows the first 8
|
|
147
166
|
characters of `POLI_PAGE_API_KEY`; no part of the key is shown.
|
|
148
167
|
|
|
149
|
-
[Unreleased]: https://github.com/poli-page/rubyonrails/compare/v0.
|
|
168
|
+
[Unreleased]: https://github.com/poli-page/rubyonrails/compare/v0.15.0...HEAD
|
|
169
|
+
[0.15.0]: https://github.com/poli-page/rubyonrails/compare/v0.13.1...v0.15.0
|
|
150
170
|
[0.13.1]: https://github.com/poli-page/rubyonrails/compare/v0.13.0...v0.13.1
|
|
151
171
|
[0.13.0]: https://github.com/poli-page/rubyonrails/releases/tag/v0.13.0
|
data/README.md
CHANGED
|
@@ -36,7 +36,7 @@ This gem wires the official [`poli-page`](https://rubygems.org/gems/poli-page) R
|
|
|
36
36
|
|
|
37
37
|
- Ruby 3.2 or newer
|
|
38
38
|
- Rails 7.0, 7.1, 7.2, or 8.0
|
|
39
|
-
- `poli-page` SDK 0.
|
|
39
|
+
- `poli-page` SDK 0.15.x (`~> 0.15.0`); Bundler installs it with the gem
|
|
40
40
|
|
|
41
41
|
## Install
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ Add the gem to your `Gemfile`:
|
|
|
44
44
|
|
|
45
45
|
```ruby
|
|
46
46
|
# Gemfile
|
|
47
|
-
gem "poli_page-rails", "~> 0.
|
|
47
|
+
gem "poli_page-rails", "~> 0.15.0"
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Then run:
|
|
@@ -230,6 +230,7 @@ bin/rails server
|
|
|
230
230
|
|
|
231
231
|
| Gem | `poli-page` SDK | Rails | Ruby |
|
|
232
232
|
|---|---|---|---|
|
|
233
|
+
| 0.15.x | 0.15.x | 7.0 / 7.1 / 7.2 / 8.0 | 3.2 – 3.4 |
|
|
233
234
|
| 0.13.x | 0.13.x | 7.0 / 7.1 / 7.2 / 8.0 | 3.2 – 3.4 |
|
|
234
235
|
|
|
235
236
|
The gem shares its major.minor with the Poli Page API and requires the SDK of the same minor (see [RELEASING.md](RELEASING.md#versions)).
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "deprecator"
|
|
4
|
-
|
|
5
3
|
module PoliPage
|
|
6
4
|
module Rails
|
|
7
5
|
class Configuration
|
|
@@ -27,21 +25,6 @@ module PoliPage
|
|
|
27
25
|
@error_handler = true
|
|
28
26
|
end
|
|
29
27
|
|
|
30
|
-
USER_AGENT_DEPRECATION = "config.poli_page.user_agent has no effect, the Poli Page SDK sends " \
|
|
31
|
-
"its own User-Agent; remove it. It will be removed in a later minor release."
|
|
32
|
-
|
|
33
|
-
# Deprecated no-op: the SDK takes no User-Agent option, so the value was
|
|
34
|
-
# never passed on. Kept so that an initializer that sets it still boots.
|
|
35
|
-
def user_agent=(_value)
|
|
36
|
-
PoliPage::Rails.deprecator.warn(USER_AGENT_DEPRECATION)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
# Deprecated no-op, see #user_agent=. Always nil.
|
|
40
|
-
def user_agent
|
|
41
|
-
PoliPage::Rails.deprecator.warn(USER_AGENT_DEPRECATION)
|
|
42
|
-
nil
|
|
43
|
-
end
|
|
44
|
-
|
|
45
28
|
# Single source of truth for SDK kwargs. Compact drops every nil entry,
|
|
46
29
|
# so the SDK's own defaults take over for every unset key.
|
|
47
30
|
def to_client_kwargs
|
|
@@ -11,7 +11,7 @@ module PoliPage
|
|
|
11
11
|
# Rails.application.deprecators (Rails 7.1+), so the app's
|
|
12
12
|
# config.active_support.deprecation setting applies to it.
|
|
13
13
|
def self.deprecator
|
|
14
|
-
@deprecator ||= ActiveSupport::Deprecation.new("0.
|
|
14
|
+
@deprecator ||= ActiveSupport::Deprecation.new("0.16", "poli_page-rails")
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
@@ -3,8 +3,6 @@ module PoliPage
|
|
|
3
3
|
def self.deprecator: () -> ActiveSupport::Deprecation
|
|
4
4
|
|
|
5
5
|
class Configuration
|
|
6
|
-
USER_AGENT_DEPRECATION: String
|
|
7
|
-
|
|
8
6
|
attr_accessor api_key: String?
|
|
9
7
|
attr_accessor base_url: String?
|
|
10
8
|
attr_accessor timeout: Numeric?
|
|
@@ -20,8 +18,6 @@ module PoliPage
|
|
|
20
18
|
attr_accessor error_handler: bool
|
|
21
19
|
|
|
22
20
|
def initialize: () -> void
|
|
23
|
-
def user_agent=: (untyped) -> void
|
|
24
|
-
def user_agent: () -> nil
|
|
25
21
|
def to_client_kwargs: () -> Hash[Symbol, untyped]
|
|
26
22
|
end
|
|
27
23
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poli_page-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Poli Page
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.15.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.15.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: railties
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: '0'
|
|
146
146
|
requirements: []
|
|
147
|
-
rubygems_version: 3.6.
|
|
147
|
+
rubygems_version: 3.6.9
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Rails engine for the Poli Page PDF rendering API
|
|
150
150
|
test_files: []
|