radiant-event_calendar-extension 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/.gitmodules +0 -0
  2. data/README.md +198 -0
  3. data/Rakefile +139 -0
  4. data/VERSION +1 -0
  5. data/app/controllers/admin/calendars_controller.rb +18 -0
  6. data/app/controllers/admin/event_venues_controller.rb +3 -0
  7. data/app/controllers/admin/events_controller.rb +9 -0
  8. data/app/controllers/admin/icals_controller.rb +26 -0
  9. data/app/controllers/events_controller.rb +201 -0
  10. data/app/models/calendar.rb +57 -0
  11. data/app/models/event.rb +409 -0
  12. data/app/models/event_calendar_page.rb +138 -0
  13. data/app/models/event_occurrence.rb +89 -0
  14. data/app/models/event_recurrence_rule.rb +85 -0
  15. data/app/models/event_venue.rb +17 -0
  16. data/app/models/ical.rb +132 -0
  17. data/app/views/admin/calendars/_actions.html.haml +6 -0
  18. data/app/views/admin/calendars/_form.html.haml +56 -0
  19. data/app/views/admin/calendars/edit.html.haml +11 -0
  20. data/app/views/admin/calendars/help.html.erb +22 -0
  21. data/app/views/admin/calendars/index.html.haml +60 -0
  22. data/app/views/admin/calendars/new.html.haml +10 -0
  23. data/app/views/admin/calendars/show.html.haml +36 -0
  24. data/app/views/admin/event_venues/_event_venue.html.haml +18 -0
  25. data/app/views/admin/event_venues/_form.html.haml +44 -0
  26. data/app/views/admin/event_venues/edit.html.haml +32 -0
  27. data/app/views/admin/event_venues/index.html.haml +33 -0
  28. data/app/views/admin/event_venues/new.html.haml +32 -0
  29. data/app/views/admin/event_venues/remove.html.haml +17 -0
  30. data/app/views/admin/events/_event.html.haml +47 -0
  31. data/app/views/admin/events/_form.html.haml +116 -0
  32. data/app/views/admin/events/_list_head.html.haml +18 -0
  33. data/app/views/admin/events/edit.html.haml +6 -0
  34. data/app/views/admin/events/index.html.haml +23 -0
  35. data/app/views/admin/events/new.html.haml +6 -0
  36. data/app/views/admin/events/remove.html.haml +17 -0
  37. data/app/views/admin/icals/refresh.html.haml +11 -0
  38. data/app/views/admin/icals/refresh_all.html.haml +0 -0
  39. data/app/views/events/_defacet.html.haml +2 -0
  40. data/app/views/events/_event.html.haml +29 -0
  41. data/app/views/events/_event_postscript.html.haml +0 -0
  42. data/app/views/events/_faceting.html.haml +27 -0
  43. data/app/views/events/_minicalendar.html.haml +49 -0
  44. data/app/views/events/_other_page_parts.html.haml +0 -0
  45. data/app/views/events/_views.html.haml +6 -0
  46. data/app/views/events/index.html.haml +56 -0
  47. data/app/views/events/index.ics.erb +7 -0
  48. data/app/views/events/index.rss.builder +20 -0
  49. data/config/routes.rb +13 -0
  50. data/db/migrate/001_create_calendar_and_events.rb +21 -0
  51. data/db/migrate/002_calendar_add_ical_url.rb +9 -0
  52. data/db/migrate/003_add_calendar_category.rb +9 -0
  53. data/db/migrate/004_add_slug.rb +9 -0
  54. data/db/migrate/005_add_subscription_refresh_history.rb +11 -0
  55. data/db/migrate/006_create_icals.rb +13 -0
  56. data/db/migrate/007_move_subscriptions_to_ical.rb +15 -0
  57. data/db/migrate/008_clean_out_calendar.rb +12 -0
  58. data/db/migrate/009_basic_authentication.rb +12 -0
  59. data/db/migrate/010_refresh_interval.rb +9 -0
  60. data/db/migrate/011_more_properties.rb +8 -0
  61. data/db/migrate/20090818133511_simpler_ical_columns.rb +17 -0
  62. data/db/migrate/20090819130919_ownership.rb +17 -0
  63. data/db/migrate/20090820073805_site_scope.rb +13 -0
  64. data/db/migrate/20091118100725_event_status.rb +9 -0
  65. data/db/migrate/20100216080944_more_event_data.rb +31 -0
  66. data/db/migrate/20100218131410_recurrence_parts.rb +19 -0
  67. data/db/migrate/20100219102227_venues_and_categories.rb +23 -0
  68. data/db/migrate/20100221180539_recurrence_rules.rb +34 -0
  69. data/db/migrate/20100222182112_occurrences.rb +13 -0
  70. data/event_calendar_extension.rb +32 -0
  71. data/lib/calendar_period.rb +151 -0
  72. data/lib/event_calendar_admin_ui.rb +78 -0
  73. data/lib/event_calendar_tags.rb +1021 -0
  74. data/lib/event_search.rb +22 -0
  75. data/lib/event_statuses.rb +24 -0
  76. data/lib/tasks/event_calendar_extension_tasks.rake +29 -0
  77. data/pkg/radiant-event_calendar-extension-1.0.0.gem +0 -0
  78. data/public/icals/blank +0 -0
  79. data/public/images/admin/calendar.png +0 -0
  80. data/public/images/event_calendar/calendarlinkbg.png +0 -0
  81. data/public/images/event_calendar/event_shadow.png +0 -0
  82. data/public/images/event_calendar/ical16.png +0 -0
  83. data/public/images/event_calendar/maplinkbg.png +0 -0
  84. data/public/images/event_calendar/one_event.png +0 -0
  85. data/public/images/event_calendar/several_events.png +0 -0
  86. data/public/javascripts/admin/event_calendar.js +240 -0
  87. data/public/stylesheets/sass/admin/event_calendar.sass +266 -0
  88. data/public/stylesheets/sass/admin/modules/_grid.sass +56 -0
  89. data/public/stylesheets/sass/constants.sass +80 -0
  90. data/public/stylesheets/sass/event_calendar.sass +203 -0
  91. data/radiant-event_calendar-extension.gemspec +166 -0
  92. data/spec/datasets/calendar_events_dataset.rb +43 -0
  93. data/spec/datasets/calendar_pages_dataset.rb +8 -0
  94. data/spec/datasets/calendar_sites_dataset.rb +6 -0
  95. data/spec/datasets/calendars_dataset.rb +34 -0
  96. data/spec/datasets/recurrence_dataset.rb +7 -0
  97. data/spec/files/dummy.ics +59 -0
  98. data/spec/files/ny.ics +36 -0
  99. data/spec/lib/event_calendar_page_spec.rb +24 -0
  100. data/spec/models/calendar_spec.rb +11 -0
  101. data/spec/models/event_spec.rb +98 -0
  102. data/spec/models/ical_spec.rb +63 -0
  103. data/spec/models/recurrence_rule_spec.rb +82 -0
  104. data/spec/spec.opts +6 -0
  105. data/spec/spec_helper.rb +36 -0
  106. metadata +238 -0
data/spec/spec.opts ADDED
@@ -0,0 +1,6 @@
1
+ --colour
2
+ --format
3
+ progress
4
+ --loadby
5
+ mtime
6
+ --reverse
@@ -0,0 +1,36 @@
1
+ unless defined? RADIANT_ROOT
2
+ ENV["RAILS_ENV"] = "test"
3
+ case
4
+ when ENV["RADIANT_ENV_FILE"]
5
+ require ENV["RADIANT_ENV_FILE"]
6
+ when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
7
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
8
+ else
9
+ require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
10
+ end
11
+ end
12
+ require "#{RADIANT_ROOT}/spec/spec_helper"
13
+
14
+ Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")
15
+
16
+ if File.directory?(File.dirname(__FILE__) + "/matchers")
17
+ Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
18
+ end
19
+
20
+ Spec::Runner.configure do |config|
21
+ # config.use_transactional_fixtures = true
22
+ # config.use_instantiated_fixtures = false
23
+ # config.fixture_path = RAILS_ROOT + '/spec/fixtures'
24
+
25
+ # You can declare fixtures for each behaviour like this:
26
+ # describe "...." do
27
+ # fixtures :table_a, :table_b
28
+ #
29
+ # Alternatively, if you prefer to declare them only once, you can
30
+ # do so here, like so ...
31
+ #
32
+ # config.global_fixtures = :table_a, :table_b
33
+ #
34
+ # If you declare global fixtures, be aware that they will be declared
35
+ # for all of your examples, even those that don't use them.
36
+ end
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: radiant-event_calendar-extension
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - spanner
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-09-10 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: radiant
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 59
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 0
34
+ version: 0.9.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: ri_cal
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: chronic
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :runtime
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: uuidtools
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :runtime
78
+ version_requirements: *id004
79
+ description: An event calendar extension that administers events locally or draws them from any ical or CalDAV publishers (Google Calendar, .Mac, Darwin Calendar Server, etc.)
80
+ email: will@spanner.org
81
+ executables: []
82
+
83
+ extensions: []
84
+
85
+ extra_rdoc_files:
86
+ - README.md
87
+ files:
88
+ - .gitmodules
89
+ - README.md
90
+ - Rakefile
91
+ - VERSION
92
+ - app/controllers/admin/calendars_controller.rb
93
+ - app/controllers/admin/event_venues_controller.rb
94
+ - app/controllers/admin/events_controller.rb
95
+ - app/controllers/admin/icals_controller.rb
96
+ - app/controllers/events_controller.rb
97
+ - app/models/calendar.rb
98
+ - app/models/event.rb
99
+ - app/models/event_calendar_page.rb
100
+ - app/models/event_occurrence.rb
101
+ - app/models/event_recurrence_rule.rb
102
+ - app/models/event_venue.rb
103
+ - app/models/ical.rb
104
+ - app/views/admin/calendars/_actions.html.haml
105
+ - app/views/admin/calendars/_form.html.haml
106
+ - app/views/admin/calendars/edit.html.haml
107
+ - app/views/admin/calendars/help.html.erb
108
+ - app/views/admin/calendars/index.html.haml
109
+ - app/views/admin/calendars/new.html.haml
110
+ - app/views/admin/calendars/show.html.haml
111
+ - app/views/admin/event_venues/_event_venue.html.haml
112
+ - app/views/admin/event_venues/_form.html.haml
113
+ - app/views/admin/event_venues/edit.html.haml
114
+ - app/views/admin/event_venues/index.html.haml
115
+ - app/views/admin/event_venues/new.html.haml
116
+ - app/views/admin/event_venues/remove.html.haml
117
+ - app/views/admin/events/_event.html.haml
118
+ - app/views/admin/events/_form.html.haml
119
+ - app/views/admin/events/_list_head.html.haml
120
+ - app/views/admin/events/edit.html.haml
121
+ - app/views/admin/events/index.html.haml
122
+ - app/views/admin/events/new.html.haml
123
+ - app/views/admin/events/remove.html.haml
124
+ - app/views/admin/icals/refresh.html.haml
125
+ - app/views/admin/icals/refresh_all.html.haml
126
+ - app/views/events/_defacet.html.haml
127
+ - app/views/events/_event.html.haml
128
+ - app/views/events/_event_postscript.html.haml
129
+ - app/views/events/_faceting.html.haml
130
+ - app/views/events/_minicalendar.html.haml
131
+ - app/views/events/_other_page_parts.html.haml
132
+ - app/views/events/_views.html.haml
133
+ - app/views/events/index.html.haml
134
+ - app/views/events/index.ics.erb
135
+ - app/views/events/index.rss.builder
136
+ - config/routes.rb
137
+ - db/migrate/001_create_calendar_and_events.rb
138
+ - db/migrate/002_calendar_add_ical_url.rb
139
+ - db/migrate/003_add_calendar_category.rb
140
+ - db/migrate/004_add_slug.rb
141
+ - db/migrate/005_add_subscription_refresh_history.rb
142
+ - db/migrate/006_create_icals.rb
143
+ - db/migrate/007_move_subscriptions_to_ical.rb
144
+ - db/migrate/008_clean_out_calendar.rb
145
+ - db/migrate/009_basic_authentication.rb
146
+ - db/migrate/010_refresh_interval.rb
147
+ - db/migrate/011_more_properties.rb
148
+ - db/migrate/20090818133511_simpler_ical_columns.rb
149
+ - db/migrate/20090819130919_ownership.rb
150
+ - db/migrate/20090820073805_site_scope.rb
151
+ - db/migrate/20091118100725_event_status.rb
152
+ - db/migrate/20100216080944_more_event_data.rb
153
+ - db/migrate/20100218131410_recurrence_parts.rb
154
+ - db/migrate/20100219102227_venues_and_categories.rb
155
+ - db/migrate/20100221180539_recurrence_rules.rb
156
+ - db/migrate/20100222182112_occurrences.rb
157
+ - event_calendar_extension.rb
158
+ - lib/calendar_period.rb
159
+ - lib/event_calendar_admin_ui.rb
160
+ - lib/event_calendar_tags.rb
161
+ - lib/event_search.rb
162
+ - lib/event_statuses.rb
163
+ - lib/tasks/event_calendar_extension_tasks.rake
164
+ - pkg/radiant-event_calendar-extension-1.0.0.gem
165
+ - public/icals/blank
166
+ - public/images/admin/calendar.png
167
+ - public/images/event_calendar/calendarlinkbg.png
168
+ - public/images/event_calendar/event_shadow.png
169
+ - public/images/event_calendar/ical16.png
170
+ - public/images/event_calendar/maplinkbg.png
171
+ - public/images/event_calendar/one_event.png
172
+ - public/images/event_calendar/several_events.png
173
+ - public/javascripts/admin/event_calendar.js
174
+ - public/stylesheets/sass/admin/event_calendar.sass
175
+ - public/stylesheets/sass/admin/modules/_grid.sass
176
+ - public/stylesheets/sass/constants.sass
177
+ - public/stylesheets/sass/event_calendar.sass
178
+ - radiant-event_calendar-extension.gemspec
179
+ - spec/datasets/calendar_events_dataset.rb
180
+ - spec/datasets/calendar_pages_dataset.rb
181
+ - spec/datasets/calendar_sites_dataset.rb
182
+ - spec/datasets/calendars_dataset.rb
183
+ - spec/datasets/recurrence_dataset.rb
184
+ - spec/files/dummy.ics
185
+ - spec/files/ny.ics
186
+ - spec/lib/event_calendar_page_spec.rb
187
+ - spec/models/calendar_spec.rb
188
+ - spec/models/event_spec.rb
189
+ - spec/models/ical_spec.rb
190
+ - spec/models/recurrence_rule_spec.rb
191
+ - spec/spec.opts
192
+ - spec/spec_helper.rb
193
+ has_rdoc: true
194
+ homepage: http://github.com/radiant/radiant-event_calendar-extension
195
+ licenses: []
196
+
197
+ post_install_message:
198
+ rdoc_options:
199
+ - --charset=UTF-8
200
+ require_paths:
201
+ - lib
202
+ required_ruby_version: !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ hash: 3
208
+ segments:
209
+ - 0
210
+ version: "0"
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
212
+ none: false
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ hash: 3
217
+ segments:
218
+ - 0
219
+ version: "0"
220
+ requirements: []
221
+
222
+ rubyforge_project:
223
+ rubygems_version: 1.3.7
224
+ signing_key:
225
+ specification_version: 3
226
+ summary: Event Calendar Extension for Radiant CMS
227
+ test_files:
228
+ - spec/datasets/calendar_events_dataset.rb
229
+ - spec/datasets/calendar_pages_dataset.rb
230
+ - spec/datasets/calendar_sites_dataset.rb
231
+ - spec/datasets/calendars_dataset.rb
232
+ - spec/datasets/recurrence_dataset.rb
233
+ - spec/lib/event_calendar_page_spec.rb
234
+ - spec/models/calendar_spec.rb
235
+ - spec/models/event_spec.rb
236
+ - spec/models/ical_spec.rb
237
+ - spec/models/recurrence_rule_spec.rb
238
+ - spec/spec_helper.rb