avo-money_field 0.0.1 → 0.0.2

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: cf6df3e68f4d47bcfe34a7ab5edb31c0f96cbf3648229d76e7ea96a0d6e51a58
4
- data.tar.gz: fa4b46449d39734e5c5244fb9ba73b8e5ae64b777065d775758206bc20413573
3
+ metadata.gz: 257da427576ab32992dc00e71a7266a5110f1ccc831169dc1ff2e00a7f46f710
4
+ data.tar.gz: e45745630299684ef1137bba087941501d795bed94aa139f0447c72197652129
5
5
  SHA512:
6
- metadata.gz: 0b0bf1ee72b7496aee9be4eb5afcf6e3486911b38a836d4f29ab4397178dd8a133a9cd58857c0fd03b266a538c534595fac178d87d36425775d019930fc47b14
7
- data.tar.gz: 3e7a47c3e9294d6d84a943ccedaef051c5dd2b5089ecccd84a2cf11bd92dffb7344086fd9614004bc08367d0880c7fa8ad9c6d6c7f1b5829234420a789de6b39
6
+ metadata.gz: 7408c2125753a952fe59cef669386771901b5d45613efdff0d763c8fe258ede9e4422af06df3f72cb87c01e769a296c2f07d8909b17e09faef7101c58a407132
7
+ data.tar.gz: c0a86f1bb371867d52c55dc5c3d3ceff21fcf0ce5f65223b49c26b016a54b94b0c5937f5423da19445855eb1fcdf6e7afd4fc6e66609a34c152d45ba80127c54
data/README.md CHANGED
@@ -1,3 +1,12 @@
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 https://github.com/avo-hq/avo.
4
+
5
+ Docs available at [https://docs.avohq.io/3.0/fields/money.html](https://docs.avohq.io/3.0/fields/money.html)
6
+
7
+ ## Usage
8
+
9
+ ```ruby
10
+ field :price, as: :money, currencies: %w[EUR USD RON PEN]
11
+ ```
12
+
@@ -15,4 +15,6 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.homepage = "https://avohq.io"
17
17
  spec.license = "MIT"
18
+
19
+ spec.add_dependency "money-rails"
18
20
  end
@@ -9,7 +9,6 @@ module Avo
9
9
  end
10
10
 
11
11
  def init
12
- # Avo.plugin_manager.register_field :money, Avo::MoneyField::Fields::MoneyField
13
12
  end
14
13
  end
15
14
  end
@@ -1,5 +1,5 @@
1
1
  module Avo
2
2
  module MoneyField
3
- VERSION = "0.0.1" unless const_defined?(:VERSION)
3
+ VERSION = "0.0.2" unless const_defined?(:VERSION)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo-money_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2024-04-09 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: money-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: Money field for Avo.
14
28
  email: adrian@adrianthedev.com
15
29
  executables: []