avo-money_field 0.0.4 → 0.0.5

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: 655569e5199b518fb5dbb825bf6bdafe675d65dbb643ac1d07962322722dfc8b
4
- data.tar.gz: 8307eea78c63ed8670484c011f991cf24a9da067b3b8f475445aa5555e3d8a71
3
+ metadata.gz: db2847d919ef1db21422beb9a804c0792a830e38d1e25c5aa7d2e2e8d702c58e
4
+ data.tar.gz: b180428caac31558634e31ab63e2f9eda91ebb8d2037586b387c2748291b8ab5
5
5
  SHA512:
6
- metadata.gz: 2f995ce7c837c947da912b73d0cda93763a205dff2eede3bbcd15a84188731565056243d0a867b70949b1ce2a0423b8e3ab91775995f16ada8ea6e9b0f52ac09
7
- data.tar.gz: 1ddf279b769880b7db683d0a1fe3a382afec82e70232cf111d5d8bac83f321a8b344fd8002d0bed557c9bd7989a15b2027058af203183059d75314caf209ea0b
6
+ metadata.gz: 2e1f746d9870d8970f000c303a0a1274ae1a4ecb0ec410ba69dfbf5c15cf8a17fb673f2b6c057ebaea24941ac308c9bf29c48d7e79d6ebd32e48b2af5b5e582e
7
+ data.tar.gz: acbfb532bd83f6556c34f36ad21ca53e1b139ac8ab83e43e5e8c2e4d0488d3037ac9d79023244ff2586cffa1dff0fdb6a8a6d8ccd4c6396dd64e14cc110f7e86
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Avo Money Field
2
2
 
3
- A simple money field for https://github.com/avo-hq/avo.
3
+ A simple money field for [avo-hq/avo](https://github.com/avo-hq/avo), a Rails Admin Panel and Internal Tool Builder.
4
4
 
5
5
  Docs available at [https://docs.avohq.io/3.0/fields/money.html](https://docs.avohq.io/3.0/fields/money.html)
6
6
 
@@ -25,7 +25,7 @@ module Avo
25
25
  end
26
26
 
27
27
  def currency
28
- value.send(:currency)
28
+ value && value.send(:currency)
29
29
  end
30
30
 
31
31
  def currency_column
@@ -1,8 +1,12 @@
1
+ require_relative "fields/money_field"
2
+
1
3
  module Avo
2
4
  module MoneyField
3
5
  class Railtie < Rails::Railtie
4
6
  initializer "avo-money_field.init" do
5
- Avo.plugin_manager.register Avo::MoneyField::Plugin
7
+ ActiveSupport.on_load(:avo_boot) do
8
+ Avo.plugin_manager.register_field :money, Avo::MoneyField::Fields::MoneyField
9
+ end
6
10
  end
7
11
  end
8
12
  end
@@ -1,5 +1,5 @@
1
1
  module Avo
2
2
  module MoneyField
3
- VERSION = "0.0.4" unless const_defined?(:VERSION)
3
+ VERSION = "0.0.5" unless const_defined?(:VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo-money_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money-rails
@@ -40,14 +40,13 @@ files:
40
40
  - lib/avo/money_field/fields/money_field/index_component.rb
41
41
  - lib/avo/money_field/fields/money_field/show_component.html.erb
42
42
  - lib/avo/money_field/fields/money_field/show_component.rb
43
- - lib/avo/money_field/plugin.rb
44
43
  - lib/avo/money_field/railtie.rb
45
44
  - lib/avo/money_field/version.rb
46
45
  homepage: https://avohq.io
47
46
  licenses:
48
47
  - MIT
49
48
  metadata: {}
50
- post_install_message:
49
+ post_install_message:
51
50
  rdoc_options: []
52
51
  require_paths:
53
52
  - lib
@@ -62,8 +61,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
61
  - !ruby/object:Gem::Version
63
62
  version: '0'
64
63
  requirements: []
65
- rubygems_version: 3.4.10
66
- signing_key:
64
+ rubygems_version: 3.5.5
65
+ signing_key:
67
66
  specification_version: 4
68
67
  summary: Money field for Avo.
69
68
  test_files: []
@@ -1,16 +0,0 @@
1
- require_relative "fields/money_field"
2
-
3
- module Avo
4
- module MoneyField
5
- class Plugin < Avo::Plugin
6
- class << self
7
- def boot
8
- Avo.plugin_manager.register_field :money, Avo::MoneyField::Fields::MoneyField
9
- end
10
-
11
- def init
12
- end
13
- end
14
- end
15
- end
16
- end