shopify-money 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/.ruby-version +1 -0
- data/Gemfile.lock +234 -0
- data/README.md +26 -1
- data/dev.yml +1 -1
- data/lib/money/allocator.rb +57 -25
- data/lib/money/helpers.rb +2 -0
- data/lib/money/money.rb +70 -47
- data/lib/money/splitter.rb +115 -0
- data/lib/money/version.rb +1 -1
- data/lib/money.rb +1 -0
- data/money.gemspec +1 -1
- data/spec/allocator_spec.rb +175 -25
- data/spec/deprecations_spec.rb +1 -1
- data/spec/helpers_spec.rb +2 -2
- data/spec/money_spec.rb +79 -6
- data/spec/splitter_spec.rb +104 -0
- metadata +12 -7
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify-money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '0'
|
97
97
|
description: Manage money in Shopify with a class that wont lose pennies during division!
|
98
98
|
email: gems@shopify.com
|
99
99
|
executables:
|
@@ -106,7 +106,9 @@ files:
|
|
106
106
|
- ".github/workflows/tests.yml"
|
107
107
|
- ".gitignore"
|
108
108
|
- ".rspec"
|
109
|
+
- ".ruby-version"
|
109
110
|
- Gemfile
|
111
|
+
- Gemfile.lock
|
110
112
|
- LICENSE.txt
|
111
113
|
- README.md
|
112
114
|
- Rakefile
|
@@ -133,6 +135,7 @@ files:
|
|
133
135
|
- lib/money/parser/simple.rb
|
134
136
|
- lib/money/rails/job_argument_serializer.rb
|
135
137
|
- lib/money/railtie.rb
|
138
|
+
- lib/money/splitter.rb
|
136
139
|
- lib/money/version.rb
|
137
140
|
- lib/money_column.rb
|
138
141
|
- lib/money_column/active_record_hooks.rb
|
@@ -166,6 +169,7 @@ files:
|
|
166
169
|
- spec/rubocop_helper.rb
|
167
170
|
- spec/schema.rb
|
168
171
|
- spec/spec_helper.rb
|
172
|
+
- spec/splitter_spec.rb
|
169
173
|
homepage: https://github.com/Shopify/money
|
170
174
|
licenses:
|
171
175
|
- MIT
|
@@ -186,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
190
|
- !ruby/object:Gem::Version
|
187
191
|
version: '0'
|
188
192
|
requirements: []
|
189
|
-
rubygems_version: 3.5.
|
193
|
+
rubygems_version: 3.5.9
|
190
194
|
signing_key:
|
191
195
|
specification_version: 4
|
192
196
|
summary: Shopify's money gem
|
@@ -213,3 +217,4 @@ test_files:
|
|
213
217
|
- spec/rubocop_helper.rb
|
214
218
|
- spec/schema.rb
|
215
219
|
- spec/spec_helper.rb
|
220
|
+
- spec/splitter_spec.rb
|