radiant-taggable_events-extension 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -0
- data/Rakefile +138 -0
- data/VERSION +1 -0
- data/app/views/events/_defacet.html.haml +8 -0
- data/app/views/events/_event_postscript.html.haml +6 -0
- data/app/views/events/_other_page_parts.html.haml +10 -0
- data/cucumber.yml +1 -0
- data/db/migrate/20100301074622_import_keywords.rb +9 -0
- data/features/support/env.rb +16 -0
- data/features/support/paths.rb +14 -0
- data/lib/taggable_event_tags.rb +35 -0
- data/lib/tagged_event_finder.rb +25 -0
- data/lib/tagged_events_controller.rb +44 -0
- data/lib/tasks/taggable_events_extension_tasks.rake +28 -0
- data/pkg/radiant-taggable_events-extension-1.1.0.gem +0 -0
- data/public/images/furniture/detag.png +0 -0
- data/radiant-taggable_events-extension.gemspec +68 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +36 -0
- data/taggable_events_extension.rb +14 -0
- metadata +129 -0
data/README.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Taggable Events
|
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.
|
4
|
+
|
5
|
+
## Author & Copyright
|
6
|
+
|
7
|
+
* William Ross, for spanner. will at spanner.org
|
8
|
+
* Copyright 2010 spanner ltd
|
9
|
+
* released under the same terms as Rails and/or Radiant
|
data/Rakefile
ADDED
@@ -0,0 +1,138 @@
|
|
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"
|
12
|
+
gem.add_dependency "radiant-taggable-extension"
|
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
|
+
# In rails 1.2, plugins aren't available in the path until they're loaded.
|
19
|
+
# Check to see if the rspec plugin is installed first and require
|
20
|
+
# it if it is. If not, use the gem version.
|
21
|
+
|
22
|
+
# Determine where the RSpec plugin is by loading the boot
|
23
|
+
unless defined? RADIANT_ROOT
|
24
|
+
ENV["RAILS_ENV"] = "test"
|
25
|
+
case
|
26
|
+
when ENV["RADIANT_ENV_FILE"]
|
27
|
+
require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
|
28
|
+
when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
29
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
30
|
+
else
|
31
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'rake'
|
36
|
+
require 'rake/rdoctask'
|
37
|
+
require 'rake/testtask'
|
38
|
+
|
39
|
+
rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
|
40
|
+
$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
|
41
|
+
require 'spec/rake/spectask'
|
42
|
+
require 'cucumber'
|
43
|
+
require 'cucumber/rake/task'
|
44
|
+
|
45
|
+
# Cleanup the RADIANT_ROOT constant so specs will load the environment
|
46
|
+
Object.send(:remove_const, :RADIANT_ROOT)
|
47
|
+
|
48
|
+
extension_root = File.expand_path(File.dirname(__FILE__))
|
49
|
+
|
50
|
+
task :default => :spec
|
51
|
+
task :stats => "spec:statsetup"
|
52
|
+
|
53
|
+
desc "Run all specs in spec directory"
|
54
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
55
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
56
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
57
|
+
end
|
58
|
+
|
59
|
+
task :features => 'spec:integration'
|
60
|
+
|
61
|
+
namespace :spec do
|
62
|
+
desc "Run all specs in spec directory with RCov"
|
63
|
+
Spec::Rake::SpecTask.new(:rcov) do |t|
|
64
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
65
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
66
|
+
t.rcov = true
|
67
|
+
t.rcov_opts = ['--exclude', 'spec', '--rails']
|
68
|
+
end
|
69
|
+
|
70
|
+
desc "Print Specdoc for all specs"
|
71
|
+
Spec::Rake::SpecTask.new(:doc) do |t|
|
72
|
+
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
73
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
74
|
+
end
|
75
|
+
|
76
|
+
[:models, :controllers, :views, :helpers].each do |sub|
|
77
|
+
desc "Run the specs under spec/#{sub}"
|
78
|
+
Spec::Rake::SpecTask.new(sub) do |t|
|
79
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
80
|
+
t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
desc "Run the Cucumber features"
|
85
|
+
Cucumber::Rake::Task.new(:integration) do |t|
|
86
|
+
t.fork = true
|
87
|
+
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
|
88
|
+
# t.feature_pattern = "#{extension_root}/features/**/*.feature"
|
89
|
+
t.profile = "default"
|
90
|
+
end
|
91
|
+
|
92
|
+
# Setup specs for stats
|
93
|
+
task :statsetup do
|
94
|
+
require 'code_statistics'
|
95
|
+
::STATS_DIRECTORIES << %w(Model\ specs spec/models)
|
96
|
+
::STATS_DIRECTORIES << %w(View\ specs spec/views)
|
97
|
+
::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
|
98
|
+
::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
|
99
|
+
::CodeStatistics::TEST_TYPES << "Model specs"
|
100
|
+
::CodeStatistics::TEST_TYPES << "View specs"
|
101
|
+
::CodeStatistics::TEST_TYPES << "Controller specs"
|
102
|
+
::CodeStatistics::TEST_TYPES << "Helper specs"
|
103
|
+
::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
104
|
+
end
|
105
|
+
|
106
|
+
namespace :db do
|
107
|
+
namespace :fixtures do
|
108
|
+
desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
|
109
|
+
task :load => :environment do
|
110
|
+
require 'active_record/fixtures'
|
111
|
+
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
112
|
+
(ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
|
113
|
+
Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
desc 'Generate documentation for the taggable_events extension.'
|
121
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
122
|
+
rdoc.rdoc_dir = 'rdoc'
|
123
|
+
rdoc.title = 'TaggableEventsExtension'
|
124
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
125
|
+
rdoc.rdoc_files.include('README')
|
126
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
127
|
+
end
|
128
|
+
|
129
|
+
# For extensions that are in transition
|
130
|
+
desc 'Test the taggable_events extension.'
|
131
|
+
Rake::TestTask.new(:test) do |t|
|
132
|
+
t.libs << 'lib'
|
133
|
+
t.pattern = 'test/**/*_test.rb'
|
134
|
+
t.verbose = true
|
135
|
+
end
|
136
|
+
|
137
|
+
# Load any custom rakefiles for extension
|
138
|
+
Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.0
|
@@ -0,0 +1,10 @@
|
|
1
|
+
- content_for :tagcloud do
|
2
|
+
- if all_events.any?
|
3
|
+
- cloudtags = Tag.for_cloud(Tag.attached_to(all_events).except(tags).most_popular(50))
|
4
|
+
- if cloudtags.any?
|
5
|
+
%ul.cloud
|
6
|
+
- cloudtags.each do |tag|
|
7
|
+
%li
|
8
|
+
= link_to tag.title, url_with_tag(tag), :class => 'filter', :style => "font-size: #{tag.cloud_size.to_f * 1.5}em;"
|
9
|
+
%p.help
|
10
|
+
Click on a tag to see only the relevant events.
|
data/cucumber.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
default: --format progress features --tags ~@proposed,~@in_progress
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Sets up the Rails environment for Cucumber
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
# Extension root
|
4
|
+
extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment')
|
5
|
+
require extension_env+'.rb'
|
6
|
+
|
7
|
+
Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step}
|
8
|
+
|
9
|
+
Cucumber::Rails::World.class_eval do
|
10
|
+
include Dataset
|
11
|
+
datasets_directory "#{RADIANT_ROOT}/spec/datasets"
|
12
|
+
Dataset::Resolver.default = Dataset::DirectoryResolver.new("#{RADIANT_ROOT}/spec/datasets", File.dirname(__FILE__) + '/../../spec/datasets', File.dirname(__FILE__) + '/../datasets')
|
13
|
+
self.datasets_database_dump_path = "#{Rails.root}/tmp/dataset"
|
14
|
+
|
15
|
+
# dataset :taggable_events
|
16
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module TaggableEventTags
|
2
|
+
include Radiant::Taggable
|
3
|
+
class TagError < StandardError; end
|
4
|
+
|
5
|
+
desc %{
|
6
|
+
Presents a tag cloud built from the current set of events.
|
7
|
+
|
8
|
+
See r:tag_cloud for formatting and linking parameters. By default we show the top 100 most used tags.
|
9
|
+
|
10
|
+
*Usage:*
|
11
|
+
<pre><code><r:events:tag_cloud /></code></pre>
|
12
|
+
}
|
13
|
+
tag 'events:tag_cloud' do |tag|
|
14
|
+
options = tag.attr.dup
|
15
|
+
tag.locals.events ||= get_events(tag)
|
16
|
+
limit = options.delete('limit') || 100
|
17
|
+
tag.locals.tags = Tag.banded(Tag.attached_to(tag.locals.events).most_popular(limit))
|
18
|
+
tag.render('tags:cloud', options)
|
19
|
+
end
|
20
|
+
|
21
|
+
desc %{
|
22
|
+
Presents a tag cloud built from the entire population of events.
|
23
|
+
|
24
|
+
See r:tag_cloud for formatting and linking parameters. By default we show the top 100 most used tags.
|
25
|
+
|
26
|
+
*Usage:*
|
27
|
+
<pre><code><r:all_events:tag_cloud /></code></pre>
|
28
|
+
}
|
29
|
+
tag 'all_events:tag_cloud' do |tag|
|
30
|
+
options = tag.attr.dup
|
31
|
+
limit = options.delete('limit') || 100
|
32
|
+
tag.locals.tags = Tag.banded(Tag.attached_to(tag.locals.events).most_popular(limit))
|
33
|
+
tag.render('tags:cloud', options)
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module TaggedEventFinder
|
2
|
+
|
3
|
+
def self.included(base)
|
4
|
+
base.class_eval {
|
5
|
+
alias_method_chain :event_finder, :tags
|
6
|
+
alias_method_chain :filters_applied, :tags
|
7
|
+
}
|
8
|
+
end
|
9
|
+
|
10
|
+
def event_finder_with_tags(tag)
|
11
|
+
ef = event_finder_without_tags(tag)
|
12
|
+
ef = ef.from_all_tags(calendar_tags) if tags_applied?
|
13
|
+
ef
|
14
|
+
end
|
15
|
+
|
16
|
+
def filters_applied_with_tags(tag)
|
17
|
+
filters = filters_applied_without_tags(tag)
|
18
|
+
if tags_applied?
|
19
|
+
tags = @calendar_tags.map { |t| %{<a href="#{tag.locals.page.url(:tags => tags_without(t))}" class="defilter">#{t}</a> } }.to_sentence
|
20
|
+
filters << %{tagged with #{tags}}
|
21
|
+
end
|
22
|
+
filters
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module TaggedEventsController
|
2
|
+
|
3
|
+
def self.included(base)
|
4
|
+
base.class_eval {
|
5
|
+
helper_method :tags, :url_with_tag, :url_without_tag
|
6
|
+
alias_method_chain :event_finder, :tags
|
7
|
+
alias_method_chain :continuing_events, :tags
|
8
|
+
alias_method_chain :calendar_parameter_names, :tags
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
def tags
|
13
|
+
@tags ||= Tag.from_list(params[:tags], false) || []
|
14
|
+
end
|
15
|
+
|
16
|
+
def event_finder_with_tags
|
17
|
+
ef = event_finder_without_tags
|
18
|
+
ef = ef.from_all_tags(tags) if tags.any?
|
19
|
+
ef
|
20
|
+
end
|
21
|
+
|
22
|
+
def continuing_events_with_tags
|
23
|
+
continuing_events_without_tags
|
24
|
+
@continuing_events = @continuing_events.from_all_tags(tags) if tags.any?
|
25
|
+
@continuing_events
|
26
|
+
end
|
27
|
+
|
28
|
+
def calendar_parameter_names_with_tags
|
29
|
+
calendar_parameter_names_without_tags + [:tags]
|
30
|
+
end
|
31
|
+
|
32
|
+
def url_without_tag(tag)
|
33
|
+
url_for(url_parts({
|
34
|
+
:tags => Tag.to_list(tags - [tag])
|
35
|
+
}))
|
36
|
+
end
|
37
|
+
|
38
|
+
def url_with_tag(tag)
|
39
|
+
url_for(url_parts({
|
40
|
+
:tags => Tag.to_list(tags + [tag])
|
41
|
+
}))
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
namespace :radiant do
|
2
|
+
namespace :extensions do
|
3
|
+
namespace :taggable_events do
|
4
|
+
|
5
|
+
desc "Runs the migration of the Taggable Events extension"
|
6
|
+
task :migrate => :environment do
|
7
|
+
require 'radiant/extension_migrator'
|
8
|
+
if ENV["VERSION"]
|
9
|
+
TaggableEventsExtension.migrator.migrate(ENV["VERSION"].to_i)
|
10
|
+
else
|
11
|
+
TaggableEventsExtension.migrator.migrate
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
desc "Copies public assets of the Taggable Events to the instance public/ directory."
|
16
|
+
task :update => :environment do
|
17
|
+
is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
|
18
|
+
puts "Copying assets from TaggableEventsExtension"
|
19
|
+
Dir[TaggableEventsExtension.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
|
20
|
+
path = file.sub(TaggableEventsExtension.root, '')
|
21
|
+
directory = File.dirname(path)
|
22
|
+
mkdir_p RAILS_ROOT + directory, :verbose => false
|
23
|
+
cp file, RAILS_ROOT + path, :verbose => false
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{radiant-taggable_events-extension}
|
8
|
+
s.version = "1.1.0"
|
9
|
+
|
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-09-10}
|
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
|
+
"README.md",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"app/views/events/_defacet.html.haml",
|
23
|
+
"app/views/events/_event_postscript.html.haml",
|
24
|
+
"app/views/events/_other_page_parts.html.haml",
|
25
|
+
"cucumber.yml",
|
26
|
+
"db/migrate/20100301074622_import_keywords.rb",
|
27
|
+
"features/support/env.rb",
|
28
|
+
"features/support/paths.rb",
|
29
|
+
"lib/taggable_event_tags.rb",
|
30
|
+
"lib/tagged_event_finder.rb",
|
31
|
+
"lib/tagged_events_controller.rb",
|
32
|
+
"lib/tasks/taggable_events_extension_tasks.rake",
|
33
|
+
"pkg/radiant-taggable_events-extension-1.1.0.gem",
|
34
|
+
"public/images/furniture/detag.png",
|
35
|
+
"radiant-taggable_events-extension.gemspec",
|
36
|
+
"spec/spec.opts",
|
37
|
+
"spec/spec_helper.rb",
|
38
|
+
"taggable_events_extension.rb"
|
39
|
+
]
|
40
|
+
s.homepage = %q{http://github.com/spanner/radiant-taggable_events-extension}
|
41
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
42
|
+
s.require_paths = ["lib"]
|
43
|
+
s.rubygems_version = %q{1.3.7}
|
44
|
+
s.summary = %q{Tagging Extension for the Radiant CMS Event_Calendar}
|
45
|
+
s.test_files = [
|
46
|
+
"spec/spec_helper.rb"
|
47
|
+
]
|
48
|
+
|
49
|
+
if s.respond_to? :specification_version then
|
50
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
51
|
+
s.specification_version = 3
|
52
|
+
|
53
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
54
|
+
s.add_runtime_dependency(%q<radiant>, [">= 0.9.0"])
|
55
|
+
s.add_runtime_dependency(%q<radiant-event_calendar-extension>, [">= 0"])
|
56
|
+
s.add_runtime_dependency(%q<radiant-taggable-extension>, [">= 0"])
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
59
|
+
s.add_dependency(%q<radiant-event_calendar-extension>, [">= 0"])
|
60
|
+
s.add_dependency(%q<radiant-taggable-extension>, [">= 0"])
|
61
|
+
end
|
62
|
+
else
|
63
|
+
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
64
|
+
s.add_dependency(%q<radiant-event_calendar-extension>, [">= 0"])
|
65
|
+
s.add_dependency(%q<radiant-taggable-extension>, [">= 0"])
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Uncomment this if you reference any of your controllers in activate
|
2
|
+
require_dependency 'application_controller'
|
3
|
+
|
4
|
+
class TaggableEventsExtension < Radiant::Extension
|
5
|
+
version "1.1.0"
|
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
|
+
|
9
|
+
def activate
|
10
|
+
Event.send :is_taggable
|
11
|
+
EventsController.send :include, TaggedEventsController
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: radiant-taggable_events-extension
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 1.1.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: radiant-event_calendar-extension
|
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: radiant-taggable-extension
|
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
|
+
description: A tiny bit of glue to attach tags to event_calendar events and define some radius tags useful on calendar pages
|
66
|
+
email: will@spanner.org
|
67
|
+
executables: []
|
68
|
+
|
69
|
+
extensions: []
|
70
|
+
|
71
|
+
extra_rdoc_files:
|
72
|
+
- README.md
|
73
|
+
files:
|
74
|
+
- README.md
|
75
|
+
- Rakefile
|
76
|
+
- VERSION
|
77
|
+
- app/views/events/_defacet.html.haml
|
78
|
+
- app/views/events/_event_postscript.html.haml
|
79
|
+
- app/views/events/_other_page_parts.html.haml
|
80
|
+
- cucumber.yml
|
81
|
+
- db/migrate/20100301074622_import_keywords.rb
|
82
|
+
- features/support/env.rb
|
83
|
+
- features/support/paths.rb
|
84
|
+
- lib/taggable_event_tags.rb
|
85
|
+
- lib/tagged_event_finder.rb
|
86
|
+
- lib/tagged_events_controller.rb
|
87
|
+
- lib/tasks/taggable_events_extension_tasks.rake
|
88
|
+
- pkg/radiant-taggable_events-extension-1.1.0.gem
|
89
|
+
- public/images/furniture/detag.png
|
90
|
+
- radiant-taggable_events-extension.gemspec
|
91
|
+
- spec/spec.opts
|
92
|
+
- spec/spec_helper.rb
|
93
|
+
- taggable_events_extension.rb
|
94
|
+
has_rdoc: true
|
95
|
+
homepage: http://github.com/spanner/radiant-taggable_events-extension
|
96
|
+
licenses: []
|
97
|
+
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options:
|
100
|
+
- --charset=UTF-8
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
hash: 3
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
version: "0"
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
hash: 3
|
118
|
+
segments:
|
119
|
+
- 0
|
120
|
+
version: "0"
|
121
|
+
requirements: []
|
122
|
+
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 1.3.7
|
125
|
+
signing_key:
|
126
|
+
specification_version: 3
|
127
|
+
summary: Tagging Extension for the Radiant CMS Event_Calendar
|
128
|
+
test_files:
|
129
|
+
- spec/spec_helper.rb
|