thinking-sphinx 2.1.0 → 3.0.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +8 -0
- data/.travis.yml +13 -0
- data/Appraisals +7 -0
- data/Gemfile +10 -0
- data/HISTORY +2 -267
- data/LICENCE +1 -1
- data/README.textile +194 -226
- data/Rakefile +24 -0
- data/gemfiles/.gitignore +1 -0
- data/gemfiles/rails_3_1.gemfile +11 -0
- data/gemfiles/rails_3_2.gemfile +11 -0
- data/lib/thinking-sphinx.rb +1 -1
- data/lib/thinking_sphinx.rb +34 -292
- data/lib/thinking_sphinx/active_record.rb +22 -383
- data/lib/thinking_sphinx/active_record/association.rb +9 -0
- data/lib/thinking_sphinx/active_record/association_proxy.rb +68 -0
- data/lib/thinking_sphinx/active_record/associations.rb +68 -0
- data/lib/thinking_sphinx/active_record/attribute.rb +20 -0
- data/lib/thinking_sphinx/active_record/attribute/sphinx_presenter.rb +32 -0
- data/lib/thinking_sphinx/active_record/attribute/type.rb +79 -0
- data/lib/thinking_sphinx/active_record/attribute/values.rb +18 -0
- data/lib/thinking_sphinx/active_record/base.rb +36 -0
- data/lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb +31 -0
- data/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb +55 -0
- data/lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb +59 -0
- data/lib/thinking_sphinx/active_record/column.rb +30 -0
- data/lib/thinking_sphinx/active_record/database_adapters.rb +51 -0
- data/lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb +13 -0
- data/lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb +23 -0
- data/lib/thinking_sphinx/active_record/database_adapters/postgresql_adapter.rb +25 -0
- data/lib/thinking_sphinx/active_record/field.rb +11 -0
- data/lib/thinking_sphinx/active_record/index.rb +55 -0
- data/lib/thinking_sphinx/active_record/interpreter.rb +47 -0
- data/lib/thinking_sphinx/active_record/log_subscriber.rb +10 -58
- data/lib/thinking_sphinx/active_record/property.rb +28 -0
- data/lib/thinking_sphinx/active_record/property_sql_presenter.rb +60 -0
- data/lib/thinking_sphinx/active_record/sql_builder.rb +159 -0
- data/lib/thinking_sphinx/active_record/sql_source.rb +138 -0
- data/lib/thinking_sphinx/active_record/sql_source/template.rb +46 -0
- data/lib/thinking_sphinx/batched_search.rb +26 -0
- data/lib/thinking_sphinx/callbacks.rb +15 -0
- data/lib/thinking_sphinx/configuration.rb +80 -331
- data/lib/thinking_sphinx/configuration/consistent_ids.rb +31 -0
- data/lib/thinking_sphinx/configuration/defaults.rb +5 -0
- data/lib/thinking_sphinx/core.rb +6 -0
- data/lib/thinking_sphinx/core/index.rb +68 -0
- data/lib/thinking_sphinx/core/interpreter.rb +19 -0
- data/lib/thinking_sphinx/deltas.rb +35 -26
- data/lib/thinking_sphinx/deltas/default_delta.rb +56 -56
- data/lib/thinking_sphinx/excerpter.rb +23 -21
- data/lib/thinking_sphinx/facet.rb +22 -127
- data/lib/thinking_sphinx/facet_search.rb +95 -162
- data/lib/thinking_sphinx/index.rb +39 -143
- data/lib/thinking_sphinx/index_set.rb +51 -0
- data/lib/thinking_sphinx/masks.rb +8 -0
- data/lib/thinking_sphinx/masks/group_enumerators_mask.rb +23 -0
- data/lib/thinking_sphinx/masks/pagination_mask.rb +60 -0
- data/lib/thinking_sphinx/masks/scopes_mask.rb +35 -0
- data/lib/thinking_sphinx/masks/weight_enumerator_mask.rb +11 -0
- data/lib/thinking_sphinx/middlewares.rb +36 -0
- data/lib/thinking_sphinx/middlewares/active_record_translator.rb +73 -0
- data/lib/thinking_sphinx/middlewares/geographer.rb +53 -0
- data/lib/thinking_sphinx/middlewares/glazier.rb +39 -0
- data/lib/thinking_sphinx/middlewares/ids_only.rb +13 -0
- data/lib/thinking_sphinx/middlewares/inquirer.rb +62 -0
- data/lib/thinking_sphinx/middlewares/middleware.rb +9 -0
- data/lib/thinking_sphinx/middlewares/sphinxql.rb +149 -0
- data/lib/thinking_sphinx/middlewares/stale_id_checker.rb +45 -0
- data/lib/thinking_sphinx/middlewares/stale_id_filter.rb +46 -0
- data/lib/thinking_sphinx/panes.rb +8 -0
- data/lib/thinking_sphinx/panes/attributes_pane.rb +9 -0
- data/lib/thinking_sphinx/panes/distance_pane.rb +13 -0
- data/lib/thinking_sphinx/panes/excerpts_pane.rb +37 -0
- data/lib/thinking_sphinx/panes/weight_pane.rb +9 -0
- data/lib/thinking_sphinx/railtie.rb +6 -40
- data/lib/thinking_sphinx/rake_interface.rb +47 -0
- data/lib/thinking_sphinx/real_time.rb +11 -0
- data/lib/thinking_sphinx/real_time/attribute.rb +5 -0
- data/lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb +48 -0
- data/lib/thinking_sphinx/real_time/field.rb +3 -0
- data/lib/thinking_sphinx/real_time/index.rb +47 -0
- data/lib/thinking_sphinx/real_time/index/template.rb +33 -0
- data/lib/thinking_sphinx/real_time/interpreter.rb +23 -0
- data/lib/thinking_sphinx/real_time/property.rb +16 -0
- data/lib/thinking_sphinx/scopes.rb +22 -0
- data/lib/thinking_sphinx/search.rb +90 -1028
- data/lib/thinking_sphinx/search/batch_inquirer.rb +27 -0
- data/lib/thinking_sphinx/search/context.rb +26 -0
- data/lib/thinking_sphinx/search/glaze.rb +32 -0
- data/lib/thinking_sphinx/search/merger.rb +24 -0
- data/lib/thinking_sphinx/search/query.rb +43 -0
- data/lib/thinking_sphinx/search/stale_ids_exception.rb +11 -0
- data/lib/thinking_sphinx/search/translator.rb +50 -0
- data/lib/thinking_sphinx/tasks.rb +22 -125
- data/lib/thinking_sphinx/test.rb +9 -19
- data/sketchpad.rb +58 -0
- data/spec/acceptance/association_scoping_spec.rb +23 -0
- data/spec/acceptance/attribute_access_spec.rb +39 -0
- data/spec/acceptance/attribute_updates_spec.rb +16 -0
- data/spec/acceptance/batch_searching_spec.rb +21 -0
- data/spec/acceptance/big_integers_spec.rb +27 -0
- data/spec/acceptance/excerpts_spec.rb +14 -0
- data/spec/acceptance/facets_spec.rb +122 -0
- data/spec/acceptance/geosearching_spec.rb +39 -0
- data/spec/acceptance/grouping_by_attributes_spec.rb +77 -0
- data/spec/acceptance/paginating_search_results_spec.rb +24 -0
- data/spec/acceptance/remove_deleted_records_spec.rb +23 -0
- data/spec/acceptance/search_counts_spec.rb +18 -0
- data/spec/acceptance/search_for_just_ids_spec.rb +19 -0
- data/spec/acceptance/searching_across_models_spec.rb +28 -0
- data/spec/acceptance/searching_on_fields_spec.rb +56 -0
- data/spec/acceptance/searching_with_filters_spec.rb +109 -0
- data/spec/acceptance/searching_with_sti_spec.rb +55 -0
- data/spec/acceptance/searching_within_a_model_spec.rb +52 -0
- data/spec/acceptance/sorting_search_results_spec.rb +41 -0
- data/spec/acceptance/spec_helper.rb +4 -0
- data/spec/acceptance/specifying_sql_spec.rb +62 -0
- data/spec/acceptance/sphinx_scopes_spec.rb +49 -0
- data/spec/acceptance/sql_deltas_spec.rb +43 -0
- data/spec/acceptance/support/database_cleaner.rb +11 -0
- data/spec/acceptance/support/sphinx_controller.rb +39 -0
- data/spec/acceptance/support/sphinx_helpers.rb +24 -0
- data/spec/acceptance/suspended_deltas_spec.rb +20 -0
- data/spec/internal/.gitignore +1 -0
- data/spec/internal/app/indices/animal_index.rb +3 -0
- data/spec/internal/app/indices/article_index.rb +24 -0
- data/spec/internal/app/indices/book_index.rb +8 -0
- data/spec/internal/app/indices/city_index.rb +6 -0
- data/spec/internal/app/indices/product_index.rb +3 -0
- data/spec/internal/app/indices/tee_index.rb +4 -0
- data/spec/internal/app/indices/user_index.rb +5 -0
- data/spec/internal/app/models/animal.rb +2 -0
- data/spec/internal/app/models/article.rb +5 -0
- data/spec/internal/app/models/bird.rb +2 -0
- data/spec/internal/app/models/book.rb +11 -0
- data/spec/internal/app/models/city.rb +2 -0
- data/spec/internal/app/models/colour.rb +3 -0
- data/spec/internal/app/models/flightless_bird.rb +2 -0
- data/spec/internal/app/models/mammal.rb +2 -0
- data/spec/internal/app/models/product.rb +3 -0
- data/spec/internal/app/models/tag.rb +4 -0
- data/{features/thinking_sphinx → spec/internal/app}/models/tagging.rb +1 -1
- data/spec/internal/app/models/tee.rb +3 -0
- data/spec/internal/app/models/tweet.rb +3 -0
- data/spec/internal/app/models/user.rb +3 -0
- data/spec/internal/config/database.yml +5 -0
- data/spec/internal/db/schema.rb +65 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/spec_helper.rb +8 -49
- data/spec/support/sphinx_yaml_helpers.rb +9 -0
- data/spec/thinking_sphinx/active_record/association_spec.rb +12 -0
- data/spec/thinking_sphinx/active_record/associations_spec.rb +184 -0
- data/spec/thinking_sphinx/active_record/attribute/type_spec.rb +147 -0
- data/spec/thinking_sphinx/active_record/base_spec.rb +61 -0
- data/spec/thinking_sphinx/active_record/callbacks/delete_callbacks_spec.rb +80 -0
- data/spec/thinking_sphinx/active_record/callbacks/delta_callbacks_spec.rb +147 -0
- data/spec/thinking_sphinx/active_record/callbacks/update_callbacks_spec.rb +69 -0
- data/spec/thinking_sphinx/active_record/column_spec.rb +47 -0
- data/spec/thinking_sphinx/active_record/database_adapters/abstract_adapter_spec.rb +31 -0
- data/spec/thinking_sphinx/active_record/database_adapters/mysql_adapter_spec.rb +43 -0
- data/spec/thinking_sphinx/active_record/database_adapters/postgresql_adapter_spec.rb +45 -0
- data/spec/thinking_sphinx/active_record/database_adapters_spec.rb +108 -0
- data/spec/thinking_sphinx/active_record/field_spec.rb +36 -0
- data/spec/thinking_sphinx/active_record/index_spec.rb +208 -0
- data/spec/thinking_sphinx/active_record/interpreter_spec.rb +293 -0
- data/spec/thinking_sphinx/active_record/property_sql_presenter_spec.rb +162 -0
- data/spec/thinking_sphinx/active_record/sql_builder_spec.rb +666 -0
- data/spec/thinking_sphinx/active_record/sql_source_spec.rb +401 -0
- data/spec/thinking_sphinx/configuration_spec.rb +264 -171
- data/spec/thinking_sphinx/deltas/default_delta_spec.rb +116 -0
- data/spec/thinking_sphinx/deltas_spec.rb +58 -0
- data/spec/thinking_sphinx/excerpter_spec.rb +40 -38
- data/spec/thinking_sphinx/facet_search_spec.rb +49 -151
- data/spec/thinking_sphinx/index_set_spec.rb +68 -0
- data/spec/thinking_sphinx/index_spec.rb +91 -155
- data/spec/thinking_sphinx/masks/pagination_mask_spec.rb +121 -0
- data/spec/thinking_sphinx/masks/scopes_mask_spec.rb +68 -0
- data/spec/thinking_sphinx/middlewares/active_record_translator_spec.rb +132 -0
- data/spec/thinking_sphinx/middlewares/geographer_spec.rb +89 -0
- data/spec/thinking_sphinx/middlewares/glazier_spec.rb +62 -0
- data/spec/thinking_sphinx/middlewares/inquirer_spec.rb +55 -0
- data/spec/thinking_sphinx/middlewares/sphinxql_spec.rb +271 -0
- data/spec/thinking_sphinx/middlewares/stale_id_checker_spec.rb +47 -0
- data/spec/thinking_sphinx/middlewares/stale_id_filter_spec.rb +91 -0
- data/spec/thinking_sphinx/panes/attributes_pane_spec.rb +21 -0
- data/spec/thinking_sphinx/panes/distance_pane_spec.rb +41 -0
- data/spec/thinking_sphinx/panes/excerpts_pane_spec.rb +53 -0
- data/spec/thinking_sphinx/panes/weight_pane_spec.rb +20 -0
- data/spec/thinking_sphinx/rake_interface_spec.rb +147 -0
- data/spec/thinking_sphinx/real_time/attribute_spec.rb +62 -0
- data/spec/thinking_sphinx/real_time/callbacks/real_time_callbacks_spec.rb +76 -0
- data/spec/thinking_sphinx/real_time/field_spec.rb +54 -0
- data/spec/thinking_sphinx/real_time/index_spec.rb +154 -0
- data/spec/thinking_sphinx/real_time/interpreter_spec.rb +147 -0
- data/spec/thinking_sphinx/scopes_spec.rb +38 -0
- data/spec/thinking_sphinx/search/glaze_spec.rb +55 -0
- data/spec/thinking_sphinx/search/query_spec.rb +46 -0
- data/spec/thinking_sphinx/search_spec.rb +65 -1357
- data/spec/thinking_sphinx_spec.rb +19 -182
- data/thinking-sphinx.gemspec +33 -0
- metadata +318 -431
- data/features/abstract_inheritance.feature +0 -10
- data/features/alternate_primary_key.feature +0 -27
- data/features/attribute_transformation.feature +0 -22
- data/features/attribute_updates.feature +0 -79
- data/features/deleting_instances.feature +0 -70
- data/features/direct_attributes.feature +0 -11
- data/features/excerpts.feature +0 -21
- data/features/extensible_delta_indexing.feature +0 -9
- data/features/facets.feature +0 -88
- data/features/facets_across_model.feature +0 -29
- data/features/field_sorting.feature +0 -18
- data/features/handling_edits.feature +0 -97
- data/features/retry_stale_indexes.feature +0 -24
- data/features/searching_across_models.feature +0 -20
- data/features/searching_by_index.feature +0 -41
- data/features/searching_by_model.feature +0 -175
- data/features/searching_with_find_arguments.feature +0 -56
- data/features/sphinx_detection.feature +0 -25
- data/features/sphinx_scopes.feature +0 -68
- data/features/step_definitions/alpha_steps.rb +0 -16
- data/features/step_definitions/beta_steps.rb +0 -7
- data/features/step_definitions/common_steps.rb +0 -205
- data/features/step_definitions/extensible_delta_indexing_steps.rb +0 -7
- data/features/step_definitions/facet_steps.rb +0 -96
- data/features/step_definitions/find_arguments_steps.rb +0 -36
- data/features/step_definitions/gamma_steps.rb +0 -15
- data/features/step_definitions/scope_steps.rb +0 -19
- data/features/step_definitions/search_steps.rb +0 -94
- data/features/step_definitions/sphinx_steps.rb +0 -35
- data/features/sti_searching.feature +0 -19
- data/features/support/env.rb +0 -24
- data/features/support/lib/generic_delta_handler.rb +0 -8
- data/features/thinking_sphinx/database.example.yml +0 -3
- data/features/thinking_sphinx/db/.gitignore +0 -1
- data/features/thinking_sphinx/db/fixtures/alphas.rb +0 -8
- data/features/thinking_sphinx/db/fixtures/authors.rb +0 -1
- data/features/thinking_sphinx/db/fixtures/betas.rb +0 -11
- data/features/thinking_sphinx/db/fixtures/boxes.rb +0 -9
- data/features/thinking_sphinx/db/fixtures/categories.rb +0 -1
- data/features/thinking_sphinx/db/fixtures/cats.rb +0 -3
- data/features/thinking_sphinx/db/fixtures/comments.rb +0 -24
- data/features/thinking_sphinx/db/fixtures/developers.rb +0 -31
- data/features/thinking_sphinx/db/fixtures/dogs.rb +0 -3
- data/features/thinking_sphinx/db/fixtures/extensible_betas.rb +0 -10
- data/features/thinking_sphinx/db/fixtures/foxes.rb +0 -3
- data/features/thinking_sphinx/db/fixtures/gammas.rb +0 -10
- data/features/thinking_sphinx/db/fixtures/music.rb +0 -4
- data/features/thinking_sphinx/db/fixtures/people.rb +0 -1001
- data/features/thinking_sphinx/db/fixtures/post_keywords.txt +0 -1
- data/features/thinking_sphinx/db/fixtures/posts.rb +0 -10
- data/features/thinking_sphinx/db/fixtures/robots.rb +0 -8
- data/features/thinking_sphinx/db/fixtures/tags.rb +0 -27
- data/features/thinking_sphinx/db/migrations/create_alphas.rb +0 -8
- data/features/thinking_sphinx/db/migrations/create_animals.rb +0 -5
- data/features/thinking_sphinx/db/migrations/create_authors.rb +0 -3
- data/features/thinking_sphinx/db/migrations/create_authors_posts.rb +0 -6
- data/features/thinking_sphinx/db/migrations/create_betas.rb +0 -5
- data/features/thinking_sphinx/db/migrations/create_boxes.rb +0 -5
- data/features/thinking_sphinx/db/migrations/create_categories.rb +0 -3
- data/features/thinking_sphinx/db/migrations/create_comments.rb +0 -10
- data/features/thinking_sphinx/db/migrations/create_developers.rb +0 -7
- data/features/thinking_sphinx/db/migrations/create_extensible_betas.rb +0 -5
- data/features/thinking_sphinx/db/migrations/create_gammas.rb +0 -3
- data/features/thinking_sphinx/db/migrations/create_genres.rb +0 -3
- data/features/thinking_sphinx/db/migrations/create_music.rb +0 -6
- data/features/thinking_sphinx/db/migrations/create_people.rb +0 -13
- data/features/thinking_sphinx/db/migrations/create_posts.rb +0 -6
- data/features/thinking_sphinx/db/migrations/create_robots.rb +0 -4
- data/features/thinking_sphinx/db/migrations/create_taggings.rb +0 -5
- data/features/thinking_sphinx/db/migrations/create_tags.rb +0 -4
- data/features/thinking_sphinx/models/alpha.rb +0 -23
- data/features/thinking_sphinx/models/andrew.rb +0 -17
- data/features/thinking_sphinx/models/animal.rb +0 -5
- data/features/thinking_sphinx/models/author.rb +0 -3
- data/features/thinking_sphinx/models/beta.rb +0 -13
- data/features/thinking_sphinx/models/box.rb +0 -8
- data/features/thinking_sphinx/models/cat.rb +0 -3
- data/features/thinking_sphinx/models/category.rb +0 -4
- data/features/thinking_sphinx/models/comment.rb +0 -10
- data/features/thinking_sphinx/models/developer.rb +0 -21
- data/features/thinking_sphinx/models/dog.rb +0 -3
- data/features/thinking_sphinx/models/extensible_beta.rb +0 -9
- data/features/thinking_sphinx/models/fox.rb +0 -5
- data/features/thinking_sphinx/models/gamma.rb +0 -5
- data/features/thinking_sphinx/models/genre.rb +0 -3
- data/features/thinking_sphinx/models/medium.rb +0 -5
- data/features/thinking_sphinx/models/music.rb +0 -10
- data/features/thinking_sphinx/models/person.rb +0 -24
- data/features/thinking_sphinx/models/post.rb +0 -22
- data/features/thinking_sphinx/models/robot.rb +0 -12
- data/features/thinking_sphinx/models/tag.rb +0 -3
- data/lib/cucumber/thinking_sphinx/external_world.rb +0 -12
- data/lib/cucumber/thinking_sphinx/internal_world.rb +0 -137
- data/lib/cucumber/thinking_sphinx/sql_logger.rb +0 -28
- data/lib/thinking_sphinx/action_controller.rb +0 -31
- data/lib/thinking_sphinx/active_record/attribute_updates.rb +0 -54
- data/lib/thinking_sphinx/active_record/collection_proxy.rb +0 -47
- data/lib/thinking_sphinx/active_record/collection_proxy_with_scopes.rb +0 -27
- data/lib/thinking_sphinx/active_record/delta.rb +0 -67
- data/lib/thinking_sphinx/active_record/has_many_association.rb +0 -44
- data/lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb +0 -21
- data/lib/thinking_sphinx/active_record/scopes.rb +0 -110
- data/lib/thinking_sphinx/adapters/abstract_adapter.rb +0 -94
- data/lib/thinking_sphinx/adapters/mysql_adapter.rb +0 -62
- data/lib/thinking_sphinx/adapters/postgresql_adapter.rb +0 -188
- data/lib/thinking_sphinx/association.rb +0 -230
- data/lib/thinking_sphinx/attribute.rb +0 -405
- data/lib/thinking_sphinx/auto_version.rb +0 -40
- data/lib/thinking_sphinx/bundled_search.rb +0 -40
- data/lib/thinking_sphinx/class_facet.rb +0 -20
- data/lib/thinking_sphinx/connection.rb +0 -71
- data/lib/thinking_sphinx/context.rb +0 -81
- data/lib/thinking_sphinx/core/string.rb +0 -15
- data/lib/thinking_sphinx/deltas/delete_job.rb +0 -16
- data/lib/thinking_sphinx/deltas/index_job.rb +0 -17
- data/lib/thinking_sphinx/deploy/capistrano.rb +0 -99
- data/lib/thinking_sphinx/field.rb +0 -98
- data/lib/thinking_sphinx/index/builder.rb +0 -315
- data/lib/thinking_sphinx/index/faux_column.rb +0 -118
- data/lib/thinking_sphinx/join.rb +0 -37
- data/lib/thinking_sphinx/property.rb +0 -187
- data/lib/thinking_sphinx/search_methods.rb +0 -439
- data/lib/thinking_sphinx/sinatra.rb +0 -7
- data/lib/thinking_sphinx/source.rb +0 -194
- data/lib/thinking_sphinx/source/internal_properties.rb +0 -51
- data/lib/thinking_sphinx/source/sql.rb +0 -174
- data/spec/fixtures/data.sql +0 -32
- data/spec/fixtures/database.yml.default +0 -3
- data/spec/fixtures/models.rb +0 -164
- data/spec/fixtures/structure.sql +0 -146
- data/spec/sphinx_helper.rb +0 -60
- data/spec/support/rails.rb +0 -25
- data/spec/thinking_sphinx/active_record/delta_spec.rb +0 -123
- data/spec/thinking_sphinx/active_record/has_many_association_spec.rb +0 -173
- data/spec/thinking_sphinx/active_record/scopes_spec.rb +0 -177
- data/spec/thinking_sphinx/active_record_spec.rb +0 -573
- data/spec/thinking_sphinx/adapters/abstract_adapter_spec.rb +0 -163
- data/spec/thinking_sphinx/association_spec.rb +0 -250
- data/spec/thinking_sphinx/attribute_spec.rb +0 -552
- data/spec/thinking_sphinx/auto_version_spec.rb +0 -103
- data/spec/thinking_sphinx/connection_spec.rb +0 -77
- data/spec/thinking_sphinx/context_spec.rb +0 -127
- data/spec/thinking_sphinx/core/array_spec.rb +0 -9
- data/spec/thinking_sphinx/core/string_spec.rb +0 -9
- data/spec/thinking_sphinx/facet_spec.rb +0 -359
- data/spec/thinking_sphinx/field_spec.rb +0 -127
- data/spec/thinking_sphinx/index/builder_spec.rb +0 -532
- data/spec/thinking_sphinx/index/faux_column_spec.rb +0 -36
- data/spec/thinking_sphinx/search_methods_spec.rb +0 -156
- data/spec/thinking_sphinx/source_spec.rb +0 -267
- data/spec/thinking_sphinx/test_spec.rb +0 -20
|
@@ -1,204 +1,41 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe ThinkingSphinx do
|
|
4
|
-
describe '.
|
|
5
|
-
|
|
6
|
-
ThinkingSphinx.context.should be_a(ThinkingSphinx::Context)
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
it "should remember changes to the Context instance" do
|
|
10
|
-
models = ThinkingSphinx.context.indexed_models.clone
|
|
11
|
-
|
|
12
|
-
ThinkingSphinx.context.indexed_models.replace([:model])
|
|
13
|
-
ThinkingSphinx.context.indexed_models.should == [:model]
|
|
14
|
-
|
|
15
|
-
ThinkingSphinx.context.indexed_models.replace(models)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
describe '.reset_context!' do
|
|
20
|
-
it "should remove the existing Context instance" do
|
|
21
|
-
existing = ThinkingSphinx.context
|
|
22
|
-
|
|
23
|
-
ThinkingSphinx.reset_context!
|
|
24
|
-
ThinkingSphinx.context.should_not == existing
|
|
25
|
-
|
|
26
|
-
ThinkingSphinx.reset_context! existing
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe '.define_indexes?' do
|
|
31
|
-
it "should define indexes by default" do
|
|
32
|
-
ThinkingSphinx.define_indexes?.should be_true
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
describe '.define_indexes=' do
|
|
37
|
-
it "should disable index definition" do
|
|
38
|
-
ThinkingSphinx.define_indexes = false
|
|
39
|
-
ThinkingSphinx.define_indexes?.should be_false
|
|
40
|
-
end
|
|
4
|
+
describe '.count' do
|
|
5
|
+
let(:search) { double('search', :total_entries => 23) }
|
|
41
6
|
|
|
42
|
-
|
|
43
|
-
ThinkingSphinx.
|
|
44
|
-
ThinkingSphinx.define_indexes?.should be_false
|
|
45
|
-
ThinkingSphinx.define_indexes = true
|
|
46
|
-
ThinkingSphinx.define_indexes?.should be_true
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
describe '.deltas_enabled?' do
|
|
51
|
-
it "should index deltas by default" do
|
|
52
|
-
ThinkingSphinx.deltas_enabled?.should be_true
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
describe '.deltas_enabled=' do
|
|
57
|
-
it "should disable delta indexing" do
|
|
58
|
-
ThinkingSphinx.deltas_enabled = false
|
|
59
|
-
ThinkingSphinx.deltas_enabled?.should be_false
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
it "should enable delta indexing" do
|
|
63
|
-
ThinkingSphinx.deltas_enabled = false
|
|
64
|
-
ThinkingSphinx.deltas_enabled?.should be_false
|
|
65
|
-
ThinkingSphinx.deltas_enabled = true
|
|
66
|
-
ThinkingSphinx.deltas_enabled?.should be_true
|
|
7
|
+
before :each do
|
|
8
|
+
ThinkingSphinx::Search.stub :new => search
|
|
67
9
|
end
|
|
68
|
-
end
|
|
69
10
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
ThinkingSphinx::Configuration.stub! :environment => 'development'
|
|
73
|
-
|
|
74
|
-
ThinkingSphinx.updates_enabled = nil
|
|
75
|
-
ThinkingSphinx.updates_enabled?.should be_true
|
|
11
|
+
it "returns the total entries of the search object" do
|
|
12
|
+
ThinkingSphinx.count.should == search.total_entries
|
|
76
13
|
end
|
|
77
|
-
end
|
|
78
14
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
ThinkingSphinx.updates_enabled?.should be_false
|
|
83
|
-
end
|
|
15
|
+
it "passes through the given query and options" do
|
|
16
|
+
ThinkingSphinx::Search.should_receive(:new).with('foo', :bar => :baz).
|
|
17
|
+
and_return(search)
|
|
84
18
|
|
|
85
|
-
|
|
86
|
-
ThinkingSphinx.updates_enabled = false
|
|
87
|
-
ThinkingSphinx.updates_enabled?.should be_false
|
|
88
|
-
ThinkingSphinx.updates_enabled = true
|
|
89
|
-
ThinkingSphinx.updates_enabled?.should be_true
|
|
19
|
+
ThinkingSphinx.count('foo', :bar => :baz)
|
|
90
20
|
end
|
|
91
21
|
end
|
|
92
22
|
|
|
93
|
-
describe '.
|
|
94
|
-
|
|
95
|
-
ThinkingSphinx.remote_sphinx = true
|
|
96
|
-
ThinkingSphinx.stub!(:sphinx_running_by_pid? => false)
|
|
23
|
+
describe '.search' do
|
|
24
|
+
let(:search) { double('search') }
|
|
97
25
|
|
|
98
|
-
ThinkingSphinx.sphinx_running?.should be_true
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
it "should actually pay attention to Sphinx if not on a remote machine" do
|
|
102
|
-
ThinkingSphinx.remote_sphinx = false
|
|
103
|
-
ThinkingSphinx.stub!(:sphinx_running_by_pid? => false)
|
|
104
|
-
ThinkingSphinx.sphinx_running?.should be_false
|
|
105
|
-
|
|
106
|
-
ThinkingSphinx.stub!(:sphinx_running_by_pid? => true)
|
|
107
|
-
ThinkingSphinx.sphinx_running?.should be_true
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
describe "use_group_by_shortcut? method" do
|
|
112
26
|
before :each do
|
|
113
|
-
|
|
114
|
-
unless ::ActiveRecord::ConnectionAdapters.const_defined?(adapter)
|
|
115
|
-
pending "No MySQL"
|
|
116
|
-
return
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
@connection = stub('adapter',
|
|
120
|
-
:select_all => true,
|
|
121
|
-
:class => ActiveRecord::ConnectionAdapters::Mysql2Adapter,
|
|
122
|
-
:config => {:adapter => defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql2'}
|
|
123
|
-
)
|
|
124
|
-
::ActiveRecord::Base.stub!(
|
|
125
|
-
:connection => @connection
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
ThinkingSphinx.reset_use_group_by_shortcut
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
it "should return true if no ONLY_FULL_GROUP_BY" do
|
|
132
|
-
@connection.stub!(
|
|
133
|
-
:select_all => {:a => "OTHER SETTINGS"}
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
it "should return true if NULL value" do
|
|
140
|
-
@connection.stub!(
|
|
141
|
-
:select_all => {:a => nil}
|
|
142
|
-
)
|
|
143
|
-
|
|
144
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
|
27
|
+
ThinkingSphinx::Search.stub :new => search
|
|
145
28
|
end
|
|
146
29
|
|
|
147
|
-
it "
|
|
148
|
-
|
|
149
|
-
:class => ActiveRecord::ConnectionAdapters::Mysql2Adapter,
|
|
150
|
-
:select_all => {:a => ""}
|
|
151
|
-
)
|
|
152
|
-
|
|
153
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_true
|
|
154
|
-
end unless RUBY_PLATFORM == 'java'
|
|
155
|
-
|
|
156
|
-
it "should return false if ONLY_FULL_GROUP_BY is set" do
|
|
157
|
-
@connection.stub!(
|
|
158
|
-
:select_all => {:a => "OTHER SETTINGS,ONLY_FULL_GROUP_BY,blah"}
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
|
30
|
+
it "returns a new search object" do
|
|
31
|
+
ThinkingSphinx.search.should == search
|
|
162
32
|
end
|
|
163
33
|
|
|
164
|
-
it "
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
:a => "OTHER SETTINGS",
|
|
168
|
-
:b => "ONLY_FULL_GROUP_BY"
|
|
169
|
-
}
|
|
170
|
-
)
|
|
171
|
-
|
|
172
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
describe "if not using MySQL" do
|
|
176
|
-
before :each do
|
|
177
|
-
adapter = defined?(JRUBY_VERSION) ? 'JdbcAdapter' : 'PostgreSQLAdapter'
|
|
178
|
-
unless ::ActiveRecord::ConnectionAdapters.const_defined?(adapter)
|
|
179
|
-
pending "No PostgreSQL"
|
|
180
|
-
return
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
@connection = stub(adapter).as_null_object
|
|
184
|
-
@connection.stub!(
|
|
185
|
-
:select_all => true,
|
|
186
|
-
:config => {:adapter => defined?(JRUBY_VERSION) ? 'jdbcpostgresql' : 'postgresql'}
|
|
187
|
-
)
|
|
188
|
-
::ActiveRecord::Base.stub!(
|
|
189
|
-
:connection => @connection
|
|
190
|
-
)
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
it "should return false" do
|
|
194
|
-
ThinkingSphinx.use_group_by_shortcut?.should be_false
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
it "should not call select_all" do
|
|
198
|
-
@connection.should_not_receive(:select_all)
|
|
34
|
+
it "passes through the given query and options" do
|
|
35
|
+
ThinkingSphinx::Search.should_receive(:new).with('foo', :bar => :baz).
|
|
36
|
+
and_return(search)
|
|
199
37
|
|
|
200
|
-
|
|
201
|
-
end
|
|
38
|
+
ThinkingSphinx.search('foo', :bar => :baz)
|
|
202
39
|
end
|
|
203
40
|
end
|
|
204
41
|
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |s|
|
|
5
|
+
s.name = 'thinking-sphinx'
|
|
6
|
+
s.version = '3.0.0.pre'
|
|
7
|
+
s.platform = Gem::Platform::RUBY
|
|
8
|
+
s.authors = ["Pat Allan"]
|
|
9
|
+
s.email = ["pat@freelancing-gods.com"]
|
|
10
|
+
s.homepage = 'http://freelancing-god.github.com/ts/en'
|
|
11
|
+
s.summary = 'A smart wrapper over Sphinx for ActiveRecord'
|
|
12
|
+
s.description = %Q{An intelligent layer for ActiveRecord (via Rails and Sinatra) for the Sphinx full-text search tool.}
|
|
13
|
+
|
|
14
|
+
s.rubyforge_project = 'thinking-sphinx'
|
|
15
|
+
|
|
16
|
+
s.files = `git ls-files`.split("\n")
|
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f|
|
|
19
|
+
File.basename(f)
|
|
20
|
+
}
|
|
21
|
+
s.require_paths = ['lib']
|
|
22
|
+
|
|
23
|
+
s.add_runtime_dependency 'activerecord', '>= 3.1.0'
|
|
24
|
+
s.add_runtime_dependency 'builder', '>= 2.1.2'
|
|
25
|
+
s.add_runtime_dependency 'middleware', '>= 0.1.0'
|
|
26
|
+
s.add_runtime_dependency 'riddle', '>= 1.5.3'
|
|
27
|
+
|
|
28
|
+
s.add_development_dependency 'appraisal', '~> 0.4.0'
|
|
29
|
+
# s.add_development_dependency 'combustion', '~> 0.3.1'
|
|
30
|
+
s.add_development_dependency 'database_cleaner', '~> 0.7.1'
|
|
31
|
+
s.add_runtime_dependency 'mysql2', '~> 0.3.12b4'
|
|
32
|
+
s.add_development_dependency 'rspec', '~> 2.11.0'
|
|
33
|
+
end
|
metadata
CHANGED
|
@@ -1,51 +1,30 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thinking-sphinx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 3.0.0.pre
|
|
5
|
+
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Pat Allan
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2012-11-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &70165526203260 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.0
|
|
21
|
+
version: 3.1.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
25
|
-
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- - ! '>='
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 3.0.3
|
|
30
|
-
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: riddle
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
|
-
requirements:
|
|
35
|
-
- - ! '>='
|
|
36
|
-
- !ruby/object:Gem::Version
|
|
37
|
-
version: 1.5.6
|
|
38
|
-
type: :runtime
|
|
39
|
-
prerelease: false
|
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
|
-
requirements:
|
|
43
|
-
- - ! '>='
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version: 1.5.6
|
|
24
|
+
version_requirements: *70165526203260
|
|
46
25
|
- !ruby/object:Gem::Dependency
|
|
47
26
|
name: builder
|
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
|
27
|
+
requirement: &70165526202760 !ruby/object:Gem::Requirement
|
|
49
28
|
none: false
|
|
50
29
|
requirements:
|
|
51
30
|
- - ! '>='
|
|
@@ -53,349 +32,284 @@ dependencies:
|
|
|
53
32
|
version: 2.1.2
|
|
54
33
|
type: :runtime
|
|
55
34
|
prerelease: false
|
|
56
|
-
version_requirements:
|
|
57
|
-
none: false
|
|
58
|
-
requirements:
|
|
59
|
-
- - ! '>='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 2.1.2
|
|
35
|
+
version_requirements: *70165526202760
|
|
62
36
|
- !ruby/object:Gem::Dependency
|
|
63
|
-
name:
|
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
|
37
|
+
name: middleware
|
|
38
|
+
requirement: &70165526202300 !ruby/object:Gem::Requirement
|
|
65
39
|
none: false
|
|
66
40
|
requirements:
|
|
67
|
-
- -
|
|
41
|
+
- - ! '>='
|
|
68
42
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 1.0
|
|
43
|
+
version: 0.1.0
|
|
70
44
|
type: :runtime
|
|
71
45
|
prerelease: false
|
|
72
|
-
version_requirements:
|
|
73
|
-
none: false
|
|
74
|
-
requirements:
|
|
75
|
-
- - ~>
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
version: 1.0.2
|
|
46
|
+
version_requirements: *70165526202300
|
|
78
47
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
|
48
|
+
name: riddle
|
|
49
|
+
requirement: &70165526201840 !ruby/object:Gem::Requirement
|
|
81
50
|
none: false
|
|
82
51
|
requirements:
|
|
83
52
|
- - ! '>='
|
|
84
53
|
- !ruby/object:Gem::Version
|
|
85
|
-
version:
|
|
86
|
-
type: :
|
|
54
|
+
version: 1.5.3
|
|
55
|
+
type: :runtime
|
|
87
56
|
prerelease: false
|
|
88
|
-
version_requirements:
|
|
89
|
-
none: false
|
|
90
|
-
requirements:
|
|
91
|
-
- - ! '>='
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version: 3.0.3
|
|
57
|
+
version_requirements: *70165526201840
|
|
94
58
|
- !ruby/object:Gem::Dependency
|
|
95
59
|
name: appraisal
|
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirement: &70165526201380 !ruby/object:Gem::Requirement
|
|
97
61
|
none: false
|
|
98
62
|
requirements:
|
|
99
|
-
- -
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version: 0.4.0
|
|
102
|
-
type: :development
|
|
103
|
-
prerelease: false
|
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
-
none: false
|
|
106
|
-
requirements:
|
|
107
|
-
- - '='
|
|
63
|
+
- - ~>
|
|
108
64
|
- !ruby/object:Gem::Version
|
|
109
65
|
version: 0.4.0
|
|
110
|
-
- !ruby/object:Gem::Dependency
|
|
111
|
-
name: cucumber
|
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
|
113
|
-
none: false
|
|
114
|
-
requirements:
|
|
115
|
-
- - '='
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 1.0.2
|
|
118
66
|
type: :development
|
|
119
67
|
prerelease: false
|
|
120
|
-
version_requirements:
|
|
121
|
-
none: false
|
|
122
|
-
requirements:
|
|
123
|
-
- - '='
|
|
124
|
-
- !ruby/object:Gem::Version
|
|
125
|
-
version: 1.0.2
|
|
68
|
+
version_requirements: *70165526201380
|
|
126
69
|
- !ruby/object:Gem::Dependency
|
|
127
|
-
name:
|
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
|
70
|
+
name: database_cleaner
|
|
71
|
+
requirement: &70165526200920 !ruby/object:Gem::Requirement
|
|
129
72
|
none: false
|
|
130
73
|
requirements:
|
|
131
|
-
- -
|
|
74
|
+
- - ~>
|
|
132
75
|
- !ruby/object:Gem::Version
|
|
133
|
-
version: 0.
|
|
76
|
+
version: 0.7.1
|
|
134
77
|
type: :development
|
|
135
78
|
prerelease: false
|
|
136
|
-
version_requirements:
|
|
137
|
-
none: false
|
|
138
|
-
requirements:
|
|
139
|
-
- - '='
|
|
140
|
-
- !ruby/object:Gem::Version
|
|
141
|
-
version: 0.3.1
|
|
79
|
+
version_requirements: *70165526200920
|
|
142
80
|
- !ruby/object:Gem::Dependency
|
|
143
|
-
name:
|
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
|
81
|
+
name: mysql2
|
|
82
|
+
requirement: &70165526200460 !ruby/object:Gem::Requirement
|
|
145
83
|
none: false
|
|
146
84
|
requirements:
|
|
147
|
-
- -
|
|
85
|
+
- - ~>
|
|
148
86
|
- !ruby/object:Gem::Version
|
|
149
|
-
version: 0.
|
|
150
|
-
type: :
|
|
87
|
+
version: 0.3.12b4
|
|
88
|
+
type: :runtime
|
|
151
89
|
prerelease: false
|
|
152
|
-
version_requirements:
|
|
153
|
-
none: false
|
|
154
|
-
requirements:
|
|
155
|
-
- - ! '>='
|
|
156
|
-
- !ruby/object:Gem::Version
|
|
157
|
-
version: 0.9.2
|
|
90
|
+
version_requirements: *70165526200460
|
|
158
91
|
- !ruby/object:Gem::Dependency
|
|
159
92
|
name: rspec
|
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
|
161
|
-
none: false
|
|
162
|
-
requirements:
|
|
163
|
-
- - '='
|
|
164
|
-
- !ruby/object:Gem::Version
|
|
165
|
-
version: 2.6.0
|
|
166
|
-
type: :development
|
|
167
|
-
prerelease: false
|
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
169
|
-
none: false
|
|
170
|
-
requirements:
|
|
171
|
-
- - '='
|
|
172
|
-
- !ruby/object:Gem::Version
|
|
173
|
-
version: 2.6.0
|
|
174
|
-
- !ruby/object:Gem::Dependency
|
|
175
|
-
name: will_paginate
|
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
|
93
|
+
requirement: &70165526200000 !ruby/object:Gem::Requirement
|
|
177
94
|
none: false
|
|
178
95
|
requirements:
|
|
179
|
-
- -
|
|
180
|
-
- !ruby/object:Gem::Version
|
|
181
|
-
version: '3.0'
|
|
182
|
-
type: :development
|
|
183
|
-
prerelease: false
|
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
185
|
-
none: false
|
|
186
|
-
requirements:
|
|
187
|
-
- - '='
|
|
188
|
-
- !ruby/object:Gem::Version
|
|
189
|
-
version: '3.0'
|
|
190
|
-
- !ruby/object:Gem::Dependency
|
|
191
|
-
name: yard
|
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
|
193
|
-
none: false
|
|
194
|
-
requirements:
|
|
195
|
-
- - ! '>='
|
|
96
|
+
- - ~>
|
|
196
97
|
- !ruby/object:Gem::Version
|
|
197
|
-
version:
|
|
98
|
+
version: 2.11.0
|
|
198
99
|
type: :development
|
|
199
100
|
prerelease: false
|
|
200
|
-
version_requirements:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
- - ! '>='
|
|
204
|
-
- !ruby/object:Gem::Version
|
|
205
|
-
version: 0.7.2
|
|
206
|
-
description: A concise and easy-to-use Ruby library that connects ActiveRecord to
|
|
207
|
-
the Sphinx search daemon, managing configuration, indexing and searching.
|
|
101
|
+
version_requirements: *70165526200000
|
|
102
|
+
description: An intelligent layer for ActiveRecord (via Rails and Sinatra) for the
|
|
103
|
+
Sphinx full-text search tool.
|
|
208
104
|
email:
|
|
209
105
|
- pat@freelancing-gods.com
|
|
210
106
|
executables: []
|
|
211
107
|
extensions: []
|
|
212
108
|
extra_rdoc_files: []
|
|
213
109
|
files:
|
|
214
|
-
-
|
|
215
|
-
-
|
|
216
|
-
-
|
|
110
|
+
- .gitignore
|
|
111
|
+
- .travis.yml
|
|
112
|
+
- Appraisals
|
|
113
|
+
- Gemfile
|
|
114
|
+
- HISTORY
|
|
115
|
+
- LICENCE
|
|
116
|
+
- README.textile
|
|
117
|
+
- Rakefile
|
|
118
|
+
- gemfiles/.gitignore
|
|
119
|
+
- gemfiles/rails_3_1.gemfile
|
|
120
|
+
- gemfiles/rails_3_2.gemfile
|
|
217
121
|
- lib/thinking-sphinx.rb
|
|
218
122
|
- lib/thinking_sphinx.rb
|
|
219
|
-
- lib/thinking_sphinx/action_controller.rb
|
|
220
123
|
- lib/thinking_sphinx/active_record.rb
|
|
221
|
-
- lib/thinking_sphinx/active_record/
|
|
222
|
-
- lib/thinking_sphinx/active_record/
|
|
223
|
-
- lib/thinking_sphinx/active_record/
|
|
224
|
-
- lib/thinking_sphinx/active_record/
|
|
225
|
-
- lib/thinking_sphinx/active_record/
|
|
226
|
-
- lib/thinking_sphinx/active_record/
|
|
124
|
+
- lib/thinking_sphinx/active_record/association.rb
|
|
125
|
+
- lib/thinking_sphinx/active_record/association_proxy.rb
|
|
126
|
+
- lib/thinking_sphinx/active_record/associations.rb
|
|
127
|
+
- lib/thinking_sphinx/active_record/attribute.rb
|
|
128
|
+
- lib/thinking_sphinx/active_record/attribute/sphinx_presenter.rb
|
|
129
|
+
- lib/thinking_sphinx/active_record/attribute/type.rb
|
|
130
|
+
- lib/thinking_sphinx/active_record/attribute/values.rb
|
|
131
|
+
- lib/thinking_sphinx/active_record/base.rb
|
|
132
|
+
- lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb
|
|
133
|
+
- lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb
|
|
134
|
+
- lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb
|
|
135
|
+
- lib/thinking_sphinx/active_record/column.rb
|
|
136
|
+
- lib/thinking_sphinx/active_record/database_adapters.rb
|
|
137
|
+
- lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb
|
|
138
|
+
- lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb
|
|
139
|
+
- lib/thinking_sphinx/active_record/database_adapters/postgresql_adapter.rb
|
|
140
|
+
- lib/thinking_sphinx/active_record/field.rb
|
|
141
|
+
- lib/thinking_sphinx/active_record/index.rb
|
|
142
|
+
- lib/thinking_sphinx/active_record/interpreter.rb
|
|
227
143
|
- lib/thinking_sphinx/active_record/log_subscriber.rb
|
|
228
|
-
- lib/thinking_sphinx/active_record/
|
|
229
|
-
- lib/thinking_sphinx/
|
|
230
|
-
- lib/thinking_sphinx/
|
|
231
|
-
- lib/thinking_sphinx/
|
|
232
|
-
- lib/thinking_sphinx/
|
|
233
|
-
- lib/thinking_sphinx/
|
|
234
|
-
- lib/thinking_sphinx/
|
|
235
|
-
- lib/thinking_sphinx/bundled_search.rb
|
|
236
|
-
- lib/thinking_sphinx/class_facet.rb
|
|
144
|
+
- lib/thinking_sphinx/active_record/property.rb
|
|
145
|
+
- lib/thinking_sphinx/active_record/property_sql_presenter.rb
|
|
146
|
+
- lib/thinking_sphinx/active_record/sql_builder.rb
|
|
147
|
+
- lib/thinking_sphinx/active_record/sql_source.rb
|
|
148
|
+
- lib/thinking_sphinx/active_record/sql_source/template.rb
|
|
149
|
+
- lib/thinking_sphinx/batched_search.rb
|
|
150
|
+
- lib/thinking_sphinx/callbacks.rb
|
|
237
151
|
- lib/thinking_sphinx/configuration.rb
|
|
238
|
-
- lib/thinking_sphinx/
|
|
239
|
-
- lib/thinking_sphinx/
|
|
240
|
-
- lib/thinking_sphinx/core
|
|
152
|
+
- lib/thinking_sphinx/configuration/consistent_ids.rb
|
|
153
|
+
- lib/thinking_sphinx/configuration/defaults.rb
|
|
154
|
+
- lib/thinking_sphinx/core.rb
|
|
155
|
+
- lib/thinking_sphinx/core/index.rb
|
|
156
|
+
- lib/thinking_sphinx/core/interpreter.rb
|
|
241
157
|
- lib/thinking_sphinx/deltas.rb
|
|
242
158
|
- lib/thinking_sphinx/deltas/default_delta.rb
|
|
243
|
-
- lib/thinking_sphinx/deltas/delete_job.rb
|
|
244
|
-
- lib/thinking_sphinx/deltas/index_job.rb
|
|
245
|
-
- lib/thinking_sphinx/deploy/capistrano.rb
|
|
246
159
|
- lib/thinking_sphinx/excerpter.rb
|
|
247
160
|
- lib/thinking_sphinx/facet.rb
|
|
248
161
|
- lib/thinking_sphinx/facet_search.rb
|
|
249
|
-
- lib/thinking_sphinx/field.rb
|
|
250
162
|
- lib/thinking_sphinx/index.rb
|
|
251
|
-
- lib/thinking_sphinx/
|
|
252
|
-
- lib/thinking_sphinx/
|
|
253
|
-
- lib/thinking_sphinx/
|
|
254
|
-
- lib/thinking_sphinx/
|
|
163
|
+
- lib/thinking_sphinx/index_set.rb
|
|
164
|
+
- lib/thinking_sphinx/masks.rb
|
|
165
|
+
- lib/thinking_sphinx/masks/group_enumerators_mask.rb
|
|
166
|
+
- lib/thinking_sphinx/masks/pagination_mask.rb
|
|
167
|
+
- lib/thinking_sphinx/masks/scopes_mask.rb
|
|
168
|
+
- lib/thinking_sphinx/masks/weight_enumerator_mask.rb
|
|
169
|
+
- lib/thinking_sphinx/middlewares.rb
|
|
170
|
+
- lib/thinking_sphinx/middlewares/active_record_translator.rb
|
|
171
|
+
- lib/thinking_sphinx/middlewares/geographer.rb
|
|
172
|
+
- lib/thinking_sphinx/middlewares/glazier.rb
|
|
173
|
+
- lib/thinking_sphinx/middlewares/ids_only.rb
|
|
174
|
+
- lib/thinking_sphinx/middlewares/inquirer.rb
|
|
175
|
+
- lib/thinking_sphinx/middlewares/middleware.rb
|
|
176
|
+
- lib/thinking_sphinx/middlewares/sphinxql.rb
|
|
177
|
+
- lib/thinking_sphinx/middlewares/stale_id_checker.rb
|
|
178
|
+
- lib/thinking_sphinx/middlewares/stale_id_filter.rb
|
|
179
|
+
- lib/thinking_sphinx/panes.rb
|
|
180
|
+
- lib/thinking_sphinx/panes/attributes_pane.rb
|
|
181
|
+
- lib/thinking_sphinx/panes/distance_pane.rb
|
|
182
|
+
- lib/thinking_sphinx/panes/excerpts_pane.rb
|
|
183
|
+
- lib/thinking_sphinx/panes/weight_pane.rb
|
|
255
184
|
- lib/thinking_sphinx/railtie.rb
|
|
185
|
+
- lib/thinking_sphinx/rake_interface.rb
|
|
186
|
+
- lib/thinking_sphinx/real_time.rb
|
|
187
|
+
- lib/thinking_sphinx/real_time/attribute.rb
|
|
188
|
+
- lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb
|
|
189
|
+
- lib/thinking_sphinx/real_time/field.rb
|
|
190
|
+
- lib/thinking_sphinx/real_time/index.rb
|
|
191
|
+
- lib/thinking_sphinx/real_time/index/template.rb
|
|
192
|
+
- lib/thinking_sphinx/real_time/interpreter.rb
|
|
193
|
+
- lib/thinking_sphinx/real_time/property.rb
|
|
194
|
+
- lib/thinking_sphinx/scopes.rb
|
|
256
195
|
- lib/thinking_sphinx/search.rb
|
|
257
|
-
- lib/thinking_sphinx/
|
|
258
|
-
- lib/thinking_sphinx/
|
|
259
|
-
- lib/thinking_sphinx/
|
|
260
|
-
- lib/thinking_sphinx/
|
|
261
|
-
- lib/thinking_sphinx/
|
|
196
|
+
- lib/thinking_sphinx/search/batch_inquirer.rb
|
|
197
|
+
- lib/thinking_sphinx/search/context.rb
|
|
198
|
+
- lib/thinking_sphinx/search/glaze.rb
|
|
199
|
+
- lib/thinking_sphinx/search/merger.rb
|
|
200
|
+
- lib/thinking_sphinx/search/query.rb
|
|
201
|
+
- lib/thinking_sphinx/search/stale_ids_exception.rb
|
|
202
|
+
- lib/thinking_sphinx/search/translator.rb
|
|
262
203
|
- lib/thinking_sphinx/tasks.rb
|
|
263
204
|
- lib/thinking_sphinx/test.rb
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
267
|
-
-
|
|
268
|
-
-
|
|
269
|
-
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
-
|
|
273
|
-
-
|
|
274
|
-
-
|
|
275
|
-
-
|
|
276
|
-
-
|
|
277
|
-
-
|
|
278
|
-
-
|
|
279
|
-
-
|
|
280
|
-
-
|
|
281
|
-
-
|
|
282
|
-
-
|
|
283
|
-
-
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
-
|
|
287
|
-
-
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
-
|
|
291
|
-
-
|
|
292
|
-
-
|
|
293
|
-
-
|
|
294
|
-
-
|
|
295
|
-
-
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
-
|
|
299
|
-
-
|
|
300
|
-
-
|
|
301
|
-
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
305
|
-
-
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
-
|
|
310
|
-
-
|
|
311
|
-
-
|
|
312
|
-
-
|
|
313
|
-
-
|
|
314
|
-
-
|
|
315
|
-
-
|
|
316
|
-
-
|
|
317
|
-
- features/thinking_sphinx/db/fixtures/robots.rb
|
|
318
|
-
- features/thinking_sphinx/db/fixtures/tags.rb
|
|
319
|
-
- features/thinking_sphinx/db/migrations/create_alphas.rb
|
|
320
|
-
- features/thinking_sphinx/db/migrations/create_animals.rb
|
|
321
|
-
- features/thinking_sphinx/db/migrations/create_authors.rb
|
|
322
|
-
- features/thinking_sphinx/db/migrations/create_authors_posts.rb
|
|
323
|
-
- features/thinking_sphinx/db/migrations/create_betas.rb
|
|
324
|
-
- features/thinking_sphinx/db/migrations/create_boxes.rb
|
|
325
|
-
- features/thinking_sphinx/db/migrations/create_categories.rb
|
|
326
|
-
- features/thinking_sphinx/db/migrations/create_comments.rb
|
|
327
|
-
- features/thinking_sphinx/db/migrations/create_developers.rb
|
|
328
|
-
- features/thinking_sphinx/db/migrations/create_extensible_betas.rb
|
|
329
|
-
- features/thinking_sphinx/db/migrations/create_gammas.rb
|
|
330
|
-
- features/thinking_sphinx/db/migrations/create_genres.rb
|
|
331
|
-
- features/thinking_sphinx/db/migrations/create_music.rb
|
|
332
|
-
- features/thinking_sphinx/db/migrations/create_people.rb
|
|
333
|
-
- features/thinking_sphinx/db/migrations/create_posts.rb
|
|
334
|
-
- features/thinking_sphinx/db/migrations/create_robots.rb
|
|
335
|
-
- features/thinking_sphinx/db/migrations/create_taggings.rb
|
|
336
|
-
- features/thinking_sphinx/db/migrations/create_tags.rb
|
|
337
|
-
- features/thinking_sphinx/models/alpha.rb
|
|
338
|
-
- features/thinking_sphinx/models/andrew.rb
|
|
339
|
-
- features/thinking_sphinx/models/animal.rb
|
|
340
|
-
- features/thinking_sphinx/models/author.rb
|
|
341
|
-
- features/thinking_sphinx/models/beta.rb
|
|
342
|
-
- features/thinking_sphinx/models/box.rb
|
|
343
|
-
- features/thinking_sphinx/models/cat.rb
|
|
344
|
-
- features/thinking_sphinx/models/category.rb
|
|
345
|
-
- features/thinking_sphinx/models/comment.rb
|
|
346
|
-
- features/thinking_sphinx/models/developer.rb
|
|
347
|
-
- features/thinking_sphinx/models/dog.rb
|
|
348
|
-
- features/thinking_sphinx/models/extensible_beta.rb
|
|
349
|
-
- features/thinking_sphinx/models/fox.rb
|
|
350
|
-
- features/thinking_sphinx/models/gamma.rb
|
|
351
|
-
- features/thinking_sphinx/models/genre.rb
|
|
352
|
-
- features/thinking_sphinx/models/medium.rb
|
|
353
|
-
- features/thinking_sphinx/models/music.rb
|
|
354
|
-
- features/thinking_sphinx/models/person.rb
|
|
355
|
-
- features/thinking_sphinx/models/post.rb
|
|
356
|
-
- features/thinking_sphinx/models/robot.rb
|
|
357
|
-
- features/thinking_sphinx/models/tag.rb
|
|
358
|
-
- features/thinking_sphinx/models/tagging.rb
|
|
359
|
-
- spec/fixtures/data.sql
|
|
360
|
-
- spec/fixtures/database.yml.default
|
|
361
|
-
- spec/fixtures/models.rb
|
|
362
|
-
- spec/fixtures/structure.sql
|
|
205
|
+
- sketchpad.rb
|
|
206
|
+
- spec/acceptance/association_scoping_spec.rb
|
|
207
|
+
- spec/acceptance/attribute_access_spec.rb
|
|
208
|
+
- spec/acceptance/attribute_updates_spec.rb
|
|
209
|
+
- spec/acceptance/batch_searching_spec.rb
|
|
210
|
+
- spec/acceptance/big_integers_spec.rb
|
|
211
|
+
- spec/acceptance/excerpts_spec.rb
|
|
212
|
+
- spec/acceptance/facets_spec.rb
|
|
213
|
+
- spec/acceptance/geosearching_spec.rb
|
|
214
|
+
- spec/acceptance/grouping_by_attributes_spec.rb
|
|
215
|
+
- spec/acceptance/paginating_search_results_spec.rb
|
|
216
|
+
- spec/acceptance/remove_deleted_records_spec.rb
|
|
217
|
+
- spec/acceptance/search_counts_spec.rb
|
|
218
|
+
- spec/acceptance/search_for_just_ids_spec.rb
|
|
219
|
+
- spec/acceptance/searching_across_models_spec.rb
|
|
220
|
+
- spec/acceptance/searching_on_fields_spec.rb
|
|
221
|
+
- spec/acceptance/searching_with_filters_spec.rb
|
|
222
|
+
- spec/acceptance/searching_with_sti_spec.rb
|
|
223
|
+
- spec/acceptance/searching_within_a_model_spec.rb
|
|
224
|
+
- spec/acceptance/sorting_search_results_spec.rb
|
|
225
|
+
- spec/acceptance/spec_helper.rb
|
|
226
|
+
- spec/acceptance/specifying_sql_spec.rb
|
|
227
|
+
- spec/acceptance/sphinx_scopes_spec.rb
|
|
228
|
+
- spec/acceptance/sql_deltas_spec.rb
|
|
229
|
+
- spec/acceptance/support/database_cleaner.rb
|
|
230
|
+
- spec/acceptance/support/sphinx_controller.rb
|
|
231
|
+
- spec/acceptance/support/sphinx_helpers.rb
|
|
232
|
+
- spec/acceptance/suspended_deltas_spec.rb
|
|
233
|
+
- spec/internal/.gitignore
|
|
234
|
+
- spec/internal/app/indices/animal_index.rb
|
|
235
|
+
- spec/internal/app/indices/article_index.rb
|
|
236
|
+
- spec/internal/app/indices/book_index.rb
|
|
237
|
+
- spec/internal/app/indices/city_index.rb
|
|
238
|
+
- spec/internal/app/indices/product_index.rb
|
|
239
|
+
- spec/internal/app/indices/tee_index.rb
|
|
240
|
+
- spec/internal/app/indices/user_index.rb
|
|
241
|
+
- spec/internal/app/models/animal.rb
|
|
242
|
+
- spec/internal/app/models/article.rb
|
|
243
|
+
- spec/internal/app/models/bird.rb
|
|
244
|
+
- spec/internal/app/models/book.rb
|
|
245
|
+
- spec/internal/app/models/city.rb
|
|
246
|
+
- spec/internal/app/models/colour.rb
|
|
247
|
+
- spec/internal/app/models/flightless_bird.rb
|
|
248
|
+
- spec/internal/app/models/mammal.rb
|
|
249
|
+
- spec/internal/app/models/product.rb
|
|
250
|
+
- spec/internal/app/models/tag.rb
|
|
251
|
+
- spec/internal/app/models/tagging.rb
|
|
252
|
+
- spec/internal/app/models/tee.rb
|
|
253
|
+
- spec/internal/app/models/tweet.rb
|
|
254
|
+
- spec/internal/app/models/user.rb
|
|
255
|
+
- spec/internal/config/database.yml
|
|
256
|
+
- spec/internal/db/schema.rb
|
|
257
|
+
- spec/internal/log/.gitignore
|
|
363
258
|
- spec/spec_helper.rb
|
|
364
|
-
- spec/
|
|
365
|
-
- spec/
|
|
366
|
-
- spec/thinking_sphinx/active_record/
|
|
367
|
-
- spec/thinking_sphinx/active_record/
|
|
368
|
-
- spec/thinking_sphinx/active_record/
|
|
369
|
-
- spec/thinking_sphinx/
|
|
370
|
-
- spec/thinking_sphinx/
|
|
371
|
-
- spec/thinking_sphinx/
|
|
372
|
-
- spec/thinking_sphinx/
|
|
373
|
-
- spec/thinking_sphinx/
|
|
259
|
+
- spec/support/sphinx_yaml_helpers.rb
|
|
260
|
+
- spec/thinking_sphinx/active_record/association_spec.rb
|
|
261
|
+
- spec/thinking_sphinx/active_record/associations_spec.rb
|
|
262
|
+
- spec/thinking_sphinx/active_record/attribute/type_spec.rb
|
|
263
|
+
- spec/thinking_sphinx/active_record/base_spec.rb
|
|
264
|
+
- spec/thinking_sphinx/active_record/callbacks/delete_callbacks_spec.rb
|
|
265
|
+
- spec/thinking_sphinx/active_record/callbacks/delta_callbacks_spec.rb
|
|
266
|
+
- spec/thinking_sphinx/active_record/callbacks/update_callbacks_spec.rb
|
|
267
|
+
- spec/thinking_sphinx/active_record/column_spec.rb
|
|
268
|
+
- spec/thinking_sphinx/active_record/database_adapters/abstract_adapter_spec.rb
|
|
269
|
+
- spec/thinking_sphinx/active_record/database_adapters/mysql_adapter_spec.rb
|
|
270
|
+
- spec/thinking_sphinx/active_record/database_adapters/postgresql_adapter_spec.rb
|
|
271
|
+
- spec/thinking_sphinx/active_record/database_adapters_spec.rb
|
|
272
|
+
- spec/thinking_sphinx/active_record/field_spec.rb
|
|
273
|
+
- spec/thinking_sphinx/active_record/index_spec.rb
|
|
274
|
+
- spec/thinking_sphinx/active_record/interpreter_spec.rb
|
|
275
|
+
- spec/thinking_sphinx/active_record/property_sql_presenter_spec.rb
|
|
276
|
+
- spec/thinking_sphinx/active_record/sql_builder_spec.rb
|
|
277
|
+
- spec/thinking_sphinx/active_record/sql_source_spec.rb
|
|
374
278
|
- spec/thinking_sphinx/configuration_spec.rb
|
|
375
|
-
- spec/thinking_sphinx/
|
|
376
|
-
- spec/thinking_sphinx/
|
|
377
|
-
- spec/thinking_sphinx/core/array_spec.rb
|
|
378
|
-
- spec/thinking_sphinx/core/string_spec.rb
|
|
279
|
+
- spec/thinking_sphinx/deltas/default_delta_spec.rb
|
|
280
|
+
- spec/thinking_sphinx/deltas_spec.rb
|
|
379
281
|
- spec/thinking_sphinx/excerpter_spec.rb
|
|
380
282
|
- spec/thinking_sphinx/facet_search_spec.rb
|
|
381
|
-
- spec/thinking_sphinx/
|
|
382
|
-
- spec/thinking_sphinx/field_spec.rb
|
|
383
|
-
- spec/thinking_sphinx/index/builder_spec.rb
|
|
384
|
-
- spec/thinking_sphinx/index/faux_column_spec.rb
|
|
283
|
+
- spec/thinking_sphinx/index_set_spec.rb
|
|
385
284
|
- spec/thinking_sphinx/index_spec.rb
|
|
386
|
-
- spec/thinking_sphinx/
|
|
285
|
+
- spec/thinking_sphinx/masks/pagination_mask_spec.rb
|
|
286
|
+
- spec/thinking_sphinx/masks/scopes_mask_spec.rb
|
|
287
|
+
- spec/thinking_sphinx/middlewares/active_record_translator_spec.rb
|
|
288
|
+
- spec/thinking_sphinx/middlewares/geographer_spec.rb
|
|
289
|
+
- spec/thinking_sphinx/middlewares/glazier_spec.rb
|
|
290
|
+
- spec/thinking_sphinx/middlewares/inquirer_spec.rb
|
|
291
|
+
- spec/thinking_sphinx/middlewares/sphinxql_spec.rb
|
|
292
|
+
- spec/thinking_sphinx/middlewares/stale_id_checker_spec.rb
|
|
293
|
+
- spec/thinking_sphinx/middlewares/stale_id_filter_spec.rb
|
|
294
|
+
- spec/thinking_sphinx/panes/attributes_pane_spec.rb
|
|
295
|
+
- spec/thinking_sphinx/panes/distance_pane_spec.rb
|
|
296
|
+
- spec/thinking_sphinx/panes/excerpts_pane_spec.rb
|
|
297
|
+
- spec/thinking_sphinx/panes/weight_pane_spec.rb
|
|
298
|
+
- spec/thinking_sphinx/rake_interface_spec.rb
|
|
299
|
+
- spec/thinking_sphinx/real_time/attribute_spec.rb
|
|
300
|
+
- spec/thinking_sphinx/real_time/callbacks/real_time_callbacks_spec.rb
|
|
301
|
+
- spec/thinking_sphinx/real_time/field_spec.rb
|
|
302
|
+
- spec/thinking_sphinx/real_time/index_spec.rb
|
|
303
|
+
- spec/thinking_sphinx/real_time/interpreter_spec.rb
|
|
304
|
+
- spec/thinking_sphinx/scopes_spec.rb
|
|
305
|
+
- spec/thinking_sphinx/search/glaze_spec.rb
|
|
306
|
+
- spec/thinking_sphinx/search/query_spec.rb
|
|
387
307
|
- spec/thinking_sphinx/search_spec.rb
|
|
388
|
-
- spec/thinking_sphinx/source_spec.rb
|
|
389
|
-
- spec/thinking_sphinx/test_spec.rb
|
|
390
308
|
- spec/thinking_sphinx_spec.rb
|
|
391
|
-
|
|
309
|
+
- thinking-sphinx.gemspec
|
|
310
|
+
homepage: http://freelancing-god.github.com/ts/en
|
|
392
311
|
licenses: []
|
|
393
|
-
post_install_message:
|
|
394
|
-
|
|
395
|
-
http://pat.github.io/thinking-sphinx/upgrading.html
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
'
|
|
312
|
+
post_install_message:
|
|
399
313
|
rdoc_options: []
|
|
400
314
|
require_paths:
|
|
401
315
|
- lib
|
|
@@ -405,147 +319,120 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
405
319
|
- - ! '>='
|
|
406
320
|
- !ruby/object:Gem::Version
|
|
407
321
|
version: '0'
|
|
408
|
-
segments:
|
|
409
|
-
- 0
|
|
410
|
-
hash: 1480797322099798226
|
|
411
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
323
|
none: false
|
|
413
324
|
requirements:
|
|
414
|
-
- - ! '
|
|
325
|
+
- - ! '>'
|
|
415
326
|
- !ruby/object:Gem::Version
|
|
416
|
-
version:
|
|
417
|
-
segments:
|
|
418
|
-
- 0
|
|
419
|
-
hash: 1480797322099798226
|
|
327
|
+
version: 1.3.1
|
|
420
328
|
requirements: []
|
|
421
329
|
rubyforge_project: thinking-sphinx
|
|
422
|
-
rubygems_version: 1.8.
|
|
330
|
+
rubygems_version: 1.8.16
|
|
423
331
|
signing_key:
|
|
424
332
|
specification_version: 3
|
|
425
|
-
summary:
|
|
333
|
+
summary: A smart wrapper over Sphinx for ActiveRecord
|
|
426
334
|
test_files:
|
|
427
|
-
-
|
|
428
|
-
-
|
|
429
|
-
-
|
|
430
|
-
-
|
|
431
|
-
-
|
|
432
|
-
-
|
|
433
|
-
-
|
|
434
|
-
-
|
|
435
|
-
-
|
|
436
|
-
-
|
|
437
|
-
-
|
|
438
|
-
-
|
|
439
|
-
-
|
|
440
|
-
-
|
|
441
|
-
-
|
|
442
|
-
-
|
|
443
|
-
-
|
|
444
|
-
-
|
|
445
|
-
-
|
|
446
|
-
-
|
|
447
|
-
-
|
|
448
|
-
-
|
|
449
|
-
-
|
|
450
|
-
-
|
|
451
|
-
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
-
|
|
456
|
-
-
|
|
457
|
-
-
|
|
458
|
-
-
|
|
459
|
-
-
|
|
460
|
-
-
|
|
461
|
-
-
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
-
|
|
465
|
-
-
|
|
466
|
-
-
|
|
467
|
-
-
|
|
468
|
-
-
|
|
469
|
-
-
|
|
470
|
-
-
|
|
471
|
-
-
|
|
472
|
-
-
|
|
473
|
-
-
|
|
474
|
-
-
|
|
475
|
-
-
|
|
476
|
-
-
|
|
477
|
-
-
|
|
478
|
-
-
|
|
479
|
-
- features/thinking_sphinx/db/migrations/create_alphas.rb
|
|
480
|
-
- features/thinking_sphinx/db/migrations/create_animals.rb
|
|
481
|
-
- features/thinking_sphinx/db/migrations/create_authors.rb
|
|
482
|
-
- features/thinking_sphinx/db/migrations/create_authors_posts.rb
|
|
483
|
-
- features/thinking_sphinx/db/migrations/create_betas.rb
|
|
484
|
-
- features/thinking_sphinx/db/migrations/create_boxes.rb
|
|
485
|
-
- features/thinking_sphinx/db/migrations/create_categories.rb
|
|
486
|
-
- features/thinking_sphinx/db/migrations/create_comments.rb
|
|
487
|
-
- features/thinking_sphinx/db/migrations/create_developers.rb
|
|
488
|
-
- features/thinking_sphinx/db/migrations/create_extensible_betas.rb
|
|
489
|
-
- features/thinking_sphinx/db/migrations/create_gammas.rb
|
|
490
|
-
- features/thinking_sphinx/db/migrations/create_genres.rb
|
|
491
|
-
- features/thinking_sphinx/db/migrations/create_music.rb
|
|
492
|
-
- features/thinking_sphinx/db/migrations/create_people.rb
|
|
493
|
-
- features/thinking_sphinx/db/migrations/create_posts.rb
|
|
494
|
-
- features/thinking_sphinx/db/migrations/create_robots.rb
|
|
495
|
-
- features/thinking_sphinx/db/migrations/create_taggings.rb
|
|
496
|
-
- features/thinking_sphinx/db/migrations/create_tags.rb
|
|
497
|
-
- features/thinking_sphinx/models/alpha.rb
|
|
498
|
-
- features/thinking_sphinx/models/andrew.rb
|
|
499
|
-
- features/thinking_sphinx/models/animal.rb
|
|
500
|
-
- features/thinking_sphinx/models/author.rb
|
|
501
|
-
- features/thinking_sphinx/models/beta.rb
|
|
502
|
-
- features/thinking_sphinx/models/box.rb
|
|
503
|
-
- features/thinking_sphinx/models/cat.rb
|
|
504
|
-
- features/thinking_sphinx/models/category.rb
|
|
505
|
-
- features/thinking_sphinx/models/comment.rb
|
|
506
|
-
- features/thinking_sphinx/models/developer.rb
|
|
507
|
-
- features/thinking_sphinx/models/dog.rb
|
|
508
|
-
- features/thinking_sphinx/models/extensible_beta.rb
|
|
509
|
-
- features/thinking_sphinx/models/fox.rb
|
|
510
|
-
- features/thinking_sphinx/models/gamma.rb
|
|
511
|
-
- features/thinking_sphinx/models/genre.rb
|
|
512
|
-
- features/thinking_sphinx/models/medium.rb
|
|
513
|
-
- features/thinking_sphinx/models/music.rb
|
|
514
|
-
- features/thinking_sphinx/models/person.rb
|
|
515
|
-
- features/thinking_sphinx/models/post.rb
|
|
516
|
-
- features/thinking_sphinx/models/robot.rb
|
|
517
|
-
- features/thinking_sphinx/models/tag.rb
|
|
518
|
-
- features/thinking_sphinx/models/tagging.rb
|
|
519
|
-
- spec/fixtures/data.sql
|
|
520
|
-
- spec/fixtures/database.yml.default
|
|
521
|
-
- spec/fixtures/models.rb
|
|
522
|
-
- spec/fixtures/structure.sql
|
|
335
|
+
- spec/acceptance/association_scoping_spec.rb
|
|
336
|
+
- spec/acceptance/attribute_access_spec.rb
|
|
337
|
+
- spec/acceptance/attribute_updates_spec.rb
|
|
338
|
+
- spec/acceptance/batch_searching_spec.rb
|
|
339
|
+
- spec/acceptance/big_integers_spec.rb
|
|
340
|
+
- spec/acceptance/excerpts_spec.rb
|
|
341
|
+
- spec/acceptance/facets_spec.rb
|
|
342
|
+
- spec/acceptance/geosearching_spec.rb
|
|
343
|
+
- spec/acceptance/grouping_by_attributes_spec.rb
|
|
344
|
+
- spec/acceptance/paginating_search_results_spec.rb
|
|
345
|
+
- spec/acceptance/remove_deleted_records_spec.rb
|
|
346
|
+
- spec/acceptance/search_counts_spec.rb
|
|
347
|
+
- spec/acceptance/search_for_just_ids_spec.rb
|
|
348
|
+
- spec/acceptance/searching_across_models_spec.rb
|
|
349
|
+
- spec/acceptance/searching_on_fields_spec.rb
|
|
350
|
+
- spec/acceptance/searching_with_filters_spec.rb
|
|
351
|
+
- spec/acceptance/searching_with_sti_spec.rb
|
|
352
|
+
- spec/acceptance/searching_within_a_model_spec.rb
|
|
353
|
+
- spec/acceptance/sorting_search_results_spec.rb
|
|
354
|
+
- spec/acceptance/spec_helper.rb
|
|
355
|
+
- spec/acceptance/specifying_sql_spec.rb
|
|
356
|
+
- spec/acceptance/sphinx_scopes_spec.rb
|
|
357
|
+
- spec/acceptance/sql_deltas_spec.rb
|
|
358
|
+
- spec/acceptance/support/database_cleaner.rb
|
|
359
|
+
- spec/acceptance/support/sphinx_controller.rb
|
|
360
|
+
- spec/acceptance/support/sphinx_helpers.rb
|
|
361
|
+
- spec/acceptance/suspended_deltas_spec.rb
|
|
362
|
+
- spec/internal/.gitignore
|
|
363
|
+
- spec/internal/app/indices/animal_index.rb
|
|
364
|
+
- spec/internal/app/indices/article_index.rb
|
|
365
|
+
- spec/internal/app/indices/book_index.rb
|
|
366
|
+
- spec/internal/app/indices/city_index.rb
|
|
367
|
+
- spec/internal/app/indices/product_index.rb
|
|
368
|
+
- spec/internal/app/indices/tee_index.rb
|
|
369
|
+
- spec/internal/app/indices/user_index.rb
|
|
370
|
+
- spec/internal/app/models/animal.rb
|
|
371
|
+
- spec/internal/app/models/article.rb
|
|
372
|
+
- spec/internal/app/models/bird.rb
|
|
373
|
+
- spec/internal/app/models/book.rb
|
|
374
|
+
- spec/internal/app/models/city.rb
|
|
375
|
+
- spec/internal/app/models/colour.rb
|
|
376
|
+
- spec/internal/app/models/flightless_bird.rb
|
|
377
|
+
- spec/internal/app/models/mammal.rb
|
|
378
|
+
- spec/internal/app/models/product.rb
|
|
379
|
+
- spec/internal/app/models/tag.rb
|
|
380
|
+
- spec/internal/app/models/tagging.rb
|
|
381
|
+
- spec/internal/app/models/tee.rb
|
|
382
|
+
- spec/internal/app/models/tweet.rb
|
|
383
|
+
- spec/internal/app/models/user.rb
|
|
384
|
+
- spec/internal/config/database.yml
|
|
385
|
+
- spec/internal/db/schema.rb
|
|
386
|
+
- spec/internal/log/.gitignore
|
|
523
387
|
- spec/spec_helper.rb
|
|
524
|
-
- spec/
|
|
525
|
-
- spec/
|
|
526
|
-
- spec/thinking_sphinx/active_record/
|
|
527
|
-
- spec/thinking_sphinx/active_record/
|
|
528
|
-
- spec/thinking_sphinx/active_record/
|
|
529
|
-
- spec/thinking_sphinx/
|
|
530
|
-
- spec/thinking_sphinx/
|
|
531
|
-
- spec/thinking_sphinx/
|
|
532
|
-
- spec/thinking_sphinx/
|
|
533
|
-
- spec/thinking_sphinx/
|
|
388
|
+
- spec/support/sphinx_yaml_helpers.rb
|
|
389
|
+
- spec/thinking_sphinx/active_record/association_spec.rb
|
|
390
|
+
- spec/thinking_sphinx/active_record/associations_spec.rb
|
|
391
|
+
- spec/thinking_sphinx/active_record/attribute/type_spec.rb
|
|
392
|
+
- spec/thinking_sphinx/active_record/base_spec.rb
|
|
393
|
+
- spec/thinking_sphinx/active_record/callbacks/delete_callbacks_spec.rb
|
|
394
|
+
- spec/thinking_sphinx/active_record/callbacks/delta_callbacks_spec.rb
|
|
395
|
+
- spec/thinking_sphinx/active_record/callbacks/update_callbacks_spec.rb
|
|
396
|
+
- spec/thinking_sphinx/active_record/column_spec.rb
|
|
397
|
+
- spec/thinking_sphinx/active_record/database_adapters/abstract_adapter_spec.rb
|
|
398
|
+
- spec/thinking_sphinx/active_record/database_adapters/mysql_adapter_spec.rb
|
|
399
|
+
- spec/thinking_sphinx/active_record/database_adapters/postgresql_adapter_spec.rb
|
|
400
|
+
- spec/thinking_sphinx/active_record/database_adapters_spec.rb
|
|
401
|
+
- spec/thinking_sphinx/active_record/field_spec.rb
|
|
402
|
+
- spec/thinking_sphinx/active_record/index_spec.rb
|
|
403
|
+
- spec/thinking_sphinx/active_record/interpreter_spec.rb
|
|
404
|
+
- spec/thinking_sphinx/active_record/property_sql_presenter_spec.rb
|
|
405
|
+
- spec/thinking_sphinx/active_record/sql_builder_spec.rb
|
|
406
|
+
- spec/thinking_sphinx/active_record/sql_source_spec.rb
|
|
534
407
|
- spec/thinking_sphinx/configuration_spec.rb
|
|
535
|
-
- spec/thinking_sphinx/
|
|
536
|
-
- spec/thinking_sphinx/
|
|
537
|
-
- spec/thinking_sphinx/core/array_spec.rb
|
|
538
|
-
- spec/thinking_sphinx/core/string_spec.rb
|
|
408
|
+
- spec/thinking_sphinx/deltas/default_delta_spec.rb
|
|
409
|
+
- spec/thinking_sphinx/deltas_spec.rb
|
|
539
410
|
- spec/thinking_sphinx/excerpter_spec.rb
|
|
540
411
|
- spec/thinking_sphinx/facet_search_spec.rb
|
|
541
|
-
- spec/thinking_sphinx/
|
|
542
|
-
- spec/thinking_sphinx/field_spec.rb
|
|
543
|
-
- spec/thinking_sphinx/index/builder_spec.rb
|
|
544
|
-
- spec/thinking_sphinx/index/faux_column_spec.rb
|
|
412
|
+
- spec/thinking_sphinx/index_set_spec.rb
|
|
545
413
|
- spec/thinking_sphinx/index_spec.rb
|
|
546
|
-
- spec/thinking_sphinx/
|
|
414
|
+
- spec/thinking_sphinx/masks/pagination_mask_spec.rb
|
|
415
|
+
- spec/thinking_sphinx/masks/scopes_mask_spec.rb
|
|
416
|
+
- spec/thinking_sphinx/middlewares/active_record_translator_spec.rb
|
|
417
|
+
- spec/thinking_sphinx/middlewares/geographer_spec.rb
|
|
418
|
+
- spec/thinking_sphinx/middlewares/glazier_spec.rb
|
|
419
|
+
- spec/thinking_sphinx/middlewares/inquirer_spec.rb
|
|
420
|
+
- spec/thinking_sphinx/middlewares/sphinxql_spec.rb
|
|
421
|
+
- spec/thinking_sphinx/middlewares/stale_id_checker_spec.rb
|
|
422
|
+
- spec/thinking_sphinx/middlewares/stale_id_filter_spec.rb
|
|
423
|
+
- spec/thinking_sphinx/panes/attributes_pane_spec.rb
|
|
424
|
+
- spec/thinking_sphinx/panes/distance_pane_spec.rb
|
|
425
|
+
- spec/thinking_sphinx/panes/excerpts_pane_spec.rb
|
|
426
|
+
- spec/thinking_sphinx/panes/weight_pane_spec.rb
|
|
427
|
+
- spec/thinking_sphinx/rake_interface_spec.rb
|
|
428
|
+
- spec/thinking_sphinx/real_time/attribute_spec.rb
|
|
429
|
+
- spec/thinking_sphinx/real_time/callbacks/real_time_callbacks_spec.rb
|
|
430
|
+
- spec/thinking_sphinx/real_time/field_spec.rb
|
|
431
|
+
- spec/thinking_sphinx/real_time/index_spec.rb
|
|
432
|
+
- spec/thinking_sphinx/real_time/interpreter_spec.rb
|
|
433
|
+
- spec/thinking_sphinx/scopes_spec.rb
|
|
434
|
+
- spec/thinking_sphinx/search/glaze_spec.rb
|
|
435
|
+
- spec/thinking_sphinx/search/query_spec.rb
|
|
547
436
|
- spec/thinking_sphinx/search_spec.rb
|
|
548
|
-
- spec/thinking_sphinx/source_spec.rb
|
|
549
|
-
- spec/thinking_sphinx/test_spec.rb
|
|
550
437
|
- spec/thinking_sphinx_spec.rb
|
|
551
438
|
has_rdoc:
|