fraser-vpim-rails 0.658 → 0.659
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vpim/icalendar.rb +2 -1
- metadata +1 -6
data/lib/vpim/icalendar.rb
CHANGED
@@ -113,11 +113,12 @@ TODO
|
|
113
113
|
|
114
114
|
# The producer ID defaults to Vpim::PRODID but you can set it to something
|
115
115
|
# specific to your application.
|
116
|
-
def Icalendar.create2(producer = Vpim::PRODID) #:yield: self
|
116
|
+
def Icalendar.create2(producer = Vpim::PRODID, tzinfo_id = nil) #:yield: self
|
117
117
|
# FIXME - make the primary API
|
118
118
|
di = DirectoryInfo.create( [ DirectoryInfo::Field.create('VERSION', '2.0') ], 'VCALENDAR' )
|
119
119
|
|
120
120
|
di.push_unique DirectoryInfo::Field.create('PRODID', producer.to_str)
|
121
|
+
di.push_unique DirectoryInfo::Field.create('X-WR-TIMEZONE', tzinfo_id) unless tzinfo_id.nil?
|
121
122
|
di.push_unique DirectoryInfo::Field.create('CALSCALE', "Gregorian")
|
122
123
|
|
123
124
|
cal = new(di.to_a)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fraser-vpim-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.659"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Roberts
|
@@ -26,12 +26,7 @@ extra_rdoc_files:
|
|
26
26
|
- COPYING
|
27
27
|
- samples/README.mutt
|
28
28
|
files:
|
29
|
-
- lib/atom/pub.rb
|
30
|
-
- lib/atom/version.rb
|
31
|
-
- lib/atom/xml/parser.rb
|
32
29
|
- lib/atom.rb
|
33
|
-
- lib/plist/generator.rb
|
34
|
-
- lib/plist/parser.rb
|
35
30
|
- lib/plist.rb
|
36
31
|
- lib/vpim/address.rb
|
37
32
|
- lib/vpim/attachment.rb
|