date_values 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c3fb888a1c6c05e7c93daa93a9f437d0314aba58532b18004e43e30e7cd746f
4
- data.tar.gz: d8b9bf436a909859ed79f287b47dbc654a70487e0abda94357f74cad8368b96b
3
+ metadata.gz: 181153f66247746e8d63f02fd40158b925b96140920c7cba426ff1d4c2f45bb4
4
+ data.tar.gz: d76544bde02e948d172fb99e1d1400192298795157870e347013674eed02df21
5
5
  SHA512:
6
- metadata.gz: 4f51c14f83d7ffc5e54dc68b396a294a32dcc57c986ec282983a81724f22cf5373fbe512e9699e29d1b9d4b3d7340669ddfec1a8338bc887fd7d69dc8f28c1f8
7
- data.tar.gz: 4ec4caa7581281fe1269fae60f7538e44b9459c808307c153df4372ab79e110c5a98c55c8aa9138c1aa573ec6108c9580633fd1a2077d8735f7b47682e5bd459
6
+ metadata.gz: 492328179c7e93b7958da101182fadad0d17b7aa2a96361b3251a98f614a93f2be0dbfa8960ccfbf81a62a4004ee0ad1a272e0a20e47acbc355cdc90162b4b34
7
+ data.tar.gz: 2ca3108c98a65cd1d8e742ca2073b090e1491135d5d392462f84130d892db04ce015ba61fddf367ec8bbdc134ab6cd793870e814409a641b9f7b6004f636c76c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.4] - 2026-04-01
4
+
5
+ - Remove `YearMonth#to_date_range` — use `ym.to_date.in_time_zone.all_month` instead
6
+
3
7
  ## [0.2.3] - 2026-03-31
4
8
 
5
9
  - Add `YearMonth#to_date_range` — returns an exclusive `Date` range for the month, ideal for ActiveRecord queries on timestamp columns
data/README.md CHANGED
@@ -23,7 +23,6 @@ include DateValues
23
23
  ym = YearMonth.new(2026, 3)
24
24
  ym.to_s # => "2026-03"
25
25
  ym.to_date # => #<Date: 2026-03-01>
26
- ym.to_date_range # => 2026-03-01...2026-04-01
27
26
  ym.days # => 31
28
27
 
29
28
  YearMonth.from(Date.today) # => #<DateValues::YearMonth 2026-03>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DateValues
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
@@ -65,10 +65,6 @@ module DateValues
65
65
  to_date.strftime(format)
66
66
  end
67
67
 
68
- def to_date_range
69
- to_date...(self + 1).to_date
70
- end
71
-
72
68
  def to_date
73
69
  Date.new(year, month, 1)
74
70
  end
data/sig/date_values.rbs CHANGED
@@ -40,8 +40,6 @@ module DateValues
40
40
 
41
41
  def strftime: (String format) -> String
42
42
 
43
- def to_date_range: () -> Range[Date]
44
-
45
43
  def to_date: () -> Date
46
44
 
47
45
  def as_json: (*untyped) -> String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_values
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Urashima