flycal-cli 1.2 → 1.2.1
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/lib/flycal/cli/app.rb +1 -0
- data/lib/flycal/date_time_parser.rb +1 -0
- data/lib/flycal/duration_parser.rb +1 -0
- data/lib/flycal/locale.rb +2 -2
- data/lib/flycal/time_format.rb +4 -0
- data/lib/flycal.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01bbfc45999ccc7c458c48f5131a8476271e50e8b166e819d53371768a43fa51
|
|
4
|
+
data.tar.gz: 455dd466af400747d3d7bcb97fec8f4a9f87abd5db12d52395bc04a0c4edfcc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38af1efd8c2d88d6b5f9e0b2e98461bcb44dfa8a9f3b45e4fd665bc05707331d02055aa32e473c0debd0d6c8e7a9b9290a6a920d7d2bddf18b38fbfc156497ef
|
|
7
|
+
data.tar.gz: b07bcdda58dfcc654219c5106c96af6f93f943b55e5aa3f20777d6dd57eacb9e166bb524be5c3e2720c7d4c7f8b95b9ce344272796ac47ef7124a78b4c2ea608
|
data/lib/flycal/cli/app.rb
CHANGED
data/lib/flycal/locale.rb
CHANGED
|
@@ -34,8 +34,8 @@ module Flycal
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def format_long_date(date_or_time)
|
|
37
|
-
|
|
38
|
-
d =
|
|
37
|
+
# Calendar date in the value's own zone — not TimeWithZone#to_time (system TZ / AS 8.1).
|
|
38
|
+
d = Date.new(date_or_time.year, date_or_time.month, date_or_time.day)
|
|
39
39
|
"#{day_abbr(d).downcase} #{d.day} #{month_name(d)} #{d.year}"
|
|
40
40
|
end
|
|
41
41
|
|
data/lib/flycal/time_format.rb
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
require "time"
|
|
4
4
|
require "date"
|
|
5
|
+
# Full ActiveSupport, not only active_support/time: AS 8.1 reads
|
|
6
|
+
# ActiveSupport.utc_to_local_returns_utc_offset_times in TimeZone#utc_to_local,
|
|
7
|
+
# and that accessor lives on the main active_support.rb.
|
|
8
|
+
require "active_support"
|
|
5
9
|
require "active_support/time"
|
|
6
10
|
|
|
7
11
|
module Flycal
|
data/lib/flycal.rb
CHANGED