Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add tasks back for css/db tasks, clean up gemspec

  • Loading branch information...
commit 444c788f493389347917674fb197309945f7ba3b 1 parent 68712e0
Wesley Beary authored
Showing with 33 additions and 12 deletions.
  1. +13 −12 acts_as_taggable_redux.gemspec
  2. +20 −0 tasks/acts_as_taggable_tasks.rake
25 acts_as_taggable_redux.gemspec
View
@@ -1,25 +1,32 @@
Gem::Specification.new do |s|
s.name = 'acts_as_taggable_redux'
s.version = '0.0.1'
- s.date = '2008-11-26'
+ s.date = '2008-12-06'
s.summary = 'Allows for user owned tags to be added to multiple classes, and makes tags easier to work with.'
s.description = 'Allows for user owned tags to be added to multiple classes, and makes tags easier to work with.'
s.authors = ['Wesley Beary']
- s.email = ''
+ s.email = 'monki@geemus.com'
s.homepage = 'http://github.com/monki/acts_as_taggable_redux'
s.has_rdoc = false
s.files = [
- 'README',
- 'init.rb',
'generators/acts_as_taggable_tables/templates/migration.rb',
'generators/acts_as_taggable_tables/acts_as_taggable_tables_generator.rb',
'generators/acts_as_taggable_stylesheet/templates/acts_as_taggable_stylesheet.css',
'generators/acts_as_taggable_stylesheet/acts_as_taggable_stylesheet_generator.rb',
- 'Rakefile',
+ 'init.rb',
+ 'lib/acts_as_taggable.rb',
+ 'lib/acts_as_tagger.rb',
+ 'lib/acts_as_taggable_helper.rb',
+ 'lib/acts_as_taggable_redux.rb',
+ 'lib/tag.rb',
+ 'lib/tagging.rb',
'MIT-LICENSE',
+ 'Rakefile',
+ 'README',
+ 'tasks/acts_as_taggable_tasks.rake'
'test/tagging_test.rb',
'test/debug.log',
'test/test_helper.rb',
@@ -32,12 +39,6 @@ Gem::Specification.new do |s|
'test/acts_as_taggable_test.rb',
'test/tag_test.rb',
'test/database.yml',
- 'test/schema.rb',
- 'lib/tagging.rb',
- 'lib/acts_as_taggable.rb',
- 'lib/acts_as_tagger.rb',
- 'lib/acts_as_taggable_helper.rb',
- 'lib/tag.rb',
- 'lib/acts_as_taggable_redux.rb'
+ 'test/schema.rb'
]
end
20 tasks/acts_as_taggable_tasks.rake
View
@@ -0,0 +1,20 @@
+namespace :acts_as_taggable do
+ namespace :db do
+ desc "Creates tag tables for use with acts_as_taggable"
+ task :create => :environment do
+ require 'rails_generator'
+ require 'rails_generator/scripts/generate'
+ raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
+ Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_tables", "add_acts_as_taggable_tables" ])
+ end
+ end
+
+ namespace :stylesheet do
+ desc "Create tag stylesheet for use with acts_as_taggable"
+ task :create => :environment do
+ require 'rails_generator'
+ require 'rails_generator/scripts/generate'
+ Rails::Generator::Scripts::Generate.new.run([ "acts_as_taggable_stylesheet" ])
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.