money_with_date 0.1.0 → 0.2.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: 6a911f2070a7b2f664aa55b706b25c60cb2bca163edae6d486fe2453f4195c0b
4
- data.tar.gz: f1622c8bba8fa245391d495172df0fad151670abc1067ae95408078dbc8c7bcf
3
+ metadata.gz: 19a3520f2cff5cb626afdfdc78e11fb523ad404dfe43ebe95dcb62f42d4e4a39
4
+ data.tar.gz: dcc7d487825b89ae67974aadff50047ae93054a3dfc5f3bfc555eb44b80e60c1
5
5
  SHA512:
6
- metadata.gz: bf1e0503e40b67256656889b317f0199fafac3c8486b0764656afd618e063b7de66e91006e40a9e097e17b09e20f3021431d72410d31f25953106ad2f38d317f
7
- data.tar.gz: f511459facf2b7670b6040e0d87a8cea0aa5d6fdf899d7f0e2e89720400ae540a2f7c720a6c023563d9eabc6b3533d69ba11a7807f179355aa4af16a2b17826d
6
+ metadata.gz: 45923e5ffc8d54de1296fd6e07d42ff34785509c13a08b223d7d45d8b7f483c35076dfb5a98fdbde054a0c80632a709fc715eb8663c3cc28d20bf2b43161df6b
7
+ data.tar.gz: 25660ea4172f74c68ce085708171ae817b6c3fb6715d0cac616c378d1e4f2286d7bbbe3ec1b01f35c1d974903fb69990a465c44007000265f14521e4c81f0084
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2022-09-16
4
+
5
+ - Make the gem work without money-rails ([#2](https://github.com/infinum/money_with_date/pull/2))
6
+ - Update Rails versions in CI workflow ([#3](https://github.com/infinum/money_with_date/pull/3))
7
+
3
8
  ## [0.1.0] - 2022-02-18
4
9
 
5
- - Initial release
10
+ - Initial release ([#1](https://github.com/infinum/money_with_date/pull/1))
data/README.md CHANGED
@@ -338,11 +338,11 @@ Money.default_date_column = nil
338
338
 
339
339
  The gem has been tested against all possible combinations of supported Ruby, Rails, money, and money-rails versions:
340
340
  - Ruby: `2.6`, `2.7`, `3.0`, and `3.1`
341
- - Rails: `5.2.6.2`, `6.0.4.6`, `6.1.4.6`, and `7.0.2.2`
341
+ - Rails: `5.2.8.1`, `6.0.6`, `6.1.7`, `7.0.4`
342
342
  - money: `6.14.0`, `6.14.1`, and `6.16.0`
343
343
  - money-rails: `1.15.0`
344
344
 
345
- Note: the gem hasn't been tested on Rails `5.2.6.2` with Rubies `3.0` and `3.1`, and on Rails `7.0.2.2` with Ruby `2.6` as those combinations of versions aren't compatible.
345
+ Note: the gem hasn't been tested on Rails `5.2.8.1` with Rubies `3.0` and `3.1`, and on Rails `7.0.4` with Ruby `2.6` as those combinations of versions aren't compatible.
346
346
 
347
347
  In addition to running its own test suite, the CI for this gem also runs [money's](https://github.com/RubyMoney/money/tree/main/spec) and [money-rails's](https://github.com/RubyMoney/money-rails/tree/main/spec) test suites with this gem loaded, to prevent regressions. This has been achieved by cloning their test suites from GitHub and requiring this gem in their spec files. For technical information, check the CI [workflow](.github/workflows/ci.yml).
348
348
 
@@ -19,7 +19,7 @@ module MoneyWithDate
19
19
  def hash
20
20
  return super unless ::Money.date_determines_equality
21
21
 
22
- [fractional.hash, currency.hash, date.hash].hash
22
+ [fractional.hash, currency.hash, date.hash].hash # rubocop:disable Security/CompoundHash
23
23
  end
24
24
 
25
25
  def inspect
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MoneyWithDate
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
 
6
6
  MINIMUM_MONEY_VERSION = "6.14.0"
7
7
  MINIMUM_MONEY_RAILS_VERSION = "1.15.0"
@@ -16,5 +16,5 @@ require_relative "money_with_date/rates_store/memory"
16
16
  ::Money.date_determines_equality = false
17
17
  ::Money.default_date = ::Date.respond_to?(:current) ? -> { ::Date.current } : -> { ::Date.today }
18
18
 
19
- require "money_with_date/railtie" if defined?(::Rails::Railtie)
19
+ require "money_with_date/railtie" if defined?(::Rails::Railtie) && defined?(::MoneyRails)
20
20
  # :nocov:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money_with_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Bikić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-18 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.2.3
168
+ rubygems_version: 3.3.7
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Extension for the money gem which adds dates to Money objects