tempora 0.2.8 → 0.2.9

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: 6d9358f467592f1e0fdf62f626c4dbc06da338e096580b8938de754779534398
4
- data.tar.gz: 374e6211feeacbd7ba6a7ffd2881a814d55c7ee7ad8a3cfdb21872be4710eb8f
3
+ metadata.gz: 2b36f901b4949d2aad2653c7b2d14b80b8c30b20ce48156bfd81931bfb9c7d73
4
+ data.tar.gz: 3bfa3b248c73c981ee58481daaeb8d05dcae1acca19dd711310e955fde2d9374
5
5
  SHA512:
6
- metadata.gz: fbe6aba305dd315b0bf202ae488fe98dcd4ec5ea63f7895bd4318879322cdc02011e83f7414803ddd6e4f85e5808b934688987abce1ddfe712267147a257fb6a
7
- data.tar.gz: 5afdd637943e31e1a48f648c7ab01d53510caf43fb99c82503fdcf5a123ba7b377ee11e36371684b0346d34dff8438198003ca5d577be7c394f60c5031d858d3
6
+ metadata.gz: 56076ae7f9b8e0bb7de91def99985b8d9a90bf94c87eb2f39e6ad8d521d0e3358508d4a844f706a06b719160212f96d7217827ef52b4c81efa7b1622b57b4da0
7
+ data.tar.gz: accd1aca27f12f536cc0c731a57ecf6d0d56df12e7278a801372195cea9a92debf0d7768aed6084bf35bedba9510f5e40a89cda9f31b28ad0f4a1440ff2d1b6b
data/.DS_Store ADDED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tempora
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.9"
5
5
  end
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.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Power
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-18 00:00:00.000000000 Z
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