Permalink
Browse files

Sunspot::Rails uses shared build tasks

  • Loading branch information...
1 parent bb6edf7 commit a2fd2531a3c58069cc532259b9efce4421d9d63e Mat Brown committed Jan 27, 2010
@@ -1,3 +1,3 @@
module Sunspot
- VERSION = '1.0.0'
+ VERSION = '1.0RC1'
end
View
@@ -1,6 +1,7 @@
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
+require File.join(File.dirname(__FILE__), 'lib', 'sunspot', 'rails', 'version')
task :default => :spec
@@ -1,55 +1,32 @@
-begin
- gem 'technicalpickles-jeweler', '~> 1.0'
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = 'sunspot_rails'
- s.summary = 'Rails integration for the Sunspot Solr search library'
- s.email = 'mat@patch.com'
- s.homepage = 'http://github.com/outoftime/sunspot_rails'
- s.description = <<TEXT
+require File.join(File.dirname(__FILE__), '..', '..', 'tools', 'gem_tasks')
+
+Sunspot::GemTasks.new do |s|
+ s.name = 'sunspot_rails'
+ s.version = Sunspot::Rails::VERSION
+ s.summary = 'Rails integration for the Sunspot Solr search library'
+ s.email = 'mat@patch.com'
+ s.homepage = 'http://github.com/outoftime/sunspot_rails'
+ s.description = <<TEXT
Sunspot::Rails is an extension to the Sunspot library for Solr search.
Sunspot::Rails adds integration between Sunspot and ActiveRecord, including
defining search and indexing related methods on ActiveRecord models themselves,
running a Sunspot-compatible Solr instance for development and test
environments, and automatically commit Solr index changes at the end of each
Rails request.
TEXT
- s.authors = ['Mat Brown', 'Peer Allan', 'Michael Moen', 'Benjamin Krause', 'Adam Salter', 'Brandon Keepers', 'Paul Canavese']
- s.rubyforge_project = 'sunspot'
- s.files = FileList['[A-Z]*',
- '{lib,tasks,dev_tasks}/**/*',
- 'generators/**/*',
- 'install.rb',
- 'MIT-LICENSE',
- 'rails/*',
- 'spec/*.rb',
- 'spec/mock_app/{app,lib,db,vendor,config}/**/*',
- 'spec/mock_app/{tmp,log,solr}']
- s.add_dependency 'escape', '>= 0.0.4'
- s.add_dependency 'sunspot', '>= 0.10.6', '<= 0.10.8'
- s.add_development_dependency 'rspec', '~> 1.2'
- s.add_development_dependency 'rspec-rails', '~> 1.2'
- s.add_development_dependency 'ruby-debug', '~> 0.10'
- s.add_development_dependency 'technicalpickles-jeweler', '~> 1.0'
- end
-
- Jeweler::RubyforgeTasks.new
- Jeweler::GemcutterTasks.new
-end
-
-namespace :release do
- task :tag do
- version = Jeweler::VersionHelper.new(File.join(File.dirname(__FILE__), '..')).to_s
- `git tag -a -m "Version #{version}" v#{version}`
- `git push origin v#{version}:v#{version}`
- end
-
- task :commit_gemspec do
- version = Jeweler::VersionHelper.new(File.join(File.dirname(__FILE__), '..')).to_s
- `git add sunspot_rails.gemspec`
- `git commit -m "Generate gemspec for v#{version}"`
- end
-
- desc "Release gem to RubyForge and GitHub"
- task :all => [:gemspec, :commit_gemspec, :tag, :"rubyforge:release:gem", :"gemcutter:release"]
+ s.authors = ['Mat Brown', 'Peer Allan', 'Michael Moen', 'Benjamin Krause', 'Adam Salter', 'Brandon Keepers', 'Paul Canavese']
+ s.rubyforge_project = 'sunspot'
+ s.files = FileList['[A-Z]*',
+ '{lib,tasks,dev_tasks}/**/*',
+ 'generators/**/*',
+ 'install.rb',
+ 'MIT-LICENSE',
+ 'rails/*',
+ 'spec/*.rb',
+ 'spec/mock_app/{app,lib,db,vendor,config}/**/*',
+ 'spec/mock_app/{tmp,log,solr}']
+ s.add_dependency 'escape', '>= 0.0.4'
+ s.add_dependency 'sunspot', Sunspot::Rails::VERSION
+ s.add_development_dependency 'rspec', '~> 1.2'
+ s.add_development_dependency 'rspec-rails', '~> 1.2'
end
@@ -7,6 +7,7 @@
module Sunspot #:nodoc:
module Rails #:nodoc:
autoload :StubSessionProxy, File.join(File.dirname(__FILE__), 'rails', 'stub_session_proxy')
+ autoload :VERSION, File.join(File.dirname(__FILE__), 'rails', 'version')
class <<self
attr_writer :configuration
@@ -1,15 +1,12 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE
-# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{sunspot_rails}
- s.version = "0.11.4"
+ s.version = "1.0.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Mat Brown", "Peer Allan", "Michael Moen", "Benjamin Krause"]
- s.date = %q{2009-11-24}
+ s.authors = ["Mat Brown", "Peer Allan", "Michael Moen", "Benjamin Krause", "Adam Salter", "Brandon Keepers", "Paul Canavese"]
+ s.date = %q{2010-01-27}
s.description = %q{Sunspot::Rails is an extension to the Sunspot library for Solr search.
Sunspot::Rails adds integration between Sunspot and ActiveRecord, including
defining search and indexing related methods on ActiveRecord models themselves,
@@ -18,126 +15,32 @@ environments, and automatically commit Solr index changes at the end of each
Rails request.
}
s.email = %q{mat@patch.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "History.txt",
- "LICENSE",
- "MIT-LICENSE",
- "MIT-LICENSE",
- "README.rdoc",
- "Rakefile",
- "TODO",
- "VERSION.yml",
- "dev_tasks/gemspec.rake",
- "dev_tasks/rdoc.rake",
- "dev_tasks/release.rake",
- "dev_tasks/todo.rake",
- "generators/sunspot/sunspot_generator.rb",
- "generators/sunspot/templates/sunspot.yml",
- "install.rb",
- "lib/sunspot/rails.rb",
- "lib/sunspot/rails/adapters.rb",
- "lib/sunspot/rails/configuration.rb",
- "lib/sunspot/rails/request_lifecycle.rb",
- "lib/sunspot/rails/searchable.rb",
- "lib/sunspot/rails/server.rb",
- "lib/sunspot/rails/session_proxy.rb",
- "lib/sunspot/rails/tasks.rb",
- "lib/sunspot/rails/util.rb",
- "lib/sunspot/spec/extension.rb",
- "rails/init.rb",
- "spec/configuration_spec.rb",
- "spec/mock_app/app/controllers/application.rb",
- "spec/mock_app/app/controllers/application_controller.rb",
- "spec/mock_app/app/controllers/posts_controller.rb",
- "spec/mock_app/app/models/author.rb",
- "spec/mock_app/app/models/blog.rb",
- "spec/mock_app/app/models/post.rb",
- "spec/mock_app/app/models/post_with_auto.rb",
- "spec/mock_app/config/boot.rb",
- "spec/mock_app/config/database.yml",
- "spec/mock_app/config/environment.rb",
- "spec/mock_app/config/environments/development.rb",
- "spec/mock_app/config/environments/test.rb",
- "spec/mock_app/config/initializers/new_rails_defaults.rb",
- "spec/mock_app/config/initializers/session_store.rb",
- "spec/mock_app/config/routes.rb",
- "spec/mock_app/config/sunspot.yml",
- "spec/mock_app/db/schema.rb",
- "spec/mock_app/db/test.db",
- "spec/model_lifecycle_spec.rb",
- "spec/model_spec.rb",
- "spec/request_lifecycle_spec.rb",
- "spec/schema.rb",
- "spec/server_spec.rb",
- "spec/session_spec.rb",
- "spec/spec_helper.rb",
- "spec/sunspot_mocking_spec.rb",
- "spec/util_spec.rb"
- ]
- s.has_rdoc = true
+ s.files = ["MIT-LICENSE", "Rakefile", "README.rdoc", "TODO", "History.txt", "VERSION.yml", "LICENSE", "lib/sunspot", "lib/sunspot/rails", "lib/sunspot/rails/spec_helper.rb", "lib/sunspot/rails/searchable.rb", "lib/sunspot/rails/version.rb", "lib/sunspot/rails/stub_session_proxy.rb", "lib/sunspot/rails/adapters.rb", "lib/sunspot/rails/configuration.rb", "lib/sunspot/rails/server.rb", "lib/sunspot/rails/tasks.rb", "lib/sunspot/rails/request_lifecycle.rb", "lib/sunspot/rails/solr_logging.rb", "lib/sunspot/rails.rb", "dev_tasks/gemspec.rake", "dev_tasks/todo.rake", "dev_tasks/rdoc.rake", "dev_tasks/release.rake", "generators/sunspot", "generators/sunspot/sunspot_generator.rb", "generators/sunspot/templates", "generators/sunspot/templates/sunspot.yml", "install.rb", "rails/init.rb", "spec/spec_helper.rb", "spec/session_spec.rb", "spec/stub_session_proxy_spec.rb", "spec/server_spec.rb", "spec/configuration_spec.rb", "spec/model_lifecycle_spec.rb", "spec/schema.rb", "spec/model_spec.rb", "spec/request_lifecycle_spec.rb", "spec/mock_app/app/controllers", "spec/mock_app/app/controllers/posts_controller.rb", "spec/mock_app/app/controllers/application_controller.rb", "spec/mock_app/app/controllers/application.rb", "spec/mock_app/app/models", "spec/mock_app/app/models/photo_post.rb", "spec/mock_app/app/models/blog.rb", "spec/mock_app/app/models/post_with_auto.rb", "spec/mock_app/app/models/author.rb", "spec/mock_app/app/models/post.rb", "spec/mock_app/db/schema.rb", "spec/mock_app/db/test.db", "spec/mock_app/vendor/plugins", "spec/mock_app/vendor/plugins/sunspot_rails", "spec/mock_app/config/database.yml", "spec/mock_app/config/environment.rb", "spec/mock_app/config/initializers", "spec/mock_app/config/initializers/session_store.rb", "spec/mock_app/config/initializers/new_rails_defaults.rb", "spec/mock_app/config/sunspot.yml", "spec/mock_app/config/environments", "spec/mock_app/config/environments/development.rb", "spec/mock_app/config/environments/test.rb", "spec/mock_app/config/routes.rb", "spec/mock_app/config/boot.rb", "spec/mock_app/tmp", "spec/mock_app/log", "spec/mock_app/solr"]
s.homepage = %q{http://github.com/outoftime/sunspot_rails}
- s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{sunspot}
- s.rubygems_version = %q{1.3.2}
+ s.rubygems_version = %q{1.3.5}
s.summary = %q{Rails integration for the Sunspot Solr search library}
- s.test_files = [
- "spec/spec_helper.rb",
- "spec/session_spec.rb",
- "spec/server_spec.rb",
- "spec/configuration_spec.rb",
- "spec/model_lifecycle_spec.rb",
- "spec/schema.rb",
- "spec/model_spec.rb",
- "spec/sunspot_mocking_spec.rb",
- "spec/util_spec.rb",
- "spec/mock_app/app/controllers/posts_controller.rb",
- "spec/mock_app/app/controllers/application_controller.rb",
- "spec/mock_app/app/controllers/application.rb",
- "spec/mock_app/app/models/blog.rb",
- "spec/mock_app/app/models/post_with_auto.rb",
- "spec/mock_app/app/models/author.rb",
- "spec/mock_app/app/models/post.rb",
- "spec/mock_app/db/schema.rb",
- "spec/mock_app/config/environment.rb",
- "spec/mock_app/config/initializers/session_store.rb",
- "spec/mock_app/config/initializers/new_rails_defaults.rb",
- "spec/mock_app/config/environments/development.rb",
- "spec/mock_app/config/environments/test.rb",
- "spec/mock_app/config/routes.rb",
- "spec/mock_app/config/boot.rb",
- "spec/request_lifecycle_spec.rb"
- ]
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
s.add_runtime_dependency(%q<escape>, [">= 0.0.4"])
- s.add_runtime_dependency(%q<sunspot>, [">= 0.10.6", "<= 0.10.8"])
+ s.add_runtime_dependency(%q<sunspot>, ["= 1.0.0"])
s.add_development_dependency(%q<rspec>, ["~> 1.2"])
s.add_development_dependency(%q<rspec-rails>, ["~> 1.2"])
- s.add_development_dependency(%q<ruby-debug>, ["~> 0.10"])
- s.add_development_dependency(%q<technicalpickles-jeweler>, ["~> 1.0"])
else
s.add_dependency(%q<escape>, [">= 0.0.4"])
- s.add_dependency(%q<sunspot>, [">= 0.10.6", "<= 0.10.8"])
+ s.add_dependency(%q<sunspot>, ["= 1.0.0"])
s.add_dependency(%q<rspec>, ["~> 1.2"])
s.add_dependency(%q<rspec-rails>, ["~> 1.2"])
- s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
- s.add_dependency(%q<technicalpickles-jeweler>, ["~> 1.0"])
end
else
s.add_dependency(%q<escape>, [">= 0.0.4"])
- s.add_dependency(%q<sunspot>, [">= 0.10.6", "<= 0.10.8"])
+ s.add_dependency(%q<sunspot>, ["= 1.0.0"])
s.add_dependency(%q<rspec>, ["~> 1.2"])
s.add_dependency(%q<rspec-rails>, ["~> 1.2"])
- s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
- s.add_dependency(%q<technicalpickles-jeweler>, ["~> 1.0"])
end
end

0 comments on commit a2fd253

Please sign in to comment.