coaster 1.4.8 → 1.4.9

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: 41ba0c483410b98c561f02ad57afa970110a369b35c0cb407b9bde9e5a333013
4
- data.tar.gz: 651ba61b273861c59b6ed676a4e85a88ada811ca1daa59282075dde6a1bf7bce
3
+ metadata.gz: cd02d4d524a7b1c3fad6328bd31adf80c7d3540341336313dfcc52ffd1232ed7
4
+ data.tar.gz: fb3111b56584d927770b05975e1e14993cb030574e35292b41681ff53f28601e
5
5
  SHA512:
6
- metadata.gz: 864c6e513179cae78a768acc6335752c5dba18f4bd6110ea58613b0b51dc0ad5c19ff3cfcf7171133f1db8041b09cabc196dc976113451cefc51ad5cd1d7317c
7
- data.tar.gz: 3b067f4ae39fd0bb24f91b0dc0f2ce813b57fe8e132c842f6b9023a860c91edcdd99f54e925aeb4f94837cea80101e2043d370b653cefede3a7b11a714391ecd
6
+ metadata.gz: 11e0b6c6e5f82dff03a1b2d197593ac04461543fa622957c45b84daecfff09f6c1f422b3675d541144af2fbc6a935babed9893fce2ba2dcf7bb548f0aa3af7ae
7
+ data.tar.gz: 2d5f399653022620e521464414d3231795b946180ad62a43d56d18bf680dacd633137e8fdf9b3141f822a73c1365d3f8f8e5dc19efb0a5e8967cc013d7e6bd5a
@@ -140,4 +140,12 @@ class Month
140
140
  def succ
141
141
  later
142
142
  end
143
+
144
+ def hash
145
+ first_date.hash
146
+ end
147
+
148
+ def eql?(other)
149
+ other.is_a?(Month) && first_date == other.first_date
150
+ end
143
151
  end
@@ -1,3 +1,3 @@
1
1
  module Coaster
2
- VERSION = '1.4.8'
2
+ VERSION = '1.4.9'
3
3
  end
data/test/test_month.rb CHANGED
@@ -68,5 +68,10 @@ module Coaster
68
68
  range = (mn..mn)
69
69
  assert range.cover?(Month.from(Date.today))
70
70
  end
71
+
72
+ def test_hash
73
+ h = {Month.now => 1}
74
+ assert_equal h[Month.now], 1
75
+ end
71
76
  end
72
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.8
4
+ version: 1.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - buzz jung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj