icalendar-recurrence 1.2.0 → 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/.github/workflows/main.yml +3 -3
- data/CHANGELOG.md +4 -0
- data/lib/icalendar/recurrence/time_util.rb +6 -1
- data/lib/icalendar/recurrence/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63f250f25a8343efa18c4ef48d0df4cdd5c64788f18955be18cd4a8aeacc2e00
|
|
4
|
+
data.tar.gz: 3d756b812cbd392f91801496f63202c25aaf49d043c4c1547a87835a05ee4989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bad755f7b955d119a1aa052d5c74a2d7598f1ddc5e162fe303da056fe602428d662cce3013a8965bff2fed3fccaef4cface131c54346af73da15d2e20b37f4f0
|
|
7
|
+
data.tar.gz: 51857364b18289b65c3ca89c486661f3e7cf2d0efdd8a5375774e5fcc7267fe503e38100e57731d248c5a2fdef934109f754c838f1736ce7ad2a8aacf6209810
|
data/.github/workflows/main.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -26,7 +26,12 @@ module Icalendar
|
|
|
26
26
|
if supported_time_object?(time_object)
|
|
27
27
|
time_object
|
|
28
28
|
elsif supported_icalendar_object?(time_object)
|
|
29
|
-
|
|
29
|
+
if !defined?(ActiveSupport) || Gem::Version.new(ActiveSupport::VERSION::STRING) < Gem::Version.new('7.2')
|
|
30
|
+
time_object.value
|
|
31
|
+
else
|
|
32
|
+
# Preserve the timezone of the time_object
|
|
33
|
+
time_object.value.to_time.in_time_zone(time_object.value.time_zone)
|
|
34
|
+
end
|
|
30
35
|
elsif supported_datetime_object?(time_object)
|
|
31
36
|
datetime_to_time(time_object, options)
|
|
32
37
|
elsif supported_date_object?(time_object)
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: icalendar-recurrence
|
|
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
|
- Jordan Raine
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: icalendar
|
|
@@ -150,7 +149,6 @@ dependencies:
|
|
|
150
149
|
- - "~>"
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: '0.9'
|
|
153
|
-
description:
|
|
154
152
|
email:
|
|
155
153
|
- jnraine@gmail.com
|
|
156
154
|
executables: []
|
|
@@ -203,7 +201,6 @@ homepage: https://github.com/icalendar/icalendar-recurrence
|
|
|
203
201
|
licenses:
|
|
204
202
|
- MIT
|
|
205
203
|
metadata: {}
|
|
206
|
-
post_install_message:
|
|
207
204
|
rdoc_options: []
|
|
208
205
|
require_paths:
|
|
209
206
|
- lib
|
|
@@ -218,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
218
215
|
- !ruby/object:Gem::Version
|
|
219
216
|
version: '0'
|
|
220
217
|
requirements: []
|
|
221
|
-
rubygems_version: 3.
|
|
222
|
-
signing_key:
|
|
218
|
+
rubygems_version: 3.6.9
|
|
223
219
|
specification_version: 4
|
|
224
220
|
summary: Provides recurrence to icalendar gem.
|
|
225
221
|
test_files:
|