tosspayments2-rails 0.5.3 → 0.5.4

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: 73c719bd714f0cfc26846bf34d53df219cc2507183116c65edab920bb54f4e9a
4
- data.tar.gz: 969563b02de6d42d5674fffa83c04e4bc9a6efbe0d651ebfeac582e001405c55
3
+ metadata.gz: cb82f0d033bad60126af50821b849025ea3af57657cb80689cba3f49cb1b7d97
4
+ data.tar.gz: 19a61b3288da058e9c9d4f1f900ff2eb712f73aef759247f92e1257dc5afec7e
5
5
  SHA512:
6
- metadata.gz: 90522dad29b4362e3bf50377c7cd722a0c41ef84bc8c4e5ae8b235f35429c082ac7100abd254ee11f00afb48e67d13d27671eb9179619243006de8454d39c1b1
7
- data.tar.gz: f409397b362cbf4bf01386ce81e4a864879b546522a4b966b45ed4782a96bbca9313eaf259de6d8d3e612265e8db3566cb51fee1109a257ebe4695d658bc0452
6
+ metadata.gz: dfd24b58428ce7dcb17444d863882f2db0b5be9d303b4b24150a6b24576d0f6d68baa8bfdef34f1336f554ce94353d17f91ba4254818369f0300a798167658ad
7
+ data.tar.gz: 484359c4c87bd16efabde9bc651ff341a04df54eaa378721d818a0618598c837fa1ec5932f36da4e35754b87236f2e69f0fab3100e61126929f26ded9435c617
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  _No changes yet._
4
4
 
5
+ ## [0.5.4] - 2025-08-21
6
+ ### Fixed
7
+ - Fix Rails engine configuration issue where `config.tosspayments2` was undefined
8
+ - Properly define config accessor in Rails application before using it
9
+
5
10
  ## [0.5.3] - 2025-08-21
6
11
  ### Fixed
7
12
  - Complete fix for checkout.html.erb template with proper ERB syntax and error handling
@@ -6,7 +6,12 @@ module Tosspayments2
6
6
  class Engine < ::Rails::Engine
7
7
  isolate_namespace Tosspayments2::Rails
8
8
 
9
- initializer 'tosspayments2.configure' do |app|
9
+ initializer 'tosspayments2.configure', before: :load_config_initializers do |app|
10
+ # Ensure config accessor exists
11
+ unless app.config.respond_to?(:tosspayments2)
12
+ app.config.class.send(:attr_accessor, :tosspayments2)
13
+ app.config.tosspayments2 = ActiveSupport::OrderedOptions.new
14
+ end
10
15
  app.config.tosspayments2 ||= ActiveSupport::OrderedOptions.new
11
16
  app_cfg = app.config.tosspayments2
12
17
  ::Tosspayments2::Rails.configure do |c|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tosspayments2
4
4
  module Rails
5
- VERSION = '0.5.3'
5
+ VERSION = '0.5.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tosspayments2-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucius Choi