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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5836ac5581ecc314412433273d5bb80830b89939d6b12df75f40b5305aa37d6
4
- data.tar.gz: 97dce16b697a6320f5920efacf4d68cea07f4e6e9c270fa89c0d840248baea0b
3
+ metadata.gz: 19e494a0a761fd0c982506d2b1f82beb8f411439dc79b38f77b0e1413826e05c
4
+ data.tar.gz: abf6a6f8c2f89bf2a6e6b189b2ae6cf56691e0d801626982c55c41637c543b50
5
5
  SHA512:
6
- metadata.gz: 7162744d4d4e48be70520ba696298f99c8ab3f1129d591cf79da105be6d69f9b445a8f91d20233dbbf39d62b2607b1f3e67f6eb0b121ceef8679f1ad368f4e84
7
- data.tar.gz: 171cfee4011ebd261660e1a0646a884a790c36e0e638c53cb716279400f424cd832bb83e457884fe586266d2b70b7e2f8f457c6d416840d7f36f26b18ef3b47a
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.13.1...HEAD
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.13.x (`~> 0.13.0`); Bundler installs it with the gem
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.13.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", "poli_page-rails")
14
+ @deprecator ||= ActiveSupport::Deprecation.new("0.16", "poli_page-rails")
15
15
  end
16
16
  end
17
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module PoliPage
4
4
  module Rails
5
- VERSION = "0.13.1"
5
+ VERSION = "0.15.0"
6
6
  end
7
7
  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.13.1
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.13.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.13.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.7
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: []