radiant-taggable_events-extension 1.3.1 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,9 +1,21 @@
1
1
  # Taggable Events
2
2
 
3
- This is a tiny bit of glue to associate taggable's tags with event_calendar's events. It also provides a few useful radius tags for your calendar pages and adds a `tagcloud` page part to the main calendar view.
3
+ This little extension combines [taggable](https://github.com/spanner/radiant-taggable-extension/) and the [event_calendar](https://github.com/radiant/radiant-event_calendar-extension/) to add event tags, tag clouds and faceted search to the event calendar and (if installed) event map.
4
+
5
+ ## Examples
6
+
7
+ This extension is mostly invisible: it adds in small ways to the existing behaviour of the event_calendar controllers, so that for example the existing date-period faceting block that is displayed by:
8
+
9
+ <r:content part="faceting" />
10
+
11
+ Now includes tagging facets. If you add add this to the calendar layout:
12
+
13
+ <events:tag_cloud />
14
+
15
+ Then the usual cloud of tags will be displayed, and in a calendar view they will add to the filter set. Similar reducing links will be appended to each listed event.
4
16
 
5
17
  ## Author & Copyright
6
18
 
7
19
  * William Ross, for spanner. will at spanner.org
8
- * Copyright 2010 spanner ltd
20
+ * Copyright 2009-11 spanner ltd
9
21
  * released under the same terms as Rails and/or Radiant
data/Rakefile CHANGED
@@ -1,20 +1,3 @@
1
- begin
2
- require 'jeweler'
3
- Jeweler::Tasks.new do |gem|
4
- gem.name = "radiant-taggable_events-extension"
5
- gem.summary = %Q{Tagging Extension for the Radiant CMS Event_Calendar}
6
- gem.description = %Q{A tiny bit of glue to attach tags to event_calendar events and define some radius tags useful on calendar pages}
7
- gem.email = "will@spanner.org"
8
- gem.homepage = "http://github.com/spanner/radiant-taggable_events-extension"
9
- gem.authors = ["spanner"]
10
- gem.add_dependency "radiant", "~> 0.9.0"
11
- gem.add_dependency "radiant-event_calendar-extension", "~> 1.3.0"
12
- gem.add_dependency "radiant-taggable-extension", "~> 1.2.0"
13
- end
14
- rescue LoadError
15
- puts "Jeweler (or a dependency) not available. This is only required if you plan to package taggable_events as a gem."
16
- end
17
-
18
1
  # In rails 1.2, plugins aren't available in the path until they're loaded.
19
2
  # Check to see if the rspec plugin is installed first and require
20
3
  # it if it is. If not, use the gem version.
@@ -0,0 +1,8 @@
1
+ module RadiantTaggableEventsExtension
2
+ VERSION = '2.0.0.rc1'
3
+ SUMMARY = %q{Adds event tags, tag clouds and faceted search to the event_calendar extension.}
4
+ DESCRIPTION = %q{A tiny bit of glue to attach tags to event_calendar events and put tag clouds and faceted retrieval on event calendar pages.}
5
+ URL = "http://spanner.org/radiant/taggable_event"
6
+ AUTHORS = ["William Ross"]
7
+ EMAIL = ["radiant@spanner.org"]
8
+ end
@@ -1,5 +1,7 @@
1
1
  module TaggableEventTags
2
2
  include Radiant::Taggable
3
+ include EventCalendarTags
4
+
3
5
  class TagError < StandardError; end
4
6
 
5
7
  desc %{
@@ -1,4 +1,4 @@
1
- module TaggedEventsController
1
+ module TaggableEventsController
2
2
 
3
3
  def self.included(base)
4
4
  base.class_eval {
@@ -1,75 +1,34 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "radiant-taggable_events-extension"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{radiant-taggable_events-extension}
8
- s.version = "1.3.1"
6
+ s.name = "radiant-taggable_events-extension"
7
+ s.version = RadiantTaggableEventsExtension::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = RadiantTaggableEventsExtension::AUTHORS
10
+ s.email = RadiantTaggableEventsExtension::EMAIL
11
+ s.homepage = RadiantTaggableEventsExtension::URL
12
+ s.summary = RadiantTaggableEventsExtension::SUMMARY
13
+ s.description = RadiantTaggableEventsExtension::DESCRIPTION
9
14
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["spanner"]
12
- s.date = %q{2010-12-09}
13
- s.description = %q{A tiny bit of glue to attach tags to event_calendar events and define some radius tags useful on calendar pages}
14
- s.email = %q{will@spanner.org}
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- ".gitignore",
20
- "README.md",
21
- "Rakefile",
22
- "VERSION",
23
- "app/views/events/_defacet.html.haml",
24
- "app/views/events/_keywords.html.haml",
25
- "app/views/events/_other_page_parts.html.haml",
26
- "config/locales/en.yml",
27
- "cucumber.yml",
28
- "db/migrate/20100301074622_import_keywords.rb",
29
- "features/support/env.rb",
30
- "features/support/paths.rb",
31
- "lib/taggable_event.rb",
32
- "lib/taggable_event_tags.rb",
33
- "lib/tagged_events_controller.rb",
34
- "lib/tasks/taggable_events_extension_tasks.rake",
35
- "public/images/furniture/detag.png",
36
- "radiant-taggable_events-extension.gemspec",
37
- "spec/datasets/events_dataset.rb",
38
- "spec/datasets/tags_dataset.rb",
39
- "spec/lib/taggable_event_spec.rb",
40
- "spec/spec.opts",
41
- "spec/spec_helper.rb",
42
- "taggable_events_extension.rb"
43
- ]
44
- s.homepage = %q{http://github.com/spanner/radiant-taggable_events-extension}
45
- s.rdoc_options = ["--charset=UTF-8"]
46
- s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.3.7}
48
- s.summary = %q{Tagging Extension for the Radiant CMS Event_Calendar}
49
- s.test_files = [
50
- "spec/datasets/events_dataset.rb",
51
- "spec/datasets/tags_dataset.rb",
52
- "spec/lib/taggable_event_spec.rb",
53
- "spec/spec_helper.rb"
54
- ]
55
-
56
- if s.respond_to? :specification_version then
57
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
58
- s.specification_version = 3
15
+ s.add_dependency "radiant-event_calendar-extension", "~> 1.4.3"
16
+ s.add_dependency "radiant-taggable-extension", "~> 2.0.0.rc"
59
17
 
60
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
61
- s.add_runtime_dependency(%q<radiant>, ["~> 0.9.0"])
62
- s.add_runtime_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
63
- s.add_runtime_dependency(%q<radiant-taggable-extension>, ["~> 1.2.0"])
64
- else
65
- s.add_dependency(%q<radiant>, ["~> 0.9.0"])
66
- s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
67
- s.add_dependency(%q<radiant-taggable-extension>, ["~> 1.2.0"])
68
- end
18
+ ignores = if File.exist?('.gitignore')
19
+ File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
69
20
  else
70
- s.add_dependency(%q<radiant>, ["~> 0.9.0"])
71
- s.add_dependency(%q<radiant-event_calendar-extension>, ["~> 1.3.0"])
72
- s.add_dependency(%q<radiant-taggable-extension>, ["~> 1.2.0"])
21
+ []
73
22
  end
74
- end
23
+ s.files = Dir['**/*'] - ignores
24
+ s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
25
+ # s.executables = Dir['bin/*'] - ignores
26
+ s.require_paths = ["lib"]
75
27
 
28
+ s.post_install_message = %{
29
+ Add this to your radiant project with:
30
+
31
+ config.gem 'radiant-taggable_events-extension', :version => '~> #{RadiantTaggableEventsExtension::VERSION}'
32
+
33
+ }
34
+ end
@@ -4,7 +4,7 @@ describe Calendar do
4
4
  dataset :events
5
5
 
6
6
  it "should report itself taggable" do
7
- Calendar.is_taggable?.should be_true
7
+ Calendar.has_tags?.should be_true
8
8
  end
9
9
 
10
10
  it "should have attached tags" do
@@ -16,7 +16,7 @@ describe EventVenue do
16
16
  dataset :events
17
17
 
18
18
  it "should report itself taggable" do
19
- EventVenue.is_taggable?.should be_true
19
+ EventVenue.has_tags?.should be_true
20
20
  end
21
21
 
22
22
  it "should have attached tags" do
@@ -28,7 +28,7 @@ describe Event do
28
28
  dataset :events
29
29
 
30
30
  it "should report itself taggable" do
31
- Event.is_taggable?.should be_true
31
+ Event.has_tags?.should be_true
32
32
  end
33
33
 
34
34
  it "should have attached tags" do
@@ -1,18 +1,19 @@
1
1
  # Uncomment this if you reference any of your controllers in activate
2
2
  require_dependency 'application_controller'
3
+ require "radiant-taggable_events-extension"
3
4
 
4
5
  class TaggableEventsExtension < Radiant::Extension
5
- version "1.3.1"
6
- description "A tiny bit of glue to attach tags to event_calendar events and define some radius tags useful on calendar pages"
7
- url "http://github.com/spanner/radiant-taggable_events-extension"
8
-
6
+ version RadiantTaggableEventsExtension::VERSION
7
+ description RadiantTaggableEventsExtension::DESCRIPTION
8
+ url RadiantTaggableEventsExtension::URL
9
+
9
10
  def activate
10
- Calendar.send :is_taggable # make calendars taggable
11
- EventVenue.send :is_taggable # make event venues taggable
12
- Event.send :is_taggable # make events taggable
13
- Event.send :include, TaggableEvent # and inherit tags from venue and calendar
14
- EventsController.send :include, TaggedEventsController # further complicate the retrieval of events by adding tag-filters
15
- Page.send :include, TaggableEventTags # supports tag conditions on r:events:* radius tags
11
+ Calendar.send :has_tags # make calendars taggable
12
+ EventVenue.send :has_tags # make event venues taggable
13
+ Event.send :has_tags # make events taggable
14
+ Event.send :include, TaggableEvent # ...and inherit tags from venue and calendar
15
+ EventsController.send :include, TaggableEventsController # further complicate the retrieval of events by adding tag-filters
16
+ Page.send :include, TaggableEventTags # support tag conditions on r:events:* radius tags
16
17
  end
17
18
 
18
19
  end
metadata CHANGED
@@ -1,84 +1,67 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-taggable_events-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 15424087
5
+ prerelease: 6
6
6
  segments:
7
+ - 2
8
+ - 0
9
+ - 0
10
+ - rc
7
11
  - 1
8
- - 3
9
- - 1
10
- version: 1.3.1
12
+ version: 2.0.0.rc1
11
13
  platform: ruby
12
14
  authors:
13
- - spanner
15
+ - William Ross
14
16
  autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2010-12-09 00:00:00 +00:00
19
- default_executable:
20
+ date: 2011-07-05 00:00:00 Z
20
21
  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
22
  - !ruby/object:Gem::Dependency
38
23
  name: radiant-event_calendar-extension
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
41
26
  none: false
42
27
  requirements:
43
28
  - - ~>
44
29
  - !ruby/object:Gem::Version
45
- hash: 27
30
+ hash: 1
46
31
  segments:
47
32
  - 1
33
+ - 4
48
34
  - 3
49
- - 0
50
- version: 1.3.0
35
+ version: 1.4.3
51
36
  type: :runtime
52
- version_requirements: *id002
37
+ version_requirements: *id001
53
38
  - !ruby/object:Gem::Dependency
54
39
  name: radiant-taggable-extension
55
40
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ requirement: &id002 !ruby/object:Gem::Requirement
57
42
  none: false
58
43
  requirements:
59
44
  - - ~>
60
45
  - !ruby/object:Gem::Version
61
- hash: 31
46
+ hash: 7712058
62
47
  segments:
63
- - 1
64
48
  - 2
65
49
  - 0
66
- version: 1.2.0
50
+ - 0
51
+ - rc
52
+ version: 2.0.0.rc
67
53
  type: :runtime
68
- version_requirements: *id003
69
- description: A tiny bit of glue to attach tags to event_calendar events and define some radius tags useful on calendar pages
70
- email: will@spanner.org
54
+ version_requirements: *id002
55
+ description: A tiny bit of glue to attach tags to event_calendar events and put tag clouds and faceted retrieval on event calendar pages.
56
+ email:
57
+ - radiant@spanner.org
71
58
  executables: []
72
59
 
73
60
  extensions: []
74
61
 
75
- extra_rdoc_files:
76
- - README.md
62
+ extra_rdoc_files: []
63
+
77
64
  files:
78
- - .gitignore
79
- - README.md
80
- - Rakefile
81
- - VERSION
82
65
  - app/views/events/_defacet.html.haml
83
66
  - app/views/events/_keywords.html.haml
84
67
  - app/views/events/_other_page_parts.html.haml
@@ -87,25 +70,27 @@ files:
87
70
  - db/migrate/20100301074622_import_keywords.rb
88
71
  - features/support/env.rb
89
72
  - features/support/paths.rb
73
+ - lib/radiant-taggable_events-extension.rb
90
74
  - lib/taggable_event.rb
91
75
  - lib/taggable_event_tags.rb
92
- - lib/tagged_events_controller.rb
76
+ - lib/taggable_events_controller.rb
93
77
  - lib/tasks/taggable_events_extension_tasks.rake
94
78
  - public/images/furniture/detag.png
95
79
  - radiant-taggable_events-extension.gemspec
80
+ - Rakefile
81
+ - README.md
96
82
  - spec/datasets/events_dataset.rb
97
83
  - spec/datasets/tags_dataset.rb
98
84
  - spec/lib/taggable_event_spec.rb
99
85
  - spec/spec.opts
100
86
  - spec/spec_helper.rb
101
87
  - taggable_events_extension.rb
102
- has_rdoc: true
103
- homepage: http://github.com/spanner/radiant-taggable_events-extension
88
+ homepage: http://spanner.org/radiant/taggable_event
104
89
  licenses: []
105
90
 
106
- post_install_message:
107
- rdoc_options:
108
- - --charset=UTF-8
91
+ post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-taggable_events-extension', :version => '~> 2.0.0.rc1'\n\n "
92
+ rdoc_options: []
93
+
109
94
  require_paths:
110
95
  - lib
111
96
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -120,21 +105,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
105
  required_rubygems_version: !ruby/object:Gem::Requirement
121
106
  none: false
122
107
  requirements:
123
- - - ">="
108
+ - - ">"
124
109
  - !ruby/object:Gem::Version
125
- hash: 3
110
+ hash: 25
126
111
  segments:
127
- - 0
128
- version: "0"
112
+ - 1
113
+ - 3
114
+ - 1
115
+ version: 1.3.1
129
116
  requirements: []
130
117
 
131
118
  rubyforge_project:
132
- rubygems_version: 1.3.7
119
+ rubygems_version: 1.7.2
133
120
  signing_key:
134
121
  specification_version: 3
135
- summary: Tagging Extension for the Radiant CMS Event_Calendar
122
+ summary: Adds event tags, tag clouds and faceted search to the event_calendar extension.
136
123
  test_files:
137
124
  - spec/datasets/events_dataset.rb
138
125
  - spec/datasets/tags_dataset.rb
139
126
  - spec/lib/taggable_event_spec.rb
127
+ - spec/spec.opts
140
128
  - spec/spec_helper.rb
129
+ - features/support/env.rb
130
+ - features/support/paths.rb
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- pkg/*
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.3.1