minting-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 281304a9f89250f78bee993b5b4eaec8e675a4f5f8487a91a16a71c52df1ef04
4
- data.tar.gz: 861df162c0953c9ba0893778b3805da34fe42ec98485498531eaa48b5cf16be2
3
+ metadata.gz: 28adcfea7e870cae7556ea935d7365e0857c3913396128ecfbc8f96087094e84
4
+ data.tar.gz: f7302a98df24aa948da5e4d8043948346068717438fa5ce40f58745ce4d45897
5
5
  SHA512:
6
- metadata.gz: 1fd2c46e7fa9e8d0a8ea579fe2880af82676518d624b04276f04adaea77826c9c04dd281a4508463a158d823561f6d2502677d217d2526a3873ef6cb0ea05e97
7
- data.tar.gz: 9186adb993e282d4dc39008d6bb0b32013cdf1c4d267197e920478e7f89b4a21d56b709eca59bd67f28da28e4c39e23c83552ccddf9807a632500d2b33465458
6
+ metadata.gz: 57c6b59ebc5b927fef253e10b7755bc0e8167ce4cf7280fee6157b9df51b25b20e96149f1709a99b76cd3abba3afdb5447a3f47a739450360416caa59412139e
7
+ data.tar.gz: 2a33a5dde47d0667680754b5aa4d01f51d01030ea29111408094566e72d1404234bdbb64de42e6fa58e99eee531f32c44147fadfa40ff37d08f51e576503e0b0
@@ -21,10 +21,6 @@ module Mint
21
21
  end
22
22
 
23
23
  def self.valid_currency_codes
24
- @valid_currency_codes ||= if config.enabled_currencies == :all
25
- Mint.currencies
26
- else
27
- config.enabled_currencies.to_set
28
- end
24
+ config.enabled_currencies == :all ? Mint.currencies.keys : config.enabled_currencies
29
25
  end
30
26
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mint
4
4
  module MoneyAttribute
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -5,5 +5,11 @@ module Mint
5
5
  generators do
6
6
  require 'generators/minting/initializer_generator'
7
7
  end
8
+
9
+ config.to_prepare do
10
+ Mint.config.added_currencies do |currency_data|
11
+ Mint.register_currency(*currency_data)
12
+ end
13
+ end
8
14
  end
9
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minting-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilson Ferraz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 7.1.3.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: minting
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0.3'
27
41
  description: ''
28
42
  email:
29
43
  - gilson@cesar.etc.br