icalendar 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/History.txt +4 -0
- data/icalendar.gemspec +5 -3
- data/lib/icalendar/parser.rb +5 -1
- data/lib/icalendar/tzinfo.rb +2 -2
- data/lib/icalendar/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cc6bb6eba99ce8e25232bb417cb9f3c5e9438b20a56a4a136e9b0d2f9a71b7c
|
4
|
+
data.tar.gz: f9022e04c0aad637791e0c964f6c27eef986f610bc2417c5f70b85ec65275445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bd684301596f90024af2a690f7cbc20bdba2d02a902105fddc298a4108ac23825d444c2658dace796146cc0581c88ef2c6e62e229d4fa89ff2e89d8ac41eadb
|
7
|
+
data.tar.gz: e62e5f8f4fe3983d19cf213c505fe8f9f002cf7e0b1054a958af4874eddaf376b80660a3e3d1b6cac50cab96a0535169738adf443f5fcc982c318750f5f16200
|
data/.travis.yml
CHANGED
data/History.txt
CHANGED
data/icalendar.gemspec
CHANGED
@@ -29,16 +29,18 @@ ActiveSupport is required for TimeWithZone support, but not required for general
|
|
29
29
|
s.add_dependency 'ice_cube', '~> 0.16'
|
30
30
|
|
31
31
|
s.add_development_dependency 'rake', '~> 12.0'
|
32
|
-
s.add_development_dependency 'bundler', '~>
|
32
|
+
s.add_development_dependency 'bundler', '~> 2.0'
|
33
33
|
|
34
|
-
# test with
|
34
|
+
# test with all groups of tzinfo dependencies
|
35
|
+
# tzinfo 2.x
|
36
|
+
# s.add_development_dependency 'tzinfo', '~> 2.0'
|
37
|
+
# s.add_development_dependency 'tzinfo-data', '~> 1.2018'
|
35
38
|
# tzinfo 1.x
|
36
39
|
s.add_development_dependency 'activesupport', '~> 5.2'
|
37
40
|
s.add_development_dependency 'i18n', '~> 1.1'
|
38
41
|
s.add_development_dependency 'tzinfo', '~> 1.2'
|
39
42
|
s.add_development_dependency 'tzinfo-data', '~> 1.2018'
|
40
43
|
# tzinfo 0.x
|
41
|
-
# s.add_development_dependency 'activesupport', '~> 4.0'
|
42
44
|
# s.add_development_dependency 'i18n', '~> 0.7'
|
43
45
|
# s.add_development_dependency 'tzinfo', '~> 0.3'
|
44
46
|
# end tzinfo
|
data/lib/icalendar/parser.rb
CHANGED
@@ -172,7 +172,11 @@ module Icalendar
|
|
172
172
|
end
|
173
173
|
end
|
174
174
|
end
|
175
|
-
|
175
|
+
# Building the string to send to the logger is expensive.
|
176
|
+
# Only do it if the logger is at the right log level.
|
177
|
+
if ::Logger::DEBUG >= Icalendar.logger.level
|
178
|
+
Icalendar.logger.debug "Found fields: #{parts.inspect} with params: #{params.inspect}"
|
179
|
+
end
|
176
180
|
{
|
177
181
|
name: parts[:name].downcase.gsub('-', '_'),
|
178
182
|
params: params,
|
data/lib/icalendar/tzinfo.rb
CHANGED
@@ -61,7 +61,7 @@ module Icalendar
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def rrule
|
64
|
-
start = local_start.to_datetime
|
64
|
+
start = (respond_to?(:local_start_at) ? local_start_at : local_start).to_datetime
|
65
65
|
# this is somewhat of a hack, but seems to work ok
|
66
66
|
# assumes that no timezone transition is in law as "4th X of the month"
|
67
67
|
# but only as 1st X, 2nd X, 3rd X, or Last X
|
@@ -76,7 +76,7 @@ module Icalendar
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def dtstart
|
79
|
-
local_start.to_datetime.strftime '%Y%m%dT%H%M%S'
|
79
|
+
(respond_to?(:local_start_at) ? local_start_at : local_start).to_datetime.strftime '%Y%m%dT%H%M%S'
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
data/lib/icalendar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icalendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Ahearn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ice_cube
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,8 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
260
|
- !ruby/object:Gem::Version
|
261
261
|
version: '0'
|
262
262
|
requirements: []
|
263
|
-
|
264
|
-
rubygems_version: 2.7.6
|
263
|
+
rubygems_version: 3.0.1
|
265
264
|
signing_key:
|
266
265
|
specification_version: 4
|
267
266
|
summary: A ruby implementation of the iCalendar specification (RFC-5545).
|