skalee-thinking-sphinx 1.3.14.1 → 1.3.14.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -96,6 +96,19 @@ namespace :thinking_sphinx do
96
96
  Rake::Task["thinking_sphinx:index"].invoke
97
97
  Rake::Task["thinking_sphinx:start"].invoke
98
98
  end
99
+
100
+ desc "Reindex delta indexes (all the indexes with name ending with _delta)"
101
+ task :reindex_delta => :app_env do
102
+ config = ThinkingSphinx::Configuration.instance
103
+ FileUtils.mkdir_p config.searchd_file_path
104
+
105
+ index_names = ThinkingSphinx.context.indexed_models.map do |model|
106
+ model.constantize.to_riddle.select{ |index| /_delta\Z/ =~ index.name }.map(&:name)
107
+ end.flatten.join(' ')
108
+
109
+ puts config.controller.index index_names
110
+ end
111
+
99
112
  end
100
113
 
101
114
  namespace :ts do
@@ -120,6 +133,8 @@ namespace :ts do
120
133
  task :config => "thinking_sphinx:configure"
121
134
  desc "Stop Sphinx (if it's running), rebuild the indexes, and start Sphinx"
122
135
  task :rebuild => "thinking_sphinx:rebuild"
136
+ desc "Reindex delta indexes (all the indexes with name ending with _delta)"
137
+ task :din => "thinking_sphinx:reindex_delta"
123
138
  end
124
139
 
125
140
  def sphinx_pid
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{skalee-thinking-sphinx}
5
+ s.version = "1.3.14.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Pat Allen, slight modifications from Jaros\305\202aw Skrzypek, Sebastian Ska\305\202acki"]
9
+ s.date = %q{2010-07-28}
10
+ s.email = %q{skalee@gmail.com}
11
+ s.files = ["LICENCE", "README.textile", "Rakefile", "VERSION", "contribute.rb", "cucumber.yml", "features/abstract_inheritance.feature", "features/alternate_primary_key.feature", "features/attribute_transformation.feature", "features/attribute_updates.feature", "features/deleting_instances.feature", "features/direct_attributes.feature", "features/excerpts.feature", "features/extensible_delta_indexing.feature", "features/facets.feature", "features/facets_across_model.feature", "features/handling_edits.feature", "features/retry_stale_indexes.feature", "features/searching_across_models.feature", "features/searching_by_index.feature", "features/searching_by_model.feature", "features/searching_with_find_arguments.feature", "features/sphinx_detection.feature", "features/sphinx_scopes.feature", "features/step_definitions/alpha_steps.rb", "features/step_definitions/beta_steps.rb", "features/step_definitions/common_steps.rb", "features/step_definitions/extensible_delta_indexing_steps.rb", "features/step_definitions/facet_steps.rb", "features/step_definitions/find_arguments_steps.rb", "features/step_definitions/gamma_steps.rb", "features/step_definitions/scope_steps.rb", "features/step_definitions/search_steps.rb", "features/step_definitions/sphinx_steps.rb", "features/sti_searching.feature", "features/support/database.example.yml", "features/support/db/.gitignore", "features/support/db/fixtures/alphas.rb", "features/support/db/fixtures/authors.rb", "features/support/db/fixtures/betas.rb", "features/support/db/fixtures/boxes.rb", "features/support/db/fixtures/categories.rb", "features/support/db/fixtures/cats.rb", "features/support/db/fixtures/comments.rb", "features/support/db/fixtures/developers.rb", "features/support/db/fixtures/dogs.rb", "features/support/db/fixtures/extensible_betas.rb", "features/support/db/fixtures/foxes.rb", "features/support/db/fixtures/gammas.rb", "features/support/db/fixtures/music.rb", "features/support/db/fixtures/people.rb", "features/support/db/fixtures/posts.rb", "features/support/db/fixtures/robots.rb", "features/support/db/fixtures/tags.rb", "features/support/db/migrations/create_alphas.rb", "features/support/db/migrations/create_animals.rb", "features/support/db/migrations/create_authors.rb", "features/support/db/migrations/create_authors_posts.rb", "features/support/db/migrations/create_betas.rb", "features/support/db/migrations/create_boxes.rb", "features/support/db/migrations/create_categories.rb", "features/support/db/migrations/create_comments.rb", "features/support/db/migrations/create_developers.rb", "features/support/db/migrations/create_extensible_betas.rb", "features/support/db/migrations/create_gammas.rb", "features/support/db/migrations/create_genres.rb", "features/support/db/migrations/create_music.rb", "features/support/db/migrations/create_people.rb", "features/support/db/migrations/create_posts.rb", "features/support/db/migrations/create_robots.rb", "features/support/db/migrations/create_taggings.rb", "features/support/db/migrations/create_tags.rb", "features/support/env.rb", "features/support/lib/generic_delta_handler.rb", "features/support/models/alpha.rb", "features/support/models/animal.rb", "features/support/models/author.rb", "features/support/models/beta.rb", "features/support/models/box.rb", "features/support/models/cat.rb", "features/support/models/category.rb", "features/support/models/comment.rb", "features/support/models/developer.rb", "features/support/models/dog.rb", "features/support/models/extensible_beta.rb", "features/support/models/fox.rb", "features/support/models/gamma.rb", "features/support/models/genre.rb", "features/support/models/medium.rb", "features/support/models/music.rb", "features/support/models/person.rb", "features/support/models/post.rb", "features/support/models/robot.rb", "features/support/models/tag.rb", "features/support/models/tagging.rb", "ginger_scenarios.rb", "init.rb", "install.rb", "lib/cucumber/thinking_sphinx/external_world.rb", "lib/cucumber/thinking_sphinx/internal_world.rb", "lib/cucumber/thinking_sphinx/sql_logger.rb", "lib/thinking_sphinx.rb", "lib/thinking_sphinx/active_record.rb", "lib/thinking_sphinx/active_record/attribute_updates.rb", "lib/thinking_sphinx/active_record/delta.rb", "lib/thinking_sphinx/active_record/has_many_association.rb", "lib/thinking_sphinx/active_record/scopes.rb", "lib/thinking_sphinx/adapters/abstract_adapter.rb", "lib/thinking_sphinx/adapters/mysql_adapter.rb", "lib/thinking_sphinx/adapters/postgresql_adapter.rb", "lib/thinking_sphinx/association.rb", "lib/thinking_sphinx/attribute.rb", "lib/thinking_sphinx/auto_version.rb", "lib/thinking_sphinx/class_facet.rb", "lib/thinking_sphinx/configuration.rb", "lib/thinking_sphinx/context.rb", "lib/thinking_sphinx/core/array.rb", "lib/thinking_sphinx/core/string.rb", "lib/thinking_sphinx/deltas.rb", "lib/thinking_sphinx/deltas/default_delta.rb", "lib/thinking_sphinx/deploy/capistrano.rb", "lib/thinking_sphinx/excerpter.rb", "lib/thinking_sphinx/facet.rb", "lib/thinking_sphinx/facet_search.rb", "lib/thinking_sphinx/field.rb", "lib/thinking_sphinx/index.rb", "lib/thinking_sphinx/index/builder.rb", "lib/thinking_sphinx/index/faux_column.rb", "lib/thinking_sphinx/property.rb", "lib/thinking_sphinx/rails_additions.rb", "lib/thinking_sphinx/search.rb", "lib/thinking_sphinx/search_methods.rb", "lib/thinking_sphinx/source.rb", "lib/thinking_sphinx/source/internal_properties.rb", "lib/thinking_sphinx/source/sql.rb", "lib/thinking_sphinx/tasks.rb", "lib/thinking_sphinx/test.rb", "rails/init.rb", "recipes/thinking_sphinx.rb", "skalee-thinking-sphinx.gemspec", "spec/fixtures/data.sql", "spec/fixtures/database.yml.default", "spec/fixtures/models.rb", "spec/fixtures/structure.sql", "spec/spec_helper.rb", "spec/sphinx_helper.rb", "spec/thinking_sphinx/active_record/delta_spec.rb", "spec/thinking_sphinx/active_record/has_many_association_spec.rb", "spec/thinking_sphinx/active_record/scopes_spec.rb", "spec/thinking_sphinx/active_record_spec.rb", "spec/thinking_sphinx/association_spec.rb", "spec/thinking_sphinx/attribute_spec.rb", "spec/thinking_sphinx/auto_version_spec.rb", "spec/thinking_sphinx/configuration_spec.rb", "spec/thinking_sphinx/context_spec.rb", "spec/thinking_sphinx/core/array_spec.rb", "spec/thinking_sphinx/core/string_spec.rb", "spec/thinking_sphinx/excerpter_spec.rb", "spec/thinking_sphinx/facet_search_spec.rb", "spec/thinking_sphinx/facet_spec.rb", "spec/thinking_sphinx/field_spec.rb", "spec/thinking_sphinx/index/builder_spec.rb", "spec/thinking_sphinx/index/faux_column_spec.rb", "spec/thinking_sphinx/index_spec.rb", "spec/thinking_sphinx/rails_additions_spec.rb", "spec/thinking_sphinx/search_methods_spec.rb", "spec/thinking_sphinx/search_spec.rb", "spec/thinking_sphinx/source_spec.rb", "spec/thinking_sphinx_spec.rb", "tasks/distribution.rb", "tasks/rails.rake", "tasks/testing.rb", "vendor/after_commit/.gitignore", "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/lib/after_commit/test_bypass.rb", "vendor/riddle/lib/riddle.rb", "vendor/riddle/lib/riddle/0.9.8.rb", "vendor/riddle/lib/riddle/0.9.9.rb", "vendor/riddle/lib/riddle/0.9.9/client.rb", "vendor/riddle/lib/riddle/0.9.9/client/filter.rb", "vendor/riddle/lib/riddle/0.9.9/configuration/searchd.rb", "vendor/riddle/lib/riddle/auto_version.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"]
12
+ s.homepage = %q{http://github.com/skalee/thinking-sphinx}
13
+ s.require_paths = ["lib"]
14
+ s.rubygems_version = %q{1.3.7}
15
+ s.summary = %q{ActiveRecord/Rails Sphinx library}
16
+
17
+ if s.respond_to? :specification_version then
18
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
19
+ s.specification_version = 3
20
+
21
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
22
+ s.add_runtime_dependency(%q<activerecord>, [">= 1.15.6"])
23
+ s.add_runtime_dependency(%q<riddle>, [">= 1.0.8"])
24
+ s.add_runtime_dependency(%q<after_commit>, [">= 1.0.5"])
25
+ else
26
+ s.add_dependency(%q<activerecord>, [">= 1.15.6"])
27
+ s.add_dependency(%q<riddle>, [">= 1.0.8"])
28
+ s.add_dependency(%q<after_commit>, [">= 1.0.5"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<activerecord>, [">= 1.15.6"])
32
+ s.add_dependency(%q<riddle>, [">= 1.0.8"])
33
+ s.add_dependency(%q<after_commit>, [">= 1.0.5"])
34
+ end
35
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skalee-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 125
4
+ hash: 123
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
9
  - 14
10
- - 1
11
- version: 1.3.14.1
10
+ - 2
11
+ version: 1.3.14.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - "Pat Allen, slight modifications from Jaros\xC5\x82aw Skrzypek, Sebastian Ska\xC5\x82acki"
@@ -215,6 +215,7 @@ files:
215
215
  - lib/thinking_sphinx/test.rb
216
216
  - rails/init.rb
217
217
  - recipes/thinking_sphinx.rb
218
+ - skalee-thinking-sphinx.gemspec
218
219
  - spec/fixtures/data.sql
219
220
  - spec/fixtures/database.yml.default
220
221
  - spec/fixtures/models.rb