ical_punch 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +24 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/bin/ical_punch +127 -0
- data/ical_punch.gemspec +63 -0
- data/lib/ical_punch.rb +157 -0
- data/spec/fixtures/punch.yml +418 -0
- data/spec/fixtures/test.ics +655 -0
- data/spec/ical_punch_spec.rb +48 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +9 -0
- metadata +104 -0
@@ -0,0 +1,655 @@
|
|
1
|
+
BEGIN:VCALENDAR
|
2
|
+
VERSION:2.0
|
3
|
+
CALSCALE:GREGORIAN
|
4
|
+
PRODID:iCalendar-Ruby/assay_depot
|
5
|
+
BEGIN:VEVENT
|
6
|
+
SEQUENCE:0
|
7
|
+
DTEND:20080902T183000
|
8
|
+
UID:2008-12-17T21:40:43-08:00_450140032@pumpkin.local
|
9
|
+
DESCRIPTION:punch in @ 2008-09-02T14:00:00-07:00\npunch out @ 2008-09-02T18
|
10
|
+
:30:00-07:00
|
11
|
+
SUMMARY:assay_depot
|
12
|
+
DTSTART:20080902T140000
|
13
|
+
DTSTAMP:20081217T214043
|
14
|
+
END:VEVENT
|
15
|
+
BEGIN:VEVENT
|
16
|
+
SEQUENCE:0
|
17
|
+
DTEND:20080903T180000
|
18
|
+
UID:2008-12-17T21:40:43-08:00_143512368@pumpkin.local
|
19
|
+
DESCRIPTION:punch in @ 2008-09-03T12:00:00-07:00\npunch out @ 2008-09-03T18
|
20
|
+
:00:00-07:00
|
21
|
+
SUMMARY:assay_depot
|
22
|
+
DTSTART:20080903T120000
|
23
|
+
DTSTAMP:20081217T214043
|
24
|
+
END:VEVENT
|
25
|
+
BEGIN:VEVENT
|
26
|
+
SEQUENCE:0
|
27
|
+
DTEND:20080904T110000
|
28
|
+
UID:2008-12-17T21:40:43-08:00_658704125@pumpkin.local
|
29
|
+
DESCRIPTION:punch in @ 2008-09-04T09:00:00-07:00\npunch out @ 2008-09-04T11
|
30
|
+
:00:00-07:00
|
31
|
+
SUMMARY:assay_depot
|
32
|
+
DTSTART:20080904T090000
|
33
|
+
DTSTAMP:20081217T214043
|
34
|
+
END:VEVENT
|
35
|
+
BEGIN:VEVENT
|
36
|
+
SEQUENCE:0
|
37
|
+
DTEND:20080905T180000
|
38
|
+
UID:2008-12-17T21:40:43-08:00_970980600@pumpkin.local
|
39
|
+
DESCRIPTION:punch in @ 2008-09-05T14:00:00-07:00\npunch out @ 2008-09-05T18
|
40
|
+
:00:00-07:00
|
41
|
+
SUMMARY:assay_depot
|
42
|
+
DTSTART:20080905T140000
|
43
|
+
DTSTAMP:20081217T214043
|
44
|
+
END:VEVENT
|
45
|
+
BEGIN:VEVENT
|
46
|
+
SEQUENCE:0
|
47
|
+
DTEND:20080908T130000
|
48
|
+
UID:2008-12-17T21:40:43-08:00_727056582@pumpkin.local
|
49
|
+
DESCRIPTION:punch in @ 2008-09-08T10:00:00-07:00\npunch out @ 2008-09-08T13
|
50
|
+
:00:00-07:00
|
51
|
+
SUMMARY:assay_depot
|
52
|
+
DTSTART:20080908T100000
|
53
|
+
DTSTAMP:20081217T214043
|
54
|
+
END:VEVENT
|
55
|
+
BEGIN:VEVENT
|
56
|
+
SEQUENCE:0
|
57
|
+
DTEND:20080908T180000
|
58
|
+
UID:2008-12-17T21:40:43-08:00_572297033@pumpkin.local
|
59
|
+
DESCRIPTION:punch in @ 2008-09-08T16:00:00-07:00\npunch out @ 2008-09-08T18
|
60
|
+
:00:00-07:00
|
61
|
+
SUMMARY:assay_depot
|
62
|
+
DTSTART:20080908T160000
|
63
|
+
DTSTAMP:20081217T214043
|
64
|
+
END:VEVENT
|
65
|
+
BEGIN:VEVENT
|
66
|
+
SEQUENCE:0
|
67
|
+
DTEND:20080909T180000
|
68
|
+
UID:2008-12-17T21:40:43-08:00_667541347@pumpkin.local
|
69
|
+
DESCRIPTION:punch in @ 2008-09-09T14:00:00-07:00\npunch out @ 2008-09-09T18
|
70
|
+
:00:00-07:00
|
71
|
+
SUMMARY:assay_depot
|
72
|
+
DTSTART:20080909T140000
|
73
|
+
DTSTAMP:20081217T214043
|
74
|
+
END:VEVENT
|
75
|
+
BEGIN:VEVENT
|
76
|
+
SEQUENCE:0
|
77
|
+
DTEND:20080910T120000
|
78
|
+
UID:2008-12-17T21:40:43-08:00_468923024@pumpkin.local
|
79
|
+
DESCRIPTION:punch in @ 2008-09-10T10:00:00-07:00\npunch out @ 2008-09-10T12
|
80
|
+
:00:00-07:00
|
81
|
+
SUMMARY:assay_depot
|
82
|
+
DTSTART:20080910T100000
|
83
|
+
DTSTAMP:20081217T214043
|
84
|
+
END:VEVENT
|
85
|
+
BEGIN:VEVENT
|
86
|
+
SEQUENCE:0
|
87
|
+
DTEND:20080910T170000
|
88
|
+
UID:2008-12-17T21:40:43-08:00_773688652@pumpkin.local
|
89
|
+
DESCRIPTION:punch in @ 2008-09-10T14:00:00-07:00\npunch out @ 2008-09-10T17
|
90
|
+
:00:00-07:00
|
91
|
+
SUMMARY:assay_depot
|
92
|
+
DTSTART:20080910T140000
|
93
|
+
DTSTAMP:20081217T214043
|
94
|
+
END:VEVENT
|
95
|
+
BEGIN:VEVENT
|
96
|
+
SEQUENCE:0
|
97
|
+
DTEND:20080911T180000
|
98
|
+
UID:2008-12-17T21:40:43-08:00_824627782@pumpkin.local
|
99
|
+
DESCRIPTION:punch in @ 2008-09-11T14:00:00-07:00\npunch out @ 2008-09-11T18
|
100
|
+
:00:00-07:00
|
101
|
+
SUMMARY:assay_depot
|
102
|
+
DTSTART:20080911T140000
|
103
|
+
DTSTAMP:20081217T214043
|
104
|
+
END:VEVENT
|
105
|
+
BEGIN:VEVENT
|
106
|
+
SEQUENCE:0
|
107
|
+
DTEND:20080912T130000
|
108
|
+
UID:2008-12-17T21:40:43-08:00_484152023@pumpkin.local
|
109
|
+
DESCRIPTION:punch in @ 2008-09-12T10:00:00-07:00\npunch out @ 2008-09-12T13
|
110
|
+
:00:00-07:00
|
111
|
+
SUMMARY:assay_depot
|
112
|
+
DTSTART:20080912T100000
|
113
|
+
DTSTAMP:20081217T214043
|
114
|
+
END:VEVENT
|
115
|
+
BEGIN:VEVENT
|
116
|
+
SEQUENCE:0
|
117
|
+
DTEND:20080912T180000
|
118
|
+
UID:2008-12-17T21:40:43-08:00_34116277@pumpkin.local
|
119
|
+
DESCRIPTION:punch in @ 2008-09-12T14:00:00-07:00\npunch out @ 2008-09-12T18
|
120
|
+
:00:00-07:00
|
121
|
+
SUMMARY:assay_depot
|
122
|
+
DTSTART:20080912T140000
|
123
|
+
DTSTAMP:20081217T214043
|
124
|
+
END:VEVENT
|
125
|
+
BEGIN:VEVENT
|
126
|
+
SEQUENCE:0
|
127
|
+
DTEND:20080913T230000
|
128
|
+
UID:2008-12-17T21:40:43-08:00_818426928@pumpkin.local
|
129
|
+
DESCRIPTION:punch in @ 2008-09-13T20:00:00-07:00\npunch out @ 2008-09-13T23
|
130
|
+
:00:00-07:00
|
131
|
+
SUMMARY:assay_depot
|
132
|
+
DTSTART:20080913T200000
|
133
|
+
DTSTAMP:20081217T214043
|
134
|
+
END:VEVENT
|
135
|
+
BEGIN:VEVENT
|
136
|
+
SEQUENCE:0
|
137
|
+
DTEND:20080914T103000
|
138
|
+
UID:2008-12-17T21:40:43-08:00_152780872@pumpkin.local
|
139
|
+
DESCRIPTION:punch in @ 2008-09-14T09:00:00-07:00\npunch out @ 2008-09-14T10
|
140
|
+
:30:00-07:00
|
141
|
+
SUMMARY:assay_depot
|
142
|
+
DTSTART:20080914T090000
|
143
|
+
DTSTAMP:20081217T214043
|
144
|
+
END:VEVENT
|
145
|
+
BEGIN:VEVENT
|
146
|
+
SEQUENCE:0
|
147
|
+
DTEND:20080915T180000
|
148
|
+
UID:2008-12-17T21:40:43-08:00_484899620@pumpkin.local
|
149
|
+
DESCRIPTION:punch in @ 2008-09-15T14:00:00-07:00\npunch out @ 2008-09-15T18
|
150
|
+
:00:00-07:00
|
151
|
+
SUMMARY:assay_depot
|
152
|
+
DTSTART:20080915T140000
|
153
|
+
DTSTAMP:20081217T214043
|
154
|
+
END:VEVENT
|
155
|
+
BEGIN:VEVENT
|
156
|
+
SEQUENCE:0
|
157
|
+
DTEND:20080916T180000
|
158
|
+
UID:2008-12-17T21:40:43-08:00_977268806@pumpkin.local
|
159
|
+
DESCRIPTION:punch in @ 2008-09-16T14:00:00-07:00\npunch out @ 2008-09-16T18
|
160
|
+
:00:00-07:00
|
161
|
+
SUMMARY:assay_depot
|
162
|
+
DTSTART:20080916T140000
|
163
|
+
DTSTAMP:20081217T214043
|
164
|
+
END:VEVENT
|
165
|
+
BEGIN:VEVENT
|
166
|
+
SEQUENCE:0
|
167
|
+
DTEND:20080917T180000
|
168
|
+
UID:2008-12-17T21:40:43-08:00_83823994@pumpkin.local
|
169
|
+
DESCRIPTION:punch in @ 2008-09-17T14:00:00-07:00\npunch out @ 2008-09-17T18
|
170
|
+
:00:00-07:00
|
171
|
+
SUMMARY:assay_depot
|
172
|
+
DTSTART:20080917T140000
|
173
|
+
DTSTAMP:20081217T214043
|
174
|
+
END:VEVENT
|
175
|
+
BEGIN:VEVENT
|
176
|
+
SEQUENCE:0
|
177
|
+
DTEND:20080918T160000
|
178
|
+
UID:2008-12-17T21:40:43-08:00_537411997@pumpkin.local
|
179
|
+
DESCRIPTION:punch in @ 2008-09-18T14:00:00-07:00\npunch out @ 2008-09-18T16
|
180
|
+
:00:00-07:00
|
181
|
+
SUMMARY:assay_depot
|
182
|
+
DTSTART:20080918T140000
|
183
|
+
DTSTAMP:20081217T214043
|
184
|
+
END:VEVENT
|
185
|
+
BEGIN:VEVENT
|
186
|
+
SEQUENCE:0
|
187
|
+
DTEND:20080922T100000
|
188
|
+
UID:2008-12-17T21:40:43-08:00_856076084@pumpkin.local
|
189
|
+
DESCRIPTION:punch in @ 2008-09-22T09:30:00-07:00\npunch out @ 2008-09-22T10
|
190
|
+
:00:00-07:00
|
191
|
+
SUMMARY:assay_depot
|
192
|
+
DTSTART:20080922T093000
|
193
|
+
DTSTAMP:20081217T214043
|
194
|
+
END:VEVENT
|
195
|
+
BEGIN:VEVENT
|
196
|
+
SEQUENCE:0
|
197
|
+
DTEND:20080922T210000
|
198
|
+
UID:2008-12-17T21:40:43-08:00_548930933@pumpkin.local
|
199
|
+
DESCRIPTION:punch in @ 2008-09-22T14:00:00-07:00\npunch out @ 2008-09-22T21
|
200
|
+
:00:00-07:00
|
201
|
+
SUMMARY:assay_depot
|
202
|
+
DTSTART:20080922T140000
|
203
|
+
DTSTAMP:20081217T214043
|
204
|
+
END:VEVENT
|
205
|
+
BEGIN:VEVENT
|
206
|
+
SEQUENCE:0
|
207
|
+
DTEND:20080923T173000
|
208
|
+
UID:2008-12-17T21:40:43-08:00_808377196@pumpkin.local
|
209
|
+
DESCRIPTION:punch in @ 2008-09-23T13:00:00-07:00\npunch out @ 2008-09-23T17
|
210
|
+
:30:00-07:00
|
211
|
+
SUMMARY:assay_depot
|
212
|
+
DTSTART:20080923T130000
|
213
|
+
DTSTAMP:20081217T214043
|
214
|
+
END:VEVENT
|
215
|
+
BEGIN:VEVENT
|
216
|
+
SEQUENCE:0
|
217
|
+
DTEND:20080924T190000
|
218
|
+
UID:2008-12-17T21:40:43-08:00_795795528@pumpkin.local
|
219
|
+
DESCRIPTION:punch in @ 2008-09-24T14:30:00-07:00\npunch out @ 2008-09-24T19
|
220
|
+
:00:00-07:00
|
221
|
+
SUMMARY:assay_depot
|
222
|
+
DTSTART:20080924T143000
|
223
|
+
DTSTAMP:20081217T214043
|
224
|
+
END:VEVENT
|
225
|
+
BEGIN:VEVENT
|
226
|
+
SEQUENCE:0
|
227
|
+
DTEND:20080925T180000
|
228
|
+
UID:2008-12-17T21:40:43-08:00_951035002@pumpkin.local
|
229
|
+
DESCRIPTION:punch in @ 2008-09-25T14:00:00-07:00\npunch out @ 2008-09-25T18
|
230
|
+
:00:00-07:00
|
231
|
+
SUMMARY:assay_depot
|
232
|
+
DTSTART:20080925T140000
|
233
|
+
DTSTAMP:20081217T214043
|
234
|
+
END:VEVENT
|
235
|
+
BEGIN:VEVENT
|
236
|
+
SEQUENCE:0
|
237
|
+
DTEND:20080926T190000
|
238
|
+
UID:2008-12-17T21:40:43-08:00_30055489@pumpkin.local
|
239
|
+
DESCRIPTION:punch in @ 2008-09-26T14:30:00-07:00\npunch out @ 2008-09-26T19
|
240
|
+
:00:00-07:00
|
241
|
+
SUMMARY:assay_depot
|
242
|
+
DTSTART:20080926T143000
|
243
|
+
DTSTAMP:20081217T214043
|
244
|
+
END:VEVENT
|
245
|
+
BEGIN:VEVENT
|
246
|
+
SEQUENCE:0
|
247
|
+
DTEND:20080929T180000
|
248
|
+
UID:2008-12-17T21:40:43-08:00_187610218@pumpkin.local
|
249
|
+
DESCRIPTION:punch in @ 2008-09-29T14:00:00-07:00\npunch out @ 2008-09-29T18
|
250
|
+
:00:00-07:00
|
251
|
+
SUMMARY:assay_depot
|
252
|
+
DTSTART:20080929T140000
|
253
|
+
DTSTAMP:20081217T214043
|
254
|
+
END:VEVENT
|
255
|
+
BEGIN:VEVENT
|
256
|
+
SEQUENCE:0
|
257
|
+
DTEND:20080930T190000
|
258
|
+
UID:2008-12-17T21:40:43-08:00_144737527@pumpkin.local
|
259
|
+
DESCRIPTION:punch in @ 2008-09-30T14:00:00-07:00\npunch out @ 2008-09-30T19
|
260
|
+
:00:00-07:00
|
261
|
+
SUMMARY:assay_depot
|
262
|
+
DTSTART:20080930T140000
|
263
|
+
DTSTAMP:20081217T214043
|
264
|
+
END:VEVENT
|
265
|
+
BEGIN:VEVENT
|
266
|
+
SEQUENCE:0
|
267
|
+
DTEND:20081001T180000
|
268
|
+
UID:2008-12-17T21:40:43-08:00_739280224@pumpkin.local
|
269
|
+
DESCRIPTION:punch in @ 2008-10-01T14:00:00-07:00\nNew App Planning\npunch o
|
270
|
+
ut @ 2008-10-01T18:00:00-07:00
|
271
|
+
SUMMARY:assay_depot
|
272
|
+
DTSTART:20081001T140000
|
273
|
+
DTSTAMP:20081217T214043
|
274
|
+
END:VEVENT
|
275
|
+
BEGIN:VEVENT
|
276
|
+
SEQUENCE:0
|
277
|
+
DTEND:20081002T180000
|
278
|
+
UID:2008-12-17T21:40:43-08:00_50625857@pumpkin.local
|
279
|
+
DESCRIPTION:punch in @ 2008-10-02T14:00:00-07:00\nNew App Planning\npunch o
|
280
|
+
ut @ 2008-10-02T18:00:00-07:00
|
281
|
+
SUMMARY:assay_depot
|
282
|
+
DTSTART:20081002T140000
|
283
|
+
DTSTAMP:20081217T214043
|
284
|
+
END:VEVENT
|
285
|
+
BEGIN:VEVENT
|
286
|
+
SEQUENCE:0
|
287
|
+
DTEND:20081003T140000
|
288
|
+
UID:2008-12-17T21:40:43-08:00_834990043@pumpkin.local
|
289
|
+
DESCRIPTION:punch in @ 2008-10-03T08:00:00-07:00\nNew App Planning\npunch o
|
290
|
+
ut @ 2008-10-03T14:00:00-07:00
|
291
|
+
SUMMARY:assay_depot
|
292
|
+
DTSTART:20081003T080000
|
293
|
+
DTSTAMP:20081217T214043
|
294
|
+
END:VEVENT
|
295
|
+
BEGIN:VEVENT
|
296
|
+
SEQUENCE:0
|
297
|
+
DTEND:20081006T130000
|
298
|
+
UID:2008-12-17T21:40:43-08:00_981171921@pumpkin.local
|
299
|
+
DESCRIPTION:punch in @ 2008-10-06T09:00:00-07:00\nCouch Research\npunch out
|
300
|
+
@ 2008-10-06T13:00:00-07:00
|
301
|
+
SUMMARY:assay_depot
|
302
|
+
DTSTART:20081006T090000
|
303
|
+
DTSTAMP:20081217T214043
|
304
|
+
END:VEVENT
|
305
|
+
BEGIN:VEVENT
|
306
|
+
SEQUENCE:0
|
307
|
+
DTEND:20081006T200000
|
308
|
+
UID:2008-12-17T21:40:43-08:00_417955349@pumpkin.local
|
309
|
+
DESCRIPTION:punch in @ 2008-10-06T14:00:00-07:00\nNew App Planning\npunch o
|
310
|
+
ut @ 2008-10-06T20:00:00-07:00
|
311
|
+
SUMMARY:assay_depot
|
312
|
+
DTSTART:20081006T140000
|
313
|
+
DTSTAMP:20081217T214043
|
314
|
+
END:VEVENT
|
315
|
+
BEGIN:VEVENT
|
316
|
+
SEQUENCE:0
|
317
|
+
DTEND:20081007T180000
|
318
|
+
UID:2008-12-17T21:40:43-08:00_235852372@pumpkin.local
|
319
|
+
DESCRIPTION:punch in @ 2008-10-07T14:00:00-07:00\nNew App Planning\npunch o
|
320
|
+
ut @ 2008-10-07T18:00:00-07:00
|
321
|
+
SUMMARY:assay_depot
|
322
|
+
DTSTART:20081007T140000
|
323
|
+
DTSTAMP:20081217T214043
|
324
|
+
END:VEVENT
|
325
|
+
BEGIN:VEVENT
|
326
|
+
SEQUENCE:0
|
327
|
+
DTEND:20081013T150000
|
328
|
+
UID:2008-12-17T21:40:43-08:00_900920433@pumpkin.local
|
329
|
+
DESCRIPTION:punch in @ 2008-10-13T12:00:00-07:00\nSSL Fix\npunch out @ 2008
|
330
|
+
-10-13T15:00:00-07:00
|
331
|
+
SUMMARY:assay_depot
|
332
|
+
DTSTART:20081013T120000
|
333
|
+
DTSTAMP:20081217T214043
|
334
|
+
END:VEVENT
|
335
|
+
BEGIN:VEVENT
|
336
|
+
SEQUENCE:0
|
337
|
+
DTEND:20081013T180000
|
338
|
+
UID:2008-12-17T21:40:43-08:00_637242729@pumpkin.local
|
339
|
+
DESCRIPTION:punch in @ 2008-10-13T15:00:00-07:00\nCouch Research\npunch out
|
340
|
+
@ 2008-10-13T18:00:00-07:00
|
341
|
+
SUMMARY:assay_depot
|
342
|
+
DTSTART:20081013T150000
|
343
|
+
DTSTAMP:20081217T214043
|
344
|
+
END:VEVENT
|
345
|
+
BEGIN:VEVENT
|
346
|
+
SEQUENCE:0
|
347
|
+
DTEND:20081014T180000
|
348
|
+
UID:2008-12-17T21:40:43-08:00_121916329@pumpkin.local
|
349
|
+
DESCRIPTION:punch in @ 2008-10-14T14:00:00-07:00\nIteration\, Couch Researc
|
350
|
+
h\npunch out @ 2008-10-14T18:00:00-07:00
|
351
|
+
SUMMARY:assay_depot
|
352
|
+
DTSTART:20081014T140000
|
353
|
+
DTSTAMP:20081217T214043
|
354
|
+
END:VEVENT
|
355
|
+
BEGIN:VEVENT
|
356
|
+
SEQUENCE:0
|
357
|
+
DTEND:20081015T180000
|
358
|
+
UID:2008-12-17T21:40:43-08:00_402467490@pumpkin.local
|
359
|
+
DESCRIPTION:punch in @ 2008-10-15T14:00:00-07:00\nStory Runner \npunch out
|
360
|
+
@ 2008-10-15T18:00:00-07:00
|
361
|
+
SUMMARY:assay_depot
|
362
|
+
DTSTART:20081015T140000
|
363
|
+
DTSTAMP:20081217T214043
|
364
|
+
END:VEVENT
|
365
|
+
BEGIN:VEVENT
|
366
|
+
SEQUENCE:0
|
367
|
+
DTEND:20081016T180000
|
368
|
+
UID:2008-12-17T21:40:43-08:00_909055698@pumpkin.local
|
369
|
+
DESCRIPTION:punch in @ 2008-10-16T14:00:00-07:00\nCouch Resarch\npunch out
|
370
|
+
@ 2008-10-16T18:00:00-07:00
|
371
|
+
SUMMARY:assay_depot
|
372
|
+
DTSTART:20081016T140000
|
373
|
+
DTSTAMP:20081217T214043
|
374
|
+
END:VEVENT
|
375
|
+
BEGIN:VEVENT
|
376
|
+
SEQUENCE:0
|
377
|
+
DTEND:20081017T180000
|
378
|
+
UID:2008-12-17T21:40:43-08:00_919914861@pumpkin.local
|
379
|
+
DESCRIPTION:punch in @ 2008-10-17T14:00:00-07:00\nMerb / Webrat / Cucumber\
|
380
|
+
npunch out @ 2008-10-17T18:00:00-07:00
|
381
|
+
SUMMARY:assay_depot
|
382
|
+
DTSTART:20081017T140000
|
383
|
+
DTSTAMP:20081217T214043
|
384
|
+
END:VEVENT
|
385
|
+
BEGIN:VEVENT
|
386
|
+
SEQUENCE:0
|
387
|
+
DTEND:20081020T180000
|
388
|
+
UID:2008-12-17T21:40:43-08:00_535324427@pumpkin.local
|
389
|
+
DESCRIPTION:punch in @ 2008-10-20T14:00:00-07:00\nMerb / Webrat / Cucumber\
|
390
|
+
npunch out @ 2008-10-20T18:00:00-07:00
|
391
|
+
SUMMARY:assay_depot
|
392
|
+
DTSTART:20081020T140000
|
393
|
+
DTSTAMP:20081217T214043
|
394
|
+
END:VEVENT
|
395
|
+
BEGIN:VEVENT
|
396
|
+
SEQUENCE:0
|
397
|
+
DTEND:20081021T180000
|
398
|
+
UID:2008-12-17T21:40:43-08:00_422974882@pumpkin.local
|
399
|
+
DESCRIPTION:punch in @ 2008-10-21T14:00:00-07:00\nMoving Lighthouse\npunch
|
400
|
+
out @ 2008-10-21T18:00:00-07:00
|
401
|
+
SUMMARY:assay_depot
|
402
|
+
DTSTART:20081021T140000
|
403
|
+
DTSTAMP:20081217T214043
|
404
|
+
END:VEVENT
|
405
|
+
BEGIN:VEVENT
|
406
|
+
SEQUENCE:0
|
407
|
+
DTEND:20081022T190000
|
408
|
+
UID:2008-12-17T21:40:43-08:00_634364448@pumpkin.local
|
409
|
+
DESCRIPTION:punch in @ 2008-10-22T14:00:00-07:00\nPair with Matt\npunch out
|
410
|
+
@ 2008-10-22T19:00:00-07:00
|
411
|
+
SUMMARY:assay_depot
|
412
|
+
DTSTART:20081022T140000
|
413
|
+
DTSTAMP:20081217T214043
|
414
|
+
END:VEVENT
|
415
|
+
BEGIN:VEVENT
|
416
|
+
SEQUENCE:0
|
417
|
+
DTEND:20081023T180000
|
418
|
+
UID:2008-12-17T21:40:43-08:00_749727088@pumpkin.local
|
419
|
+
DESCRIPTION:punch in @ 2008-10-23T14:00:00-07:00\nFactory Girl\npunch out @
|
420
|
+
2008-10-23T18:00:00-07:00
|
421
|
+
SUMMARY:assay_depot
|
422
|
+
DTSTART:20081023T140000
|
423
|
+
DTSTAMP:20081217T214043
|
424
|
+
END:VEVENT
|
425
|
+
BEGIN:VEVENT
|
426
|
+
SEQUENCE:0
|
427
|
+
DTEND:20081024T160000
|
428
|
+
UID:2008-12-17T21:40:43-08:00_592729946@pumpkin.local
|
429
|
+
DESCRIPTION:punch in @ 2008-10-24T12:00:00-07:00\nPair with Matt\npunch out
|
430
|
+
@ 2008-10-24T16:00:00-07:00
|
431
|
+
SUMMARY:assay_depot
|
432
|
+
DTSTART:20081024T120000
|
433
|
+
DTSTAMP:20081217T214043
|
434
|
+
END:VEVENT
|
435
|
+
BEGIN:VEVENT
|
436
|
+
SEQUENCE:0
|
437
|
+
DTEND:20081027T130000
|
438
|
+
UID:2008-12-17T21:40:43-08:00_810342920@pumpkin.local
|
439
|
+
DESCRIPTION:punch in @ 2008-10-27T09:00:00-07:00\nUser stories\npunch out @
|
440
|
+
2008-10-27T13:00:00-07:00
|
441
|
+
SUMMARY:assay_depot
|
442
|
+
DTSTART:20081027T090000
|
443
|
+
DTSTAMP:20081217T214043
|
444
|
+
END:VEVENT
|
445
|
+
BEGIN:VEVENT
|
446
|
+
SEQUENCE:0
|
447
|
+
DTEND:20081027T180000
|
448
|
+
UID:2008-12-17T21:40:43-08:00_704881057@pumpkin.local
|
449
|
+
DESCRIPTION:punch in @ 2008-10-27T14:00:00-07:00\nUser stories\npunch out @
|
450
|
+
2008-10-27T18:00:00-07:00
|
451
|
+
SUMMARY:assay_depot
|
452
|
+
DTSTART:20081027T140000
|
453
|
+
DTSTAMP:20081217T214043
|
454
|
+
END:VEVENT
|
455
|
+
BEGIN:VEVENT
|
456
|
+
SEQUENCE:0
|
457
|
+
DTEND:20081028T180000
|
458
|
+
UID:2008-12-17T21:40:43-08:00_841201716@pumpkin.local
|
459
|
+
DESCRIPTION:punch in @ 2008-10-28T14:00:00-07:00\nPair with Matt\npunch out
|
460
|
+
@ 2008-10-28T18:00:00-07:00
|
461
|
+
SUMMARY:assay_depot
|
462
|
+
DTSTART:20081028T140000
|
463
|
+
DTSTAMP:20081217T214043
|
464
|
+
END:VEVENT
|
465
|
+
BEGIN:VEVENT
|
466
|
+
SEQUENCE:0
|
467
|
+
DTEND:20081029T184500
|
468
|
+
UID:2008-12-17T21:40:43-08:00_281804985@pumpkin.local
|
469
|
+
DESCRIPTION:punch in @ 2008-10-29T14:00:00-07:00\nPair with Matt\npunch out
|
470
|
+
@ 2008-10-29T18:45:00-07:00
|
471
|
+
SUMMARY:assay_depot
|
472
|
+
DTSTART:20081029T140000
|
473
|
+
DTSTAMP:20081217T214043
|
474
|
+
END:VEVENT
|
475
|
+
BEGIN:VEVENT
|
476
|
+
SEQUENCE:0
|
477
|
+
DTEND:20081030T183000
|
478
|
+
UID:2008-12-17T21:40:43-08:00_135573392@pumpkin.local
|
479
|
+
DESCRIPTION:punch in @ 2008-10-30T14:00:00-07:00\nPair with Matt\npunch out
|
480
|
+
@ 2008-10-30T18:30:00-07:00
|
481
|
+
SUMMARY:assay_depot
|
482
|
+
DTSTART:20081030T140000
|
483
|
+
DTSTAMP:20081217T214043
|
484
|
+
END:VEVENT
|
485
|
+
BEGIN:VEVENT
|
486
|
+
SEQUENCE:0
|
487
|
+
DTEND:20081031T130000
|
488
|
+
UID:2008-12-17T21:40:43-08:00_923196822@pumpkin.local
|
489
|
+
DESCRIPTION:punch in @ 2008-10-31T09:00:00-07:00\nMoving Lighthouse\npunch
|
490
|
+
out @ 2008-10-31T13:00:00-07:00
|
491
|
+
SUMMARY:assay_depot
|
492
|
+
DTSTART:20081031T090000
|
493
|
+
DTSTAMP:20081217T214043
|
494
|
+
END:VEVENT
|
495
|
+
BEGIN:VEVENT
|
496
|
+
SEQUENCE:0
|
497
|
+
DTEND:20081102T140000
|
498
|
+
UID:2008-12-17T21:40:43-08:00_511924744@pumpkin.local
|
499
|
+
DESCRIPTION:punch in @ 2008-11-02T12:00:00-08:00\nMoving to lighthouse\npun
|
500
|
+
ch out @ 2008-11-02T14:00:00-08:00
|
501
|
+
SUMMARY:assay_depot
|
502
|
+
DTSTART:20081102T120000
|
503
|
+
DTSTAMP:20081217T214043
|
504
|
+
END:VEVENT
|
505
|
+
BEGIN:VEVENT
|
506
|
+
SEQUENCE:0
|
507
|
+
DTEND:20081103T085912
|
508
|
+
UID:2008-12-17T21:40:43-08:00_658419240@pumpkin.local
|
509
|
+
DESCRIPTION:punch in @ 2008-11-03T07:59:54-08:00\npunch out @ 2008-11-03T08
|
510
|
+
:59:12-08:00
|
511
|
+
SUMMARY:assay_depot
|
512
|
+
DTSTART:20081103T075954
|
513
|
+
DTSTAMP:20081217T214043
|
514
|
+
END:VEVENT
|
515
|
+
BEGIN:VEVENT
|
516
|
+
SEQUENCE:0
|
517
|
+
DTEND:20081103T180000
|
518
|
+
UID:2008-12-17T21:40:43-08:00_575085322@pumpkin.local
|
519
|
+
DESCRIPTION:punch in @ 2008-11-03T14:00:00-08:00\npunch out @ 2008-11-03T18
|
520
|
+
:00:00-08:00
|
521
|
+
SUMMARY:assay_depot
|
522
|
+
DTSTART:20081103T140000
|
523
|
+
DTSTAMP:20081217T214043
|
524
|
+
END:VEVENT
|
525
|
+
BEGIN:VEVENT
|
526
|
+
SEQUENCE:0
|
527
|
+
DTEND:20081104T180000
|
528
|
+
UID:2008-12-17T21:40:43-08:00_265106561@pumpkin.local
|
529
|
+
DESCRIPTION:punch in @ 2008-11-04T14:00:00-08:00\nIteration\, Pair with Chr
|
530
|
+
is\npunch out @ 2008-11-04T18:00:00-08:00
|
531
|
+
SUMMARY:assay_depot
|
532
|
+
DTSTART:20081104T140000
|
533
|
+
DTSTAMP:20081217T214043
|
534
|
+
END:VEVENT
|
535
|
+
BEGIN:VEVENT
|
536
|
+
SEQUENCE:0
|
537
|
+
DTEND:20081112T144500
|
538
|
+
UID:2008-12-17T21:40:43-08:00_902804553@pumpkin.local
|
539
|
+
DESCRIPTION:punch in @ 2008-11-12T14:00:00-08:00\nIteration Meeting\npunch
|
540
|
+
out @ 2008-11-12T14:45:00-08:00
|
541
|
+
SUMMARY:assay_depot
|
542
|
+
DTSTART:20081112T140000
|
543
|
+
DTSTAMP:20081217T214043
|
544
|
+
END:VEVENT
|
545
|
+
BEGIN:VEVENT
|
546
|
+
SEQUENCE:0
|
547
|
+
DTEND:20081113T191601
|
548
|
+
UID:2008-12-17T21:40:43-08:00_5960469@pumpkin.local
|
549
|
+
DESCRIPTION:punch in @ 2008-11-13T13:21:59-08:00\npunch out @ 2008-11-13T19
|
550
|
+
:16:01-08:00
|
551
|
+
SUMMARY:assay_depot
|
552
|
+
DTSTART:20081113T132159
|
553
|
+
DTSTAMP:20081217T214043
|
554
|
+
END:VEVENT
|
555
|
+
BEGIN:VEVENT
|
556
|
+
SEQUENCE:0
|
557
|
+
DTEND:20081117T140000
|
558
|
+
UID:2008-12-17T21:40:43-08:00_908944900@pumpkin.local
|
559
|
+
DESCRIPTION:punch in @ 2008-11-17T13:00:00-08:00\npunch out @ 2008-11-17T14
|
560
|
+
:00:00-08:00
|
561
|
+
SUMMARY:assay_depot
|
562
|
+
DTSTART:20081117T130000
|
563
|
+
DTSTAMP:20081217T214043
|
564
|
+
END:VEVENT
|
565
|
+
BEGIN:VEVENT
|
566
|
+
SEQUENCE:0
|
567
|
+
DTEND:20081117T210000
|
568
|
+
UID:2008-12-17T21:40:43-08:00_438101271@pumpkin.local
|
569
|
+
DESCRIPTION:punch in @ 2008-11-17T15:00:00-08:00\npunch out @ 2008-11-17T21
|
570
|
+
:00:00-08:00
|
571
|
+
SUMMARY:assay_depot
|
572
|
+
DTSTART:20081117T150000
|
573
|
+
DTSTAMP:20081217T214043
|
574
|
+
END:VEVENT
|
575
|
+
BEGIN:VEVENT
|
576
|
+
SEQUENCE:0
|
577
|
+
DTEND:20081118T180000
|
578
|
+
UID:2008-12-17T21:40:43-08:00_923435330@pumpkin.local
|
579
|
+
DESCRIPTION:punch in @ 2008-11-18T14:00:00-08:00\npunch out @ 2008-11-18T18
|
580
|
+
:00:00-08:00
|
581
|
+
SUMMARY:assay_depot
|
582
|
+
DTSTART:20081118T140000
|
583
|
+
DTSTAMP:20081217T214043
|
584
|
+
END:VEVENT
|
585
|
+
BEGIN:VEVENT
|
586
|
+
SEQUENCE:0
|
587
|
+
DTEND:20081124T180000
|
588
|
+
UID:2008-12-17T21:40:43-08:00_821153848@pumpkin.local
|
589
|
+
DESCRIPTION:punch in @ 2008-11-24T14:00:00-08:00\npunch out @ 2008-11-24T18
|
590
|
+
:00:00-08:00
|
591
|
+
SUMMARY:assay_depot
|
592
|
+
DTSTART:20081124T140000
|
593
|
+
DTSTAMP:20081217T214043
|
594
|
+
END:VEVENT
|
595
|
+
BEGIN:VEVENT
|
596
|
+
SEQUENCE:0
|
597
|
+
DTEND:20081201T110000
|
598
|
+
UID:2008-12-17T21:40:43-08:00_503841658@pumpkin.local
|
599
|
+
DESCRIPTION:punch in @ 2008-12-01T10:00:00-08:00\npunch out @ 2008-12-01T11
|
600
|
+
:00:00-08:00
|
601
|
+
SUMMARY:assay_depot
|
602
|
+
DTSTART:20081201T100000
|
603
|
+
DTSTAMP:20081217T214043
|
604
|
+
END:VEVENT
|
605
|
+
BEGIN:VEVENT
|
606
|
+
SEQUENCE:0
|
607
|
+
DTEND:20081201T180000
|
608
|
+
UID:2008-12-17T21:40:43-08:00_231830734@pumpkin.local
|
609
|
+
DESCRIPTION:punch in @ 2008-12-01T14:00:00-08:00\npunch out @ 2008-12-01T18
|
610
|
+
:00:00-08:00
|
611
|
+
SUMMARY:assay_depot
|
612
|
+
DTSTART:20081201T140000
|
613
|
+
DTSTAMP:20081217T214043
|
614
|
+
END:VEVENT
|
615
|
+
BEGIN:VEVENT
|
616
|
+
SEQUENCE:0
|
617
|
+
DTEND:20081208T040956
|
618
|
+
UID:2008-12-17T21:40:43-08:00_403969566@pumpkin.local
|
619
|
+
DESCRIPTION:punch in @ 2008-12-08T00:52:55-08:00\npunch out @ 2008-12-08T04
|
620
|
+
:09:56-08:00
|
621
|
+
SUMMARY:assay_depot
|
622
|
+
DTSTART:20081208T005255
|
623
|
+
DTSTAMP:20081217T214043
|
624
|
+
END:VEVENT
|
625
|
+
BEGIN:VEVENT
|
626
|
+
SEQUENCE:0
|
627
|
+
DTEND:20081209T061002
|
628
|
+
UID:2008-12-17T21:40:43-08:00_444026082@pumpkin.local
|
629
|
+
DESCRIPTION:punch in @ 2008-12-09T01:02:19-08:00\npunch out @ 2008-12-09T06
|
630
|
+
:10:02-08:00
|
631
|
+
SUMMARY:assay_depot
|
632
|
+
DTSTART:20081209T010219
|
633
|
+
DTSTAMP:20081217T214043
|
634
|
+
END:VEVENT
|
635
|
+
BEGIN:VEVENT
|
636
|
+
SEQUENCE:0
|
637
|
+
DTEND:20081209T090911
|
638
|
+
UID:2008-12-17T21:40:43-08:00_245234457@pumpkin.local
|
639
|
+
DESCRIPTION:punch in @ 2008-12-09T08:00:59-08:00\npunch out @ 2008-12-09T09
|
640
|
+
:09:11-08:00
|
641
|
+
SUMMARY:assay_depot
|
642
|
+
DTSTART:20081209T080059
|
643
|
+
DTSTAMP:20081217T214043
|
644
|
+
END:VEVENT
|
645
|
+
BEGIN:VEVENT
|
646
|
+
SEQUENCE:0
|
647
|
+
DTEND:20081211T060000
|
648
|
+
UID:2008-12-17T21:40:43-08:00_169609484@pumpkin.local
|
649
|
+
DESCRIPTION:punch in @ 2008-12-11T03:00:00-08:00\npunch out @ 2008-12-11T06
|
650
|
+
:00:00-08:00
|
651
|
+
SUMMARY:assay_depot
|
652
|
+
DTSTART:20081211T030000
|
653
|
+
DTSTAMP:20081217T214043
|
654
|
+
END:VEVENT
|
655
|
+
END:VCALENDAR
|
@@ -0,0 +1,48 @@
|
|
1
|
+
__DIR__ = File.dirname(__FILE__)
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
3
|
+
|
4
|
+
describe "IcalPunch" do
|
5
|
+
it "should load a punch file" do
|
6
|
+
IcalPunch.data.should be_nil
|
7
|
+
IcalPunch.load
|
8
|
+
IcalPunch.data.should_not be_nil
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should output ical from punch data" do
|
12
|
+
IcalPunch.load(File.join(__DIR__,"fixtures", "punch.yml"))
|
13
|
+
IcalPunch.punch_to_calendars
|
14
|
+
IcalPunch.calendars.each do |ical|
|
15
|
+
Icalendar.parse(ical.to_ical).first.events.first.dtend.to_s.should == DateTime.parse("2008-09-02T18:30:00").to_s
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should write an ical from punch data" do
|
20
|
+
tmp_dir = File.join(__DIR__, "tmp")
|
21
|
+
FileUtils.rm_rf(tmp_dir)
|
22
|
+
FileUtils.mkdir(tmp_dir)
|
23
|
+
IcalPunch.load(File.join(__DIR__, "fixtures", "punch.yml"))
|
24
|
+
IcalPunch.to_ical("assay_depot", File.join(tmp_dir, "test.ics"))
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should read an ical from an ical file" do
|
28
|
+
IcalPunch.calendars = nil
|
29
|
+
IcalPunch.calendars.should be_nil
|
30
|
+
IcalPunch.from_ical(File.join(__DIR__, "fixtures", "test.ics"))
|
31
|
+
IcalPunch.calendars.should_not be_nil
|
32
|
+
IcalPunch.calendars.should be_instance_of(Array)
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should output punch from ical" do
|
36
|
+
original_data = IcalPunch.data
|
37
|
+
IcalPunch.data = nil
|
38
|
+
IcalPunch.data.should be_nil
|
39
|
+
|
40
|
+
IcalPunch.calendars = nil
|
41
|
+
IcalPunch.calendars.should be_nil
|
42
|
+
|
43
|
+
IcalPunch.from_ical(File.join(__DIR__, "fixtures", "test.ics"))
|
44
|
+
IcalPunch.calendars_to_punch
|
45
|
+
IcalPunch.data.should_not be_nil
|
46
|
+
#IcalPunch.data.to_yaml.should be_eql(original_data.to_yaml)
|
47
|
+
end
|
48
|
+
end
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|