Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Commit

Permalink
Updating to handle versions properly, version 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Nov 10, 2009
1 parent 14960cc commit 742e37e
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 37 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
@@ -1,5 +1,5 @@
---
:patch: 2
:patch: 3
:major: 1
:build:
:minor: 3
3 changes: 2 additions & 1 deletion features/support/env.rb
Expand Up @@ -13,6 +13,7 @@
world = Cucumber::ThinkingSphinx::InternalWorld.new
world.configure_database

require 'thinking_sphinx'
SphinxVersion = ENV['VERSION'] || '0.9.8'
require "thinking_sphinx/#{SphinxVersion}"

world.setup
2 changes: 1 addition & 1 deletion init.rb
@@ -1,4 +1,4 @@
require 'thinking_sphinx'
require 'thinking_sphinx/0.9.8'

if Rails::VERSION::STRING.to_f < 2.1
ThinkingSphinx::Configuration.instance.load_models
Expand Down
1 change: 0 additions & 1 deletion lib/thinking_sphinx.rb
Expand Up @@ -3,7 +3,6 @@
end

require 'active_record'
require 'riddle'
require 'after_commit'
require 'yaml'
require 'cgi'
Expand Down
3 changes: 3 additions & 0 deletions lib/thinking_sphinx/0.9.8.rb
@@ -0,0 +1,3 @@
require 'riddle'
require 'riddle/0.9.8'
require 'thinking_sphinx'
3 changes: 3 additions & 0 deletions lib/thinking_sphinx/0.9.9.rb
@@ -0,0 +1,3 @@
require 'riddle'
require 'riddle/0.9.9'
require 'thinking_sphinx'
2 changes: 1 addition & 1 deletion rails/init.rb
@@ -1,4 +1,4 @@
require 'thinking_sphinx'
require 'thinking_sphinx/0.9.8'
require 'action_controller/dispatcher'

ActionController::Dispatcher.to_prepare :thinking_sphinx do
Expand Down
3 changes: 2 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -5,7 +5,8 @@
require 'ginger'
require 'jeweler'

require 'lib/thinking_sphinx'
SphinxVersion = ENV['VERSION'] || '0.9.8'
require "lib/thinking_sphinx/#{SphinxVersion}"

require 'will_paginate'

Expand Down
7 changes: 3 additions & 4 deletions tasks/distribution.rb
Expand Up @@ -2,9 +2,7 @@
require 'jeweler'

desc 'Generate documentation'
YARD::Rake::YardocTask.new do |t|
# t.title = 'Thinking Sphinx - ActiveRecord Sphinx Plugin'
end
YARD::Rake::YardocTask.new

Jeweler::Tasks.new do |gem|
gem.name = "thinking-sphinx"
Expand All @@ -22,7 +20,6 @@
"README.textile",
"tasks/**/*.rb",
"tasks/**/*.rake",
"vendor/**/*",
"VERSION.yml"
]
gem.test_files = FileList[
Expand All @@ -31,6 +28,8 @@
]

gem.add_dependency 'activerecord', '>= 1.15.6'
gem.add_dependency 'riddle', '>= 1.0.0'
gem.add_dependency 'after_commit', '>= 1.0.0'

gem.post_install_message = <<-MESSAGE
If you're upgrading, you should read this:
Expand Down
38 changes: 11 additions & 27 deletions thinking-sphinx.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{thinking-sphinx}
s.version = "1.3.2"
s.version = "1.3.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Pat Allan"]
s.date = %q{2009-11-05}
s.date = %q{2009-11-10}
s.description = %q{A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching.}
s.email = %q{pat@freelancing-gods.com}
s.extra_rdoc_files = [
Expand All @@ -23,6 +23,8 @@ Gem::Specification.new do |s|
"lib/cucumber/thinking_sphinx/internal_world.rb",
"lib/cucumber/thinking_sphinx/sql_logger.rb",
"lib/thinking_sphinx.rb",
"lib/thinking_sphinx/0.9.8.rb",
"lib/thinking_sphinx/0.9.9.rb",
"lib/thinking_sphinx/active_record.rb",
"lib/thinking_sphinx/active_record/attribute_updates.rb",
"lib/thinking_sphinx/active_record/delta.rb",
Expand Down Expand Up @@ -59,31 +61,7 @@ Gem::Specification.new do |s|
"rails/init.rb",
"tasks/distribution.rb",
"tasks/rails.rake",
"tasks/testing.rb",
"vendor/after_commit/LICENSE",
"vendor/after_commit/README",
"vendor/after_commit/Rakefile",
"vendor/after_commit/init.rb",
"vendor/after_commit/lib/after_commit.rb",
"vendor/after_commit/lib/after_commit/active_record.rb",
"vendor/after_commit/lib/after_commit/connection_adapters.rb",
"vendor/after_commit/test/after_commit_test.rb",
"vendor/riddle/lib/riddle.rb",
"vendor/riddle/lib/riddle/client.rb",
"vendor/riddle/lib/riddle/client/filter.rb",
"vendor/riddle/lib/riddle/client/message.rb",
"vendor/riddle/lib/riddle/client/response.rb",
"vendor/riddle/lib/riddle/configuration.rb",
"vendor/riddle/lib/riddle/configuration/distributed_index.rb",
"vendor/riddle/lib/riddle/configuration/index.rb",
"vendor/riddle/lib/riddle/configuration/indexer.rb",
"vendor/riddle/lib/riddle/configuration/remote_index.rb",
"vendor/riddle/lib/riddle/configuration/searchd.rb",
"vendor/riddle/lib/riddle/configuration/section.rb",
"vendor/riddle/lib/riddle/configuration/source.rb",
"vendor/riddle/lib/riddle/configuration/sql_source.rb",
"vendor/riddle/lib/riddle/configuration/xml_source.rb",
"vendor/riddle/lib/riddle/controller.rb"
"tasks/testing.rb"
]
s.homepage = %q{http://ts.freelancing-gods.com}
s.post_install_message = %q{If you're upgrading, you should read this:
Expand Down Expand Up @@ -215,11 +193,17 @@ http://freelancing-god.github.com/ts/en/upgrading.html

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<activerecord>, [">= 1.15.6"])
s.add_runtime_dependency(%q<riddle>, [">= 1.0.0"])
s.add_runtime_dependency(%q<after_commit>, [">= 1.0.0"])
else
s.add_dependency(%q<activerecord>, [">= 1.15.6"])
s.add_dependency(%q<riddle>, [">= 1.0.0"])
s.add_dependency(%q<after_commit>, [">= 1.0.0"])
end
else
s.add_dependency(%q<activerecord>, [">= 1.15.6"])
s.add_dependency(%q<riddle>, [">= 1.0.0"])
s.add_dependency(%q<after_commit>, [">= 1.0.0"])
end
end

0 comments on commit 742e37e

Please sign in to comment.