icalendar2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/CHANGELOG.md +2 -0
  2. data/README.md +89 -0
  3. data/lib/icalendar2/calendar.rb +85 -0
  4. data/lib/icalendar2/calendar_property/calscale.rb +9 -0
  5. data/lib/icalendar2/calendar_property/method.rb +9 -0
  6. data/lib/icalendar2/calendar_property/prodid.rb +9 -0
  7. data/lib/icalendar2/calendar_property/version.rb +9 -0
  8. data/lib/icalendar2/calendar_property.rb +12 -0
  9. data/lib/icalendar2/component/base.rb +90 -0
  10. data/lib/icalendar2/component/event.rb +32 -0
  11. data/lib/icalendar2/component.rb +8 -0
  12. data/lib/icalendar2/parameter/altrep.rb +8 -0
  13. data/lib/icalendar2/parameter/base.rb +34 -0
  14. data/lib/icalendar2/parameter/cn.rb +8 -0
  15. data/lib/icalendar2/parameter/cutype.rb +8 -0
  16. data/lib/icalendar2/parameter/delegated_from.rb +8 -0
  17. data/lib/icalendar2/parameter/delegated_to.rb +8 -0
  18. data/lib/icalendar2/parameter/dir.rb +8 -0
  19. data/lib/icalendar2/parameter/encoding.rb +8 -0
  20. data/lib/icalendar2/parameter/fmttype.rb +10 -0
  21. data/lib/icalendar2/parameter.rb +4 -0
  22. data/lib/icalendar2/parser.rb +136 -0
  23. data/lib/icalendar2/property/attach.rb +10 -0
  24. data/lib/icalendar2/property/attendee.rb +8 -0
  25. data/lib/icalendar2/property/base.rb +80 -0
  26. data/lib/icalendar2/property/categories.rb +10 -0
  27. data/lib/icalendar2/property/class.rb +9 -0
  28. data/lib/icalendar2/property/comment.rb +8 -0
  29. data/lib/icalendar2/property/contact.rb +8 -0
  30. data/lib/icalendar2/property/description.rb +9 -0
  31. data/lib/icalendar2/property/dtend.rb +9 -0
  32. data/lib/icalendar2/property/dtstamp.rb +9 -0
  33. data/lib/icalendar2/property/dtstart.rb +9 -0
  34. data/lib/icalendar2/property/exdate.rb +10 -0
  35. data/lib/icalendar2/property/geo.rb +9 -0
  36. data/lib/icalendar2/property/last_mod.rb +9 -0
  37. data/lib/icalendar2/property/location.rb +9 -0
  38. data/lib/icalendar2/property/nil.rb +13 -0
  39. data/lib/icalendar2/property/organizer.rb +9 -0
  40. data/lib/icalendar2/property/priority.rb +9 -0
  41. data/lib/icalendar2/property/rdate.rb +8 -0
  42. data/lib/icalendar2/property/related_to.rb +8 -0
  43. data/lib/icalendar2/property/resources.rb +8 -0
  44. data/lib/icalendar2/property/rrule.rb +10 -0
  45. data/lib/icalendar2/property/rstatus.rb +8 -0
  46. data/lib/icalendar2/property/sequence.rb +9 -0
  47. data/lib/icalendar2/property/summary.rb +9 -0
  48. data/lib/icalendar2/property/uid.rb +9 -0
  49. data/lib/icalendar2/property.rb +9 -0
  50. data/lib/icalendar2/tokens.rb +32 -0
  51. data/lib/icalendar2/value/binary_value.rb +8 -0
  52. data/lib/icalendar2/value/boolean_value.rb +6 -0
  53. data/lib/icalendar2/value/cal_address_value.rb +6 -0
  54. data/lib/icalendar2/value/date_time_value.rb +14 -0
  55. data/lib/icalendar2/value/date_value.rb +14 -0
  56. data/lib/icalendar2/value/duration_value.rb +14 -0
  57. data/lib/icalendar2/value/float_value.rb +7 -0
  58. data/lib/icalendar2/value/integer_value.rb +6 -0
  59. data/lib/icalendar2/value/lat_lon_value.rb +6 -0
  60. data/lib/icalendar2/value/period_value.rb +8 -0
  61. data/lib/icalendar2/value/recur_value.rb +39 -0
  62. data/lib/icalendar2/value/text_value.rb +17 -0
  63. data/lib/icalendar2/value/time_value.rb +6 -0
  64. data/lib/icalendar2/value/uri_value.rb +6 -0
  65. data/lib/icalendar2/value.rb +45 -0
  66. data/lib/icalendar2/version.rb +3 -0
  67. data/lib/icalendar2.rb +74 -0
  68. metadata +131 -0
data/lib/icalendar2.rb ADDED
@@ -0,0 +1,74 @@
1
+ require 'date'
2
+
3
+ module Icalendar2
4
+ autoload :Calendar, "icalendar2/calendar"
5
+
6
+ autoload :Parser, "icalendar2/parser"
7
+ autoload :Tokens, "icalendar2/tokens"
8
+
9
+ autoload :Component, "icalendar2/component"
10
+ autoload :Event, "icalendar2/component/event"
11
+ module Component
12
+ autoload :Base, "icalendar2/component/base"
13
+ end
14
+
15
+ autoload :Value, "icalendar2/value"
16
+ autoload :BinaryValue, "icalendar2/value/binary_value"
17
+ autoload :BooleanValue, "icalendar2/value/boolean_value"
18
+ autoload :CalAddressValue, "icalendar2/value/cal_address_value"
19
+ autoload :DateValue, "icalendar2/value/date_value"
20
+ autoload :DateTimeValue, "icalendar2/value/date_time_value"
21
+ autoload :DurationValue, "icalendar2/value/duration_value"
22
+ autoload :FloatValue, "icalendar2/value/float_value"
23
+ autoload :IntegerValue, "icalendar2/value/integer_value"
24
+ autoload :LatLonValue, "icalendar2/value/lat_lon_value"
25
+ autoload :PeriodValue, "icalendar2/value/period_value"
26
+ autoload :RecurValue, "icalendar2/value/recur_value"
27
+ autoload :TextValue, "icalendar2/value/text_value"
28
+ autoload :TimeValue, "icalendar2/value/time_value"
29
+ autoload :UriValue, "icalendar2/value/uri_value"
30
+
31
+ autoload :CalendarProperty, "icalendar2/calendar_property"
32
+ module CalendarProperty
33
+ autoload :Calscale, "icalendar2/calendar_property/calscale"
34
+ autoload :Method, "icalendar2/calendar_property/method"
35
+ autoload :Prodid, "icalendar2/calendar_property/prodid"
36
+ autoload :Version, "icalendar2/calendar_property/version"
37
+ end
38
+
39
+ autoload :Parameter, "icalendar2/parameter"
40
+ module Parameter
41
+ autoload :Base, "icalendar2/parameter/base"
42
+ autoload :Fmttype, "icalendar2/parameter/fmttype"
43
+ end
44
+
45
+ autoload :Property, "icalendar2/property"
46
+ module Property
47
+ autoload :Base, "icalendar2/property/base"
48
+ autoload :Nil, "icalendar2/property/nil"
49
+ autoload :Attach, "icalendar2/property/attach"
50
+ autoload :Attendee, "icalendar2/property/attendee"
51
+ autoload :Categories, "icalendar2/property/categories"
52
+ autoload :Klass, "icalendar2/property/class"
53
+ autoload :Comment, "icalendar2/property/comment"
54
+ autoload :Contact, "icalendar2/property/contact"
55
+ autoload :Description, "icalendar2/property/description"
56
+ autoload :Dtend, "icalendar2/property/dtend"
57
+ autoload :Dtstamp, "icalendar2/property/dtstamp"
58
+ autoload :Dtstart, "icalendar2/property/dtstart"
59
+ autoload :Exdate, "icalendar2/property/exdate"
60
+ autoload :Geo, "icalendar2/property/geo"
61
+ autoload :LastMod, "icalendar2/property/last_mod"
62
+ autoload :Location, "icalendar2/property/location"
63
+ autoload :Organizer, "icalendar2/property/organizer"
64
+ autoload :Priority, "icalendar2/property/priority"
65
+ autoload :Rdate, "icalendar2/property/rdate"
66
+ autoload :Resources, "icalendar2/property/resources"
67
+ autoload :RelatedTo, "icalendar2/property/related_to"
68
+ autoload :Rrule, "icalendar2/property/rrule"
69
+ autoload :Rstatus, "icalendar2/property/rstatus"
70
+ autoload :Sequence, "icalendar2/property/sequence"
71
+ autoload :Summary, "icalendar2/property/summary"
72
+ autoload :Uid, "icalendar2/property/uid"
73
+ end
74
+ end
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: icalendar2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Eric Carty-Fickes
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '2'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2'
30
+ description: Borrows fromt the API used by the icalendar Ruby gem. Outputs iCalendar
31
+ (RFC 5545) formatted text.
32
+ email:
33
+ - ericcf@northwestern.edu
34
+ executables: []
35
+ extensions: []
36
+ extra_rdoc_files:
37
+ - CHANGELOG.md
38
+ - README.md
39
+ files:
40
+ - lib/icalendar2/calendar.rb
41
+ - lib/icalendar2/calendar_property/calscale.rb
42
+ - lib/icalendar2/calendar_property/method.rb
43
+ - lib/icalendar2/calendar_property/prodid.rb
44
+ - lib/icalendar2/calendar_property/version.rb
45
+ - lib/icalendar2/calendar_property.rb
46
+ - lib/icalendar2/component/base.rb
47
+ - lib/icalendar2/component/event.rb
48
+ - lib/icalendar2/component.rb
49
+ - lib/icalendar2/parameter/altrep.rb
50
+ - lib/icalendar2/parameter/base.rb
51
+ - lib/icalendar2/parameter/cn.rb
52
+ - lib/icalendar2/parameter/cutype.rb
53
+ - lib/icalendar2/parameter/delegated_from.rb
54
+ - lib/icalendar2/parameter/delegated_to.rb
55
+ - lib/icalendar2/parameter/dir.rb
56
+ - lib/icalendar2/parameter/encoding.rb
57
+ - lib/icalendar2/parameter/fmttype.rb
58
+ - lib/icalendar2/parameter.rb
59
+ - lib/icalendar2/parser.rb
60
+ - lib/icalendar2/property/attach.rb
61
+ - lib/icalendar2/property/attendee.rb
62
+ - lib/icalendar2/property/base.rb
63
+ - lib/icalendar2/property/categories.rb
64
+ - lib/icalendar2/property/class.rb
65
+ - lib/icalendar2/property/comment.rb
66
+ - lib/icalendar2/property/contact.rb
67
+ - lib/icalendar2/property/description.rb
68
+ - lib/icalendar2/property/dtend.rb
69
+ - lib/icalendar2/property/dtstamp.rb
70
+ - lib/icalendar2/property/dtstart.rb
71
+ - lib/icalendar2/property/exdate.rb
72
+ - lib/icalendar2/property/geo.rb
73
+ - lib/icalendar2/property/last_mod.rb
74
+ - lib/icalendar2/property/location.rb
75
+ - lib/icalendar2/property/nil.rb
76
+ - lib/icalendar2/property/organizer.rb
77
+ - lib/icalendar2/property/priority.rb
78
+ - lib/icalendar2/property/rdate.rb
79
+ - lib/icalendar2/property/related_to.rb
80
+ - lib/icalendar2/property/resources.rb
81
+ - lib/icalendar2/property/rrule.rb
82
+ - lib/icalendar2/property/rstatus.rb
83
+ - lib/icalendar2/property/sequence.rb
84
+ - lib/icalendar2/property/summary.rb
85
+ - lib/icalendar2/property/uid.rb
86
+ - lib/icalendar2/property.rb
87
+ - lib/icalendar2/tokens.rb
88
+ - lib/icalendar2/value/binary_value.rb
89
+ - lib/icalendar2/value/boolean_value.rb
90
+ - lib/icalendar2/value/cal_address_value.rb
91
+ - lib/icalendar2/value/date_time_value.rb
92
+ - lib/icalendar2/value/date_value.rb
93
+ - lib/icalendar2/value/duration_value.rb
94
+ - lib/icalendar2/value/float_value.rb
95
+ - lib/icalendar2/value/integer_value.rb
96
+ - lib/icalendar2/value/lat_lon_value.rb
97
+ - lib/icalendar2/value/period_value.rb
98
+ - lib/icalendar2/value/recur_value.rb
99
+ - lib/icalendar2/value/text_value.rb
100
+ - lib/icalendar2/value/time_value.rb
101
+ - lib/icalendar2/value/uri_value.rb
102
+ - lib/icalendar2/value.rb
103
+ - lib/icalendar2/version.rb
104
+ - lib/icalendar2.rb
105
+ - CHANGELOG.md
106
+ - README.md
107
+ homepage: https://github.com/ericcf/icalendar2
108
+ licenses: []
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 1.8.24
128
+ signing_key:
129
+ specification_version: 3
130
+ summary: iCalendar (RFC 5545) Ruby library
131
+ test_files: []