icalendar 2.1.0 → 2.1.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
  SHA1:
3
- metadata.gz: 6c07cb44a5b8dbadde6af51cb95b71d75408858c
4
- data.tar.gz: 773a5f580d8a7350d74cd5fc3aa59036fdfc05db
3
+ metadata.gz: 2962f7c7001cbc2bdcda2edce835db80b7987be9
4
+ data.tar.gz: 443602bd7933214e17ef4a083bce5004952b099a
5
5
  SHA512:
6
- metadata.gz: e824ccc36a181ba05a8fbeedf2d204e911a79806f6dfb5cc1dadc9a4afc8b5fdba3e6c3e0d4f5a11f64f4d708e26d5c487585bfde81570e1ad887cbabd9a02cd
7
- data.tar.gz: 68c8dbb2b6a45b6b333c856c373bf26eb66ac8b7b57e25f9e94271346e2e2bbeb56237df915b1575aea56780e6faa2af892a6943c3cbb9d0fa4429da422aa67f
6
+ metadata.gz: 9233eda8abd935a3f515c46125a89b489bbff45e3fd5571abb6b01102f019f6f80d5cc1b8189d18e522f89337cb248be7b88d50d6bfb3b0f1029d5d462da32af
7
+ data.tar.gz: d3cc60211692b14e71edd51dc0cd220a240a4615f50b9b371f8064bf809f33f501dc4fa9da5e0380555295bab3b161555bb2a9ef705896a13973fb4934f7221c
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.1.1 2014-07-23
2
+ * Quiet TimeWithZone support logging
3
+ * Use SecureRandom.uuid - antoinelyset
4
+
1
5
  === 2.1.0 2014-06-17
2
6
  * Enable parsing all custom properties, not just X- prefixed ones
3
7
  Requires non-strict parsing
data/README.md CHANGED
@@ -233,6 +233,9 @@ Parsing iCalendars
233
233
  puts "start date-time timezone: #{event.dtstart.ical_params['tzid']}"
234
234
  puts "summary: #{event.summary}"
235
235
 
236
+ You can also create a `Parser` instance directly, this can be used to disable
237
+ the strict parsing:
238
+
236
239
  # Some calendars contain non-standard parameters (e.g. Apple iCloud
237
240
  # calendars). You can pass in a `strict` value when creating a new parser.
238
241
  unstrict_parser = Icalendar::Parser.new(cal_file, false)
data/Rakefile CHANGED
@@ -11,6 +11,7 @@ desc "Load iCalendar in IRB"
11
11
  task :console do
12
12
  require 'irb'
13
13
  require 'irb/completion'
14
+ $:.unshift File.join(File.dirname(__FILE__), 'lib')
14
15
  require 'icalendar'
15
16
  ARGV.clear
16
17
  IRB.start
data/icalendar.gemspec CHANGED
@@ -15,7 +15,11 @@ Implements the iCalendar specification (RFC-5545) in Ruby. This allows
15
15
  for the generation and parsing of .ics files, which are used by a
16
16
  variety of calendaring applications.
17
17
  EOD
18
- s.post_install_message = "\nHEADS UP! iCalendar 2.0 is not backwards-compatible with 1.x. Please see the README for the new syntax\n\n"
18
+ s.post_install_message = <<-EOM
19
+ HEADS UP! iCalendar 2.0 is not backwards-compatible with 1.x. Please see the README for the new syntax
20
+
21
+ ActiveSupport is required for TimeWithZone support, but not required for general use.
22
+ EOM
19
23
 
20
24
  s.files = `git ls-files`.split "\n"
21
25
  s.test_files = `git ls-files -- {test,spec,features}/*`.split "\n"
@@ -1,4 +1,4 @@
1
- require 'socket'
1
+ require 'securerandom'
2
2
 
3
3
  module Icalendar
4
4
 
@@ -17,7 +17,7 @@ module Icalendar
17
17
  end
18
18
 
19
19
  def new_uid
20
- "#{DateTime.now}_#{rand(999999999)}@#{Socket.gethostname}"
20
+ SecureRandom.uuid
21
21
  end
22
22
 
23
23
  def to_ical
@@ -1,7 +1,7 @@
1
1
  begin
2
2
  require 'active_support/time'
3
3
  rescue LoadError
4
- $stderr.puts "Info: No TimeWithZone support"
4
+ # tis ok, just a bit less fancy
5
5
  end
6
6
 
7
7
  module Icalendar
@@ -1,5 +1,5 @@
1
1
  module Icalendar
2
2
 
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
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.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Ahearn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -197,10 +197,10 @@ files:
197
197
  homepage: https://github.com/icalendar/icalendar
198
198
  licenses: []
199
199
  metadata: {}
200
- post_install_message: |2+
201
-
200
+ post_install_message: |
202
201
  HEADS UP! iCalendar 2.0 is not backwards-compatible with 1.x. Please see the README for the new syntax
203
202
 
203
+ ActiveSupport is required for TimeWithZone support, but not required for general use.
204
204
  rdoc_options: []
205
205
  require_paths:
206
206
  - lib