rerout-rails 0.2.0 → 0.4.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: 3db09eb13c04f8eb7821f499497bf52a0ff21d32a4f58847463bc4a239687fa6
4
- data.tar.gz: 776ae38772fd41606383a61240392dbf299bdf4acd6f1f6253b0b2a0145aa2b9
3
+ metadata.gz: 61aa245d720baaa36e99208264fceac246573df996319a8b3bbd9617e84e35ee
4
+ data.tar.gz: 16c3c19bc6178442354e1694c7da7eb55d0ce4280a2d5e31fe6e6a5a4965191b
5
5
  SHA512:
6
- metadata.gz: '0956c3298798e2a186e0d86e817eae58076480656a68a8f82bec86ac180edbd9dd99f4570055762c5295ae014fc2d03cf118a645689535142ac726d18792d2ec'
7
- data.tar.gz: b195863f1f74376dd5d58634573a0a92c3427573b42e85f87bb7faf706b8e80f7ebae0516053c08cbfc24fa318a786f5fdb51cc8707712851b71dcc7bd943015
6
+ metadata.gz: 6370435c28c8b824ba940301af3c423621102729fb3ef32547b9ffbe753f084581e5fd199e548e15c367322768fe74f8460727aeba167d55c364af69a022ba87
7
+ data.tar.gz: e6007cf4c3e181484d4b2096d0f19b97cf06b96eaef52341f93c3f908d0dca5af532130debbc59ed07be4b83d58273353caf987abb1b481602cadfbc54e96b0c
data/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to the `rerout-rails` gem are documented in this file. The
4
4
  format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.4.0] - 2026-07-13
8
+
9
+ ### Added
10
+
11
+ - Framework configuration for the isolated Rerout sandbox, forwarded to the
12
+ underlying SDK without changing existing production defaults.
13
+
14
+ ## [0.3.0] - 2026-06-03
15
+
16
+ ### Changed
17
+
18
+ - Bumped the base `rerout` gem dependency to allow `0.3.0`, which adds webhook
19
+ endpoint management (create/list/delete). No API changes in this package.
20
+
7
21
  ## [0.2.0] - 2026-06-02
8
22
 
9
23
  ### Changed
@@ -36,5 +50,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
50
  - `Rerout::Rails::ConfigurationError` raised on missing `api_key` or
37
51
  `webhook_secret`.
38
52
 
53
+ [0.3.0]: https://github.com/ModestNerds-Co/rerout-sdks/releases/tag/ruby-rails/v0.3.0
39
54
  [0.2.0]: https://github.com/ModestNerds-Co/rerout-sdks/releases/tag/ruby-rails-v0.2.0
40
55
  [0.1.0]: https://github.com/ModestNerds-Co/rerout-sdks/releases/tag/ruby-rails-v0.1.0
@@ -31,7 +31,9 @@ module Rerout
31
31
  attr_accessor :webhook_secret
32
32
 
33
33
  # @return [String, nil] override the API base URL.
34
- attr_accessor :base_url
34
+ # @return [Symbol] production or sandbox data plane.
35
+ # @return [Boolean] convenience alias for the sandbox environment.
36
+ attr_accessor :base_url, :environment, :sandbox
35
37
 
36
38
  # @return [Integer] per-request timeout in seconds. Default 30.
37
39
  attr_accessor :timeout
@@ -51,6 +53,8 @@ module Rerout
51
53
  @api_key = ENV.fetch('REROUT_API_KEY', nil)
52
54
  @webhook_secret = ENV.fetch('REROUT_WEBHOOK_SECRET', nil)
53
55
  @base_url = ENV.fetch('REROUT_BASE_URL', nil)
56
+ @environment = ENV.fetch('REROUT_ENVIRONMENT', 'production').to_sym
57
+ @sandbox = ENV.fetch('REROUT_SANDBOX', 'false').casecmp('true').zero?
54
58
  @timeout = 30
55
59
  @signature_tolerance_seconds = Rerout::Webhooks::DEFAULT_TOLERANCE_SECONDS
56
60
  @user_agent = nil
@@ -106,6 +110,8 @@ module Rerout
106
110
  Rerout::Client.new(
107
111
  api_key: api_key,
108
112
  base_url: base_url,
113
+ environment: environment,
114
+ sandbox: sandbox,
109
115
  timeout: timeout,
110
116
  user_agent: user_agent
111
117
  )
@@ -4,6 +4,6 @@ module Rerout
4
4
  module Rails
5
5
  # Version of the `rerout-rails` gem. Follows semantic versioning and is
6
6
  # released in lockstep with the base `rerout` gem.
7
- VERSION = '0.2.0'
7
+ VERSION = '0.4.0'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rerout-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codecraft Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-02 00:00:00.000000000 Z
11
+ date: 2026-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.2'
39
+ version: 0.6.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.2'
46
+ version: 0.6.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: actionpack
49
49
  requirement: !ruby/object:Gem::Requirement