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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55605292daf7d56f71dc210b4c607ebceeb0aa1be1bc464ba73d82ce26583c4a
4
- data.tar.gz: 256c9dd132265a9d7b36ac7a144c516b06d5c298f9a8e8fb8ac29e1fe2a7bc53
3
+ metadata.gz: 01bbfc45999ccc7c458c48f5131a8476271e50e8b166e819d53371768a43fa51
4
+ data.tar.gz: 455dd466af400747d3d7bcb97fec8f4a9f87abd5db12d52395bc04a0c4edfcc5
5
5
  SHA512:
6
- metadata.gz: b7a93a60e2cfd438b9b9ef9b52bf1c1a06e07c329bf3e86d3e8ef2253a5bf96c8bbbb390c5258b5250d71e0f87d6669b1088c1b7d10a3bebac0ad9809dc4f638
7
- data.tar.gz: 5fc7e9f8a1d202e84caf771498a5758023a8aa16a240e6490108eb31d73507889857ca40a2db00309a78f7c15de34f16db1a334037bc44cd684531bac8d73053
6
+ metadata.gz: 38af1efd8c2d88d6b5f9e0b2e98461bcb44dfa8a9f3b45e4fd665bc05707331d02055aa32e473c0debd0d6c8e7a9b9290a6a920d7d2bddf18b38fbfc156497ef
7
+ data.tar.gz: b07bcdda58dfcc654219c5106c96af6f93f943b55e5aa3f20777d6dd57eacb9e166bb524be5c3e2720c7d4c7f8b95b9ce344272796ac47ef7124a78b4c2ea608
@@ -3,6 +3,7 @@
3
3
  require "thor"
4
4
  require "time"
5
5
  require "date"
6
+ require "active_support"
6
7
  require "active_support/core_ext/date"
7
8
  require "active_support/core_ext/integer"
8
9
  require "active_support/core_ext/time"
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "date"
4
4
  require "time"
5
+ require "active_support"
5
6
  require "active_support/core_ext/time"
6
7
  require "active_support/core_ext/date"
7
8
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support"
3
4
  require "active_support/core_ext/numeric/time"
4
5
  require "active_support/core_ext/integer/time"
5
6
 
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
- t = date_or_time.respond_to?(:to_time) ? date_or_time.to_time : date_or_time
38
- d = t.to_date
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
 
@@ -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
@@ -4,7 +4,7 @@
4
4
  # Under Rails, Zeitwerk autoloads lib/flycal/*.
5
5
  # The CLI gem entrypoint (flycal_cli/lib/flycal_cli.rb) eager-requires what it needs.
6
6
  module Flycal
7
- VERSION = "1.2"
7
+ VERSION = "1.2.1"
8
8
 
9
9
  def self.connect(credentials:)
10
10
  Client.new(credentials: credentials)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flycal-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - flycal-cli