ical_importer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +2 -0
- data/.rvmrc +5 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +34 -0
- data/README.md +74 -0
- data/Rakefile +13 -0
- data/ical_importer.gemspec +25 -0
- data/lib/ical_importer/builder.rb +22 -0
- data/lib/ical_importer/collector.rb +25 -0
- data/lib/ical_importer/date_exclusion.rb +11 -0
- data/lib/ical_importer/local_event.rb +59 -0
- data/lib/ical_importer/parser.rb +75 -0
- data/lib/ical_importer/recurrence_event_builder.rb +37 -0
- data/lib/ical_importer/remote_event.rb +54 -0
- data/lib/ical_importer/single_event_builder.rb +128 -0
- data/lib/ical_importer/version.rb +3 -0
- data/lib/ical_importer.rb +11 -0
- data/spec/ical_importer/builder_spec.rb +45 -0
- data/spec/ical_importer/collector_spec.rb +21 -0
- data/spec/ical_importer/date_exclusion_spec.rb +30 -0
- data/spec/ical_importer/local_event_spec.rb +126 -0
- data/spec/ical_importer/parser_spec.rb +126 -0
- data/spec/ical_importer/recurrence_event_builder_spec.rb +57 -0
- data/spec/ical_importer/remote_event_spec.rb +69 -0
- data/spec/ical_importer/single_event_builder_spec.rb +18 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/mn_twins.ics +1412 -0
- data/spec/support/test.ics +40 -0
- metadata +187 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
BEGIN:VCALENDAR
|
2
|
+
METHOD:PUBLISH
|
3
|
+
VERSION:2.0
|
4
|
+
X-WR-CALNAME:Test
|
5
|
+
PRODID:-//Apple Inc.//iCal 5.0.3//EN
|
6
|
+
X-APPLE-CALENDAR-COLOR:#44A703
|
7
|
+
X-WR-TIMEZONE:America/Chicago
|
8
|
+
CALSCALE:GREGORIAN
|
9
|
+
BEGIN:VEVENT
|
10
|
+
CREATED:20120808T202142Z
|
11
|
+
UID:1629F7A5-5A69-43CB-899E-4CE9BD5F069F
|
12
|
+
DTEND;VALUE=DATE:20160915
|
13
|
+
RRULE:FREQ=WEEKLY;INTERVAL=1
|
14
|
+
TRANSP:TRANSPARENT
|
15
|
+
SUMMARY:Recurring Event
|
16
|
+
DTSTART;VALUE=DATE:20160914
|
17
|
+
DTSTAMP:20120808T202252Z
|
18
|
+
SEQUENCE:4
|
19
|
+
END:VEVENT
|
20
|
+
BEGIN:VEVENT
|
21
|
+
CREATED:20120808T202259Z
|
22
|
+
UID:136C1C97-DCCE-4192-B0F0-A56BE5A6AE94
|
23
|
+
DTEND;VALUE=DATE:20160907
|
24
|
+
TRANSP:TRANSPARENT
|
25
|
+
SUMMARY:regular event
|
26
|
+
DTSTART;VALUE=DATE:20160906
|
27
|
+
DTSTAMP:20120808T202316Z
|
28
|
+
SEQUENCE:3
|
29
|
+
END:VEVENT
|
30
|
+
BEGIN:VEVENT
|
31
|
+
CREATED:20120808T202305Z
|
32
|
+
UID:EE5B0CF7-6DDD-48EA-89B1-292B028CADE1
|
33
|
+
DTEND;VALUE=DATE:20160921
|
34
|
+
TRANSP:TRANSPARENT
|
35
|
+
SUMMARY:Regular event
|
36
|
+
DTSTART;VALUE=DATE:20160920
|
37
|
+
DTSTAMP:20120808T202324Z
|
38
|
+
SEQUENCE:3
|
39
|
+
END:VEVENT
|
40
|
+
END:VCALENDAR
|
metadata
ADDED
@@ -0,0 +1,187 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ical_importer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jon Phenow
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.15
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.0.15
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: ri_cal
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: i18n
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: awesome_print
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
description: Easily import iCal Events from a URL and handle their output
|
111
|
+
email:
|
112
|
+
- jon.phenow@tstmedia.com
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- .rspec
|
118
|
+
- .rvmrc
|
119
|
+
- .travis.yml
|
120
|
+
- Gemfile
|
121
|
+
- Gemfile.lock
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- ical_importer.gemspec
|
125
|
+
- lib/ical_importer.rb
|
126
|
+
- lib/ical_importer/builder.rb
|
127
|
+
- lib/ical_importer/collector.rb
|
128
|
+
- lib/ical_importer/date_exclusion.rb
|
129
|
+
- lib/ical_importer/local_event.rb
|
130
|
+
- lib/ical_importer/parser.rb
|
131
|
+
- lib/ical_importer/recurrence_event_builder.rb
|
132
|
+
- lib/ical_importer/remote_event.rb
|
133
|
+
- lib/ical_importer/single_event_builder.rb
|
134
|
+
- lib/ical_importer/version.rb
|
135
|
+
- spec/ical_importer/builder_spec.rb
|
136
|
+
- spec/ical_importer/collector_spec.rb
|
137
|
+
- spec/ical_importer/date_exclusion_spec.rb
|
138
|
+
- spec/ical_importer/local_event_spec.rb
|
139
|
+
- spec/ical_importer/parser_spec.rb
|
140
|
+
- spec/ical_importer/recurrence_event_builder_spec.rb
|
141
|
+
- spec/ical_importer/remote_event_spec.rb
|
142
|
+
- spec/ical_importer/single_event_builder_spec.rb
|
143
|
+
- spec/spec_helper.rb
|
144
|
+
- spec/support/mn_twins.ics
|
145
|
+
- spec/support/test.ics
|
146
|
+
homepage: ''
|
147
|
+
licenses: []
|
148
|
+
post_install_message:
|
149
|
+
rdoc_options: []
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
hash: 261024239185401651
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
hash: 261024239185401651
|
170
|
+
requirements: []
|
171
|
+
rubyforge_project:
|
172
|
+
rubygems_version: 1.8.24
|
173
|
+
signing_key:
|
174
|
+
specification_version: 3
|
175
|
+
summary: ''
|
176
|
+
test_files:
|
177
|
+
- spec/ical_importer/builder_spec.rb
|
178
|
+
- spec/ical_importer/collector_spec.rb
|
179
|
+
- spec/ical_importer/date_exclusion_spec.rb
|
180
|
+
- spec/ical_importer/local_event_spec.rb
|
181
|
+
- spec/ical_importer/parser_spec.rb
|
182
|
+
- spec/ical_importer/recurrence_event_builder_spec.rb
|
183
|
+
- spec/ical_importer/remote_event_spec.rb
|
184
|
+
- spec/ical_importer/single_event_builder_spec.rb
|
185
|
+
- spec/spec_helper.rb
|
186
|
+
- spec/support/mn_twins.ics
|
187
|
+
- spec/support/test.ics
|