rerout-rails 0.3.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rerout/rails/configuration.rb +7 -1
- data/lib/rerout/rails/version.rb +1 -1
- 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: 61aa245d720baaa36e99208264fceac246573df996319a8b3bbd9617e84e35ee
|
|
4
|
+
data.tar.gz: 16c3c19bc6178442354e1694c7da7eb55d0ce4280a2d5e31fe6e6a5a4965191b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6370435c28c8b824ba940301af3c423621102729fb3ef32547b9ffbe753f084581e5fd199e548e15c367322768fe74f8460727aeba167d55c364af69a022ba87
|
|
7
|
+
data.tar.gz: e6007cf4c3e181484d4b2096d0f19b97cf06b96eaef52341f93c3f908d0dca5af532130debbc59ed07be4b83d58273353caf987abb1b481602cadfbc54e96b0c
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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
|
+
|
|
7
14
|
## [0.3.0] - 2026-06-03
|
|
8
15
|
|
|
9
16
|
### Changed
|
|
@@ -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
|
-
|
|
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
|
)
|
data/lib/rerout/rails/version.rb
CHANGED
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.
|
|
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-
|
|
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:
|
|
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:
|
|
46
|
+
version: 0.6.0
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: actionpack
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|