Browse files

Adds Guard, Bundler gem helpers, and a travis YML (will need addition…

…al config).
  • Loading branch information...
1 parent c1e5b45 commit c67784a761c4a632d438c3a32aca19bdb811ddf7 Michael Bleigh committed Aug 1, 2011
Showing with 50 additions and 149 deletions.
  1. +6 −0 .travis.yml
  2. +2 −9 Gemfile
  3. +5 −0 Guardfile
  4. +9 −54 Rakefile
  5. +23 −86 acts-as-taggable-on.gemspec
  6. +4 −0 lib/acts-as-taggable-on/version.rb
  7. +1 −0 spec/spec_helper.rb
View
6 .travis.yml
@@ -0,0 +1,6 @@
+rvm:
+ - 1.8.7
+ - ree
+ - 1.9.2
+ - jruby
+ - rbx
View
11 Gemfile
@@ -1,10 +1,3 @@
-source :gemcutter
+source 'http://rubygems.org'
+gemspec
-# Rails 3.0
-gem 'rails', '3.0.0.beta3'
-gem 'rspec', '2.0.0.beta.8'
-gem 'sqlite3-ruby', :require => 'sqlite3'
-gem 'mysql2', '~> 0.2.7'
-gem 'pg'
-gem 'jeweler'
-gem 'rcov'
View
5 Guardfile
@@ -0,0 +1,5 @@
+guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb})
+ watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
View
63 Rakefile
@@ -1,59 +1,14 @@
-begin
- # Rspec 1.3.0
- require 'spec/rake/spectask'
+require 'rubygems'
+require 'bundler'
+Bundler.setup :default, :development
- desc 'Default: run specs'
- task :default => :spec
- Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- end
+desc 'Default: run specs'
+task :default => :spec
- Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- # Rspec 2.0
- require 'rspec/core/rake_task'
-
- desc 'Default: run specs'
- task :default => :spec
- Rspec::Core::RakeTask.new do |t|
- t.pattern = "spec/**/*_spec.rb"
- end
-
- Rspec::Core::RakeTask.new('rcov') do |t|
- t.pattern = "spec/**/*_spec.rb"
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- puts "Rspec not available. Install it with: gem install rspec"
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "spec/**/*_spec.rb"
end
-namespace 'rails2.3' do
- task :spec do
- gemfile = File.join(File.dirname(__FILE__), 'lib', 'acts_as_taggable_on', 'compatibility', 'Gemfile')
- ENV['BUNDLE_GEMFILE'] = gemfile
- Rake::Task['spec'].invoke
- end
-end
+Bundler::GemHelper.install_tasks
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "acts-as-taggable-on"
- gemspec.summary = "ActsAsTaggableOn is a tagging plugin for Rails that provides multiple tagging contexts on a single model."
- gemspec.description = "With ActsAsTaggableOn, you could tag a single model on several contexts, such as skills, interests, and awards. It also provides other advanced functionality."
- gemspec.email = "michael@intridea.com"
- gemspec.homepage = "http://github.com/mbleigh/acts-as-taggable-on"
- gemspec.authors = ["Michael Bleigh"]
- gemspec.files = FileList["[A-Z]*", "{generators,lib,spec,rails}/**/*"] - FileList["**/*.log"]
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
View
109 acts-as-taggable-on.gemspec
@@ -1,90 +1,27 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
+$:.push File.dirname(__FILE__) + '/lib'
+require 'acts-as-taggable-on/version'
-Gem::Specification.new do |s|
- s.name = %q{acts-as-taggable-on}
- s.version = "2.0.6"
+Gem::Specification.new do |gem|
+ gem.name = %q{acts-as-taggable-on}
+ gem.authors = ["Michael Bleigh"]
+ gem.date = %q{2010-05-19}
+ gem.description = %q{With ActsAsTaggableOn, you can tag a single model on several contexts, such as skills, interests, and awards. It also provides other advanced functionality.}
+ gem.summary = "Advanced tagging for Rails."
+ gem.email = %q{michael@intridea.com}
+ gem.homepage = ''
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Michael Bleigh"]
- s.date = %q{2010-05-19}
- s.description = %q{With ActsAsTaggableOn, you could tag a single model on several contexts, such as skills, interests, and awards. It also provides other advanced functionality.}
- s.email = %q{michael@intridea.com}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- "CHANGELOG",
- "Gemfile",
- "MIT-LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "generators/acts_as_taggable_on_migration/acts_as_taggable_on_migration_generator.rb",
- "generators/acts_as_taggable_on_migration/templates/migration.rb",
- "lib/acts-as-taggable-on.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on/cache.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on/core.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb",
- "lib/acts_as_taggable_on/acts_as_taggable_on/related.rb",
- "lib/acts_as_taggable_on/acts_as_tagger.rb",
- "lib/acts_as_taggable_on/compatibility/Gemfile",
- "lib/acts_as_taggable_on/compatibility/active_record_backports.rb",
- "lib/acts_as_taggable_on/compatibility/postgresql.rb",
- "lib/acts_as_taggable_on/tag.rb",
- "lib/acts_as_taggable_on/tag_list.rb",
- "lib/acts_as_taggable_on/tagging.rb",
- "lib/acts_as_taggable_on/tags_helper.rb",
- "lib/generators/acts_as_taggable_on/migration/migration_generator.rb",
- "lib/generators/acts_as_taggable_on/migration/templates/active_record/migration.rb",
- "rails/init.rb",
- "spec/acts_as_taggable_on/acts_as_taggable_on_spec.rb",
- "spec/acts_as_taggable_on/acts_as_tagger_spec.rb",
- "spec/acts_as_taggable_on/tag_list_spec.rb",
- "spec/acts_as_taggable_on/tag_spec.rb",
- "spec/acts_as_taggable_on/taggable_spec.rb",
- "spec/acts_as_taggable_on/tagger_spec.rb",
- "spec/acts_as_taggable_on/tagging_spec.rb",
- "spec/acts_as_taggable_on/tags_helper_spec.rb",
- "spec/bm.rb",
- "spec/database.yml",
- "spec/database.yml.sample",
- "spec/models.rb",
- "spec/schema.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/mbleigh/acts-as-taggable-on}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{ActsAsTaggableOn is a tagging plugin for Rails that provides multiple tagging contexts on a single model.}
- s.test_files = [
- "spec/acts_as_taggable_on/acts_as_taggable_on_spec.rb",
- "spec/acts_as_taggable_on/acts_as_tagger_spec.rb",
- "spec/acts_as_taggable_on/tag_list_spec.rb",
- "spec/acts_as_taggable_on/tag_spec.rb",
- "spec/acts_as_taggable_on/taggable_spec.rb",
- "spec/acts_as_taggable_on/tagger_spec.rb",
- "spec/acts_as_taggable_on/tagging_spec.rb",
- "spec/acts_as_taggable_on/tags_helper_spec.rb",
- "spec/bm.rb",
- "spec/models.rb",
- "spec/schema.rb",
- "spec/spec_helper.rb"
- ]
+ gem.add_runtime_dependency 'rails'
+ gem.add_development_dependency 'rspec', '~> 2.5'
+ gem.add_development_dependency 'sqlite3'
+ gem.add_development_dependency 'mysql2'
+ gem.add_development_dependency 'pg'
+ gem.add_development_dependency 'guard'
+ gem.add_development_dependency 'guard-rspec'
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "acts-as-taggable-on"
+ gem.require_paths = ['lib']
+ gem.version = ActsAsTaggableOn::VERSION
end
-
View
4 lib/acts-as-taggable-on/version.rb
@@ -0,0 +1,4 @@
+module ActsAsTaggableOn
+ VERSION = '2.1.0'
+end
+
View
1 spec/spec_helper.rb
@@ -1,4 +1,5 @@
$LOAD_PATH << "." unless $LOAD_PATH.include?(".")
+require 'logger'
begin
require "rubygems"

0 comments on commit c67784a

Please sign in to comment.