radiant-event_calendar-extension 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,14 +11,14 @@ class EventCalendarPage < Page
|
|
11
11
|
true
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
16
|
-
|
17
|
-
if
|
14
|
+
def find_by_path(path, live = true, clean = true)
|
15
|
+
path = clean_path(path) if clean
|
16
|
+
my_path = self.path_without_parts
|
17
|
+
if path =~ /^#{Regexp.quote(my_path)}(.*)/
|
18
18
|
read_parameters($1)
|
19
19
|
self
|
20
20
|
else
|
21
|
-
|
21
|
+
nil
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -62,9 +62,9 @@ class EventCalendarPage < Page
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
def
|
65
|
+
def path_parts
|
66
66
|
{
|
67
|
-
:path =>
|
67
|
+
:path => path_without_parts,
|
68
68
|
:day => @calendar_day,
|
69
69
|
:month => @calendar_month,
|
70
70
|
:year => @calendar_year,
|
@@ -73,14 +73,14 @@ class EventCalendarPage < Page
|
|
73
73
|
}
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
77
|
-
parts =
|
76
|
+
def path_with_parts(overrides={})
|
77
|
+
parts = path_parts.merge(overrides)
|
78
78
|
page = parts.delete(:page)
|
79
79
|
path = parts.delete(:path)
|
80
80
|
parts[:month] = month_names[parts[:month]].downcase unless parts[:month].blank? || parts[:month] =~ /[a-zA-Z]/
|
81
|
-
|
81
|
+
clean_path([path, parts.values, page].select{|p| !p.blank?}.join('/'))
|
82
82
|
end
|
83
|
-
alias_method_chain :
|
83
|
+
alias_method_chain :path, :parts
|
84
84
|
|
85
85
|
def month_names
|
86
86
|
@month_names ||= (I18n.t 'date.month_names').dup
|
@@ -109,7 +109,7 @@ class EventCalendarPage < Page
|
|
109
109
|
nolinks = (tag.attr['nolinks'] == 'true')
|
110
110
|
|
111
111
|
if calendar_category
|
112
|
-
crumbs = nolinks ? [page.breadcrumb] : [%{<a href="#{
|
112
|
+
crumbs = nolinks ? [page.breadcrumb] : [%{<a href="#{path}">#{tag.render('breadcrumb')}</a>}]
|
113
113
|
if calendar_slug
|
114
114
|
crumbs << (nolinks ? calendar_category : %{<a href="#{url}/#{calendar_category}">#{calendar_category}</a>})
|
115
115
|
crumbs << calendar_slug
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RadiantEventCalendarExtension
|
2
|
-
VERSION = '1.5.
|
2
|
+
VERSION = '1.5.1'
|
3
3
|
SUMMARY = %Q{Event Calendar Extension for Radiant CMS}
|
4
4
|
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.)"
|
5
5
|
URL = "http://github.com/radiant/radiant-event_calendar-extension"
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-event_calendar-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 1
|
10
|
+
version: 1.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Loren Johnson
|
@@ -17,8 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-09-
|
21
|
-
default_executable:
|
20
|
+
date: 2011-09-14 00:00:00 Z
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
24
23
|
name: ri_cal
|
@@ -183,6 +182,7 @@ files:
|
|
183
182
|
- public/stylesheets/sass/admin/event_calendar.sass
|
184
183
|
- public/stylesheets/sass/admin/event_calendar_dashboard.sass
|
185
184
|
- public/stylesheets/sass/event_calendar.sass
|
185
|
+
- radiant-event_calendar-extension-1.5.0.gem
|
186
186
|
- radiant-event_calendar-extension.gemspec
|
187
187
|
- Rakefile
|
188
188
|
- README.md
|
@@ -201,11 +201,10 @@ files:
|
|
201
201
|
- spec/models/recurrence_rule_spec.rb
|
202
202
|
- spec/spec.opts
|
203
203
|
- spec/spec_helper.rb
|
204
|
-
has_rdoc: true
|
205
204
|
homepage: http://github.com/radiant/radiant-event_calendar-extension
|
206
205
|
licenses: []
|
207
206
|
|
208
|
-
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.5.
|
207
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-event_calendar-extension', :version => '~> 1.5.1'\n\n "
|
209
208
|
rdoc_options: []
|
210
209
|
|
211
210
|
require_paths:
|
@@ -231,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
230
|
requirements: []
|
232
231
|
|
233
232
|
rubyforge_project:
|
234
|
-
rubygems_version: 1.
|
233
|
+
rubygems_version: 1.8.10
|
235
234
|
signing_key:
|
236
235
|
specification_version: 3
|
237
236
|
summary: Event Calendar Extension for Radiant CMS
|