tempora 0.2.8 → 0.3.0
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 +4 -4
- data/.DS_Store +0 -0
- data/lib/tempora/version.rb +1 -1
- data/lib/timeperiod.rb +10 -1
- data/tempora-0.1.0.gem +0 -0
- data/tempora-0.1.1.gem +0 -0
- data/tempora-0.1.2.gem +0 -0
- data/tempora-0.1.3.gem +0 -0
- data/tempora-0.2.0.gem +0 -0
- data/tempora-0.2.2.gem +0 -0
- data/tempora-0.2.3.gem +0 -0
- data/tempora-0.2.4.gem +0 -0
- data/tempora-0.2.5.gem +0 -0
- data/tempora-0.2.6.gem +0 -0
- data/tempora-0.2.7.gem +0 -0
- data/tempora-0.2.8.gem +0 -0
- metadata +15 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b26ce6156fcf083948d06cfdb9fb0f0520ecd57690586e31cfaf802ea904a305
|
4
|
+
data.tar.gz: c6930849639a75a0ecb7dabefea030f5732d86ceb032de8981a591a2629c2bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e193651840051b5bb6c410fbeba52a9bdd4646acdef232529d8f7bc7ae06b336f1cb273595941c64f8e2b6d09011ab092a9d4b2d926116f5e5b1dea54b79e04
|
7
|
+
data.tar.gz: 85b671fca78d8eba7a71ef5d56c8f258af43cc9d0bb4aa090c7e55799183ec1df9d561a4d28c03802d75d4fdc5f6c74bab303615addb65159688a391cd861e97
|
data/.DS_Store
ADDED
Binary file
|
data/lib/tempora/version.rb
CHANGED
data/lib/timeperiod.rb
CHANGED
@@ -22,7 +22,15 @@ module Tempora
|
|
22
22
|
def duration
|
23
23
|
(end_date - start_date).to_i + 1
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
|
+
def future?
|
27
|
+
start_date.future?
|
28
|
+
end
|
29
|
+
|
30
|
+
def past?
|
31
|
+
end_date.past?
|
32
|
+
end
|
33
|
+
|
26
34
|
def contains?(date)
|
27
35
|
range.cover?(date)
|
28
36
|
end
|
@@ -57,5 +65,6 @@ module Tempora
|
|
57
65
|
alias_method :end, :end_date
|
58
66
|
alias_method :last_day, :end_date
|
59
67
|
alias_method :length, :duration
|
68
|
+
alias_method :include?, :contains?
|
60
69
|
end
|
61
70
|
end
|
data/tempora-0.1.0.gem
ADDED
Binary file
|
data/tempora-0.1.1.gem
ADDED
Binary file
|
data/tempora-0.1.2.gem
ADDED
Binary file
|
data/tempora-0.1.3.gem
ADDED
Binary file
|
data/tempora-0.2.0.gem
ADDED
Binary file
|
data/tempora-0.2.2.gem
ADDED
Binary file
|
data/tempora-0.2.3.gem
ADDED
Binary file
|
data/tempora-0.2.4.gem
ADDED
Binary file
|
data/tempora-0.2.5.gem
ADDED
Binary file
|
data/tempora-0.2.6.gem
ADDED
Binary file
|
data/tempora-0.2.7.gem
ADDED
Binary file
|
data/tempora-0.2.8.gem
ADDED
Binary file
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Power
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: i18n
|
@@ -31,6 +31,7 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".DS_Store"
|
34
35
|
- LICENSE.txt
|
35
36
|
- README.md
|
36
37
|
- Rakefile
|
@@ -50,6 +51,18 @@ files:
|
|
50
51
|
- lib/week.rb
|
51
52
|
- lib/year.rb
|
52
53
|
- sig/tempus.rbs
|
54
|
+
- tempora-0.1.0.gem
|
55
|
+
- tempora-0.1.1.gem
|
56
|
+
- tempora-0.1.2.gem
|
57
|
+
- tempora-0.1.3.gem
|
58
|
+
- tempora-0.2.0.gem
|
59
|
+
- tempora-0.2.2.gem
|
60
|
+
- tempora-0.2.3.gem
|
61
|
+
- tempora-0.2.4.gem
|
62
|
+
- tempora-0.2.5.gem
|
63
|
+
- tempora-0.2.6.gem
|
64
|
+
- tempora-0.2.7.gem
|
65
|
+
- tempora-0.2.8.gem
|
53
66
|
homepage: https://github.com/max-power/tempora
|
54
67
|
licenses:
|
55
68
|
- MIT
|