tempora 0.2.2 → 0.2.3

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: 89b87271bfd8ca786ad770cdeb844a192d657363dcb55585edb5cc1b7d043714
4
- data.tar.gz: 754ec4aad6c5c5ef115eea19ac6f01767d4cda2e8ba97cfb07aa72c4566d40d6
3
+ metadata.gz: b630dbc05e1a683a8369f67134b1e932ff63e09fc80b245cbdbd3941e0a023cb
4
+ data.tar.gz: 160c210a40b0991ee446242aa6a2fa1a848828466ed82aa76e61a284e7f4a0b6
5
5
  SHA512:
6
- metadata.gz: 6b75b131397179c4538cbe45bf10cec72ac8308d5e7b4297b2addbff3fd7fc707c0d96a70903d6fd8fe843138eb12b9051a9152b334ecb82fc31f90e1285d5b7
7
- data.tar.gz: cb06dffbdb7f4f5df64732f689c230d52cc492040b6e78b1fbd814c50fe761bd0333d6b6d7520585c1102fcc8cec47108eebcf65d1cd30e3bde5cd84cdc72829
6
+ metadata.gz: 6bb2d6bf2ba656c6f55c894a5f9145f76a989263f7d71911a8930b7b883839b3b4b8197868b1edc305229f61645ba6ca0d4bc15d953fdf03801a98a81bd7e5dc
7
+ data.tar.gz: 52cb48a2a9e9534aa08fff490403125f04d0b03cce7ef4a7b3f03c2bfc4acbc7498654ca8059d21ec00ae43020504f68ca59d88f27c5a7ecd93d1d8df3d97a0d
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tempora
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
data/lib/timeperiod.rb CHANGED
@@ -48,8 +48,10 @@ module Tempora
48
48
  start_date <=> other.start_date
49
49
  end
50
50
 
51
- alias_method :begin, :start_date
52
- alias_method :end, :end_date
53
- alias_method :length, :duration
51
+ alias_method :begin, :start_date
52
+ alias_method :first_day, :start_date
53
+ alias_method :end, :end_date
54
+ alias_method :last_day, :end_date
55
+ alias_method :length, :duration
54
56
  end
55
57
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Power
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-19 00:00:00.000000000 Z
10
+ date: 2025-02-20 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Tempora is a lightweight Ruby library for handling months, weeks, quarters,
13
13
  and years with intuitive date-based calculations and range support.