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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d8af55548918f31a965cd6bb855b7a85ed23ebf64a3387ea10f7ef83c4df0b5
4
- data.tar.gz: 85a6ce28d96b1e7c830091b0782e15e515a41cea1556af30d0d29cadac215ec2
3
+ metadata.gz: 5cc6bb6eba99ce8e25232bb417cb9f3c5e9438b20a56a4a136e9b0d2f9a71b7c
4
+ data.tar.gz: f9022e04c0aad637791e0c964f6c27eef986f610bc2417c5f70b85ec65275445
5
5
  SHA512:
6
- metadata.gz: 37c2b1f00e479da82a795b52fe82e635ef46f3ea5e62552860107f0d61ec0f5866871334c31b14034e59f29498086eb338f6198313366877bc9b01cd7e9206f3
7
- data.tar.gz: 7338852a7e3dd937c01547b6ed431bfc9ac142deb8238d1cded8d5ae37f23b1dcb61b412e21308bd40788fa497ddd13bc0bb89d36ae56587c9cbd0f6cf3b107c
6
+ metadata.gz: 2bd684301596f90024af2a690f7cbc20bdba2d02a902105fddc298a4108ac23825d444c2658dace796146cc0581c88ef2c6e62e229d4fa89ff2e89d8ac41eadb
7
+ data.tar.gz: e62e5f8f4fe3983d19cf213c505fe8f9f002cf7e0b1054a958af4874eddaf376b80660a3e3d1b6cac50cab96a0535169738adf443f5fcc982c318750f5f16200
@@ -3,6 +3,7 @@ before_install:
3
3
  - gem install bundler
4
4
  language: ruby
5
5
  rvm:
6
+ - 2.6
6
7
  - 2.5
7
8
  - 2.4
8
9
  - 2.3
@@ -1,3 +1,7 @@
1
+ === 2.5.3 2019-03-04
2
+ * Improve parsing performance - nehresma
3
+ * Support tzinfo 2.0 - Misty De Meo
4
+
1
5
  === 2.5.2 2018-12-08
2
6
  * Remove usage of the global TimezoneStore instance, in favor of a local variable in the parser
3
7
  * Deprecate TimezoneStore class methods
@@ -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', '~> 1.16'
32
+ s.add_development_dependency 'bundler', '~> 2.0'
33
33
 
34
- # test with both groups of tzinfo dependencies
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
@@ -172,7 +172,11 @@ module Icalendar
172
172
  end
173
173
  end
174
174
  end
175
- Icalendar.logger.debug "Found fields: #{parts.inspect} with params: #{params.inspect}"
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,
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Icalendar
2
2
 
3
- VERSION = '2.5.2'
3
+ VERSION = '2.5.3'
4
4
 
5
5
  end
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.2
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: 2018-12-08 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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
- rubyforge_project:
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).