thinking-sphinx 2.1.0 → 3.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) hide show
  1. data/.gitignore +8 -0
  2. data/.travis.yml +13 -0
  3. data/Appraisals +7 -0
  4. data/Gemfile +10 -0
  5. data/HISTORY +2 -267
  6. data/LICENCE +1 -1
  7. data/README.textile +194 -226
  8. data/Rakefile +24 -0
  9. data/gemfiles/.gitignore +1 -0
  10. data/gemfiles/rails_3_1.gemfile +11 -0
  11. data/gemfiles/rails_3_2.gemfile +11 -0
  12. data/lib/thinking-sphinx.rb +1 -1
  13. data/lib/thinking_sphinx.rb +34 -292
  14. data/lib/thinking_sphinx/active_record.rb +22 -383
  15. data/lib/thinking_sphinx/active_record/association.rb +9 -0
  16. data/lib/thinking_sphinx/active_record/association_proxy.rb +68 -0
  17. data/lib/thinking_sphinx/active_record/associations.rb +68 -0
  18. data/lib/thinking_sphinx/active_record/attribute.rb +20 -0
  19. data/lib/thinking_sphinx/active_record/attribute/sphinx_presenter.rb +32 -0
  20. data/lib/thinking_sphinx/active_record/attribute/type.rb +79 -0
  21. data/lib/thinking_sphinx/active_record/attribute/values.rb +18 -0
  22. data/lib/thinking_sphinx/active_record/base.rb +36 -0
  23. data/lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb +31 -0
  24. data/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb +55 -0
  25. data/lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb +59 -0
  26. data/lib/thinking_sphinx/active_record/column.rb +30 -0
  27. data/lib/thinking_sphinx/active_record/database_adapters.rb +51 -0
  28. data/lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb +13 -0
  29. data/lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb +23 -0
  30. data/lib/thinking_sphinx/active_record/database_adapters/postgresql_adapter.rb +25 -0
  31. data/lib/thinking_sphinx/active_record/field.rb +11 -0
  32. data/lib/thinking_sphinx/active_record/index.rb +55 -0
  33. data/lib/thinking_sphinx/active_record/interpreter.rb +47 -0
  34. data/lib/thinking_sphinx/active_record/log_subscriber.rb +10 -58
  35. data/lib/thinking_sphinx/active_record/property.rb +28 -0
  36. data/lib/thinking_sphinx/active_record/property_sql_presenter.rb +60 -0
  37. data/lib/thinking_sphinx/active_record/sql_builder.rb +159 -0
  38. data/lib/thinking_sphinx/active_record/sql_source.rb +138 -0
  39. data/lib/thinking_sphinx/active_record/sql_source/template.rb +46 -0
  40. data/lib/thinking_sphinx/batched_search.rb +26 -0
  41. data/lib/thinking_sphinx/callbacks.rb +15 -0
  42. data/lib/thinking_sphinx/configuration.rb +80 -331
  43. data/lib/thinking_sphinx/configuration/consistent_ids.rb +31 -0
  44. data/lib/thinking_sphinx/configuration/defaults.rb +5 -0
  45. data/lib/thinking_sphinx/core.rb +6 -0
  46. data/lib/thinking_sphinx/core/index.rb +68 -0
  47. data/lib/thinking_sphinx/core/interpreter.rb +19 -0
  48. data/lib/thinking_sphinx/deltas.rb +35 -26
  49. data/lib/thinking_sphinx/deltas/default_delta.rb +56 -56
  50. data/lib/thinking_sphinx/excerpter.rb +23 -21
  51. data/lib/thinking_sphinx/facet.rb +22 -127
  52. data/lib/thinking_sphinx/facet_search.rb +95 -162
  53. data/lib/thinking_sphinx/index.rb +39 -143
  54. data/lib/thinking_sphinx/index_set.rb +51 -0
  55. data/lib/thinking_sphinx/masks.rb +8 -0
  56. data/lib/thinking_sphinx/masks/group_enumerators_mask.rb +23 -0
  57. data/lib/thinking_sphinx/masks/pagination_mask.rb +60 -0
  58. data/lib/thinking_sphinx/masks/scopes_mask.rb +35 -0
  59. data/lib/thinking_sphinx/masks/weight_enumerator_mask.rb +11 -0
  60. data/lib/thinking_sphinx/middlewares.rb +36 -0
  61. data/lib/thinking_sphinx/middlewares/active_record_translator.rb +73 -0
  62. data/lib/thinking_sphinx/middlewares/geographer.rb +53 -0
  63. data/lib/thinking_sphinx/middlewares/glazier.rb +39 -0
  64. data/lib/thinking_sphinx/middlewares/ids_only.rb +13 -0
  65. data/lib/thinking_sphinx/middlewares/inquirer.rb +62 -0
  66. data/lib/thinking_sphinx/middlewares/middleware.rb +9 -0
  67. data/lib/thinking_sphinx/middlewares/sphinxql.rb +149 -0
  68. data/lib/thinking_sphinx/middlewares/stale_id_checker.rb +45 -0
  69. data/lib/thinking_sphinx/middlewares/stale_id_filter.rb +46 -0
  70. data/lib/thinking_sphinx/panes.rb +8 -0
  71. data/lib/thinking_sphinx/panes/attributes_pane.rb +9 -0
  72. data/lib/thinking_sphinx/panes/distance_pane.rb +13 -0
  73. data/lib/thinking_sphinx/panes/excerpts_pane.rb +37 -0
  74. data/lib/thinking_sphinx/panes/weight_pane.rb +9 -0
  75. data/lib/thinking_sphinx/railtie.rb +6 -40
  76. data/lib/thinking_sphinx/rake_interface.rb +47 -0
  77. data/lib/thinking_sphinx/real_time.rb +11 -0
  78. data/lib/thinking_sphinx/real_time/attribute.rb +5 -0
  79. data/lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb +48 -0
  80. data/lib/thinking_sphinx/real_time/field.rb +3 -0
  81. data/lib/thinking_sphinx/real_time/index.rb +47 -0
  82. data/lib/thinking_sphinx/real_time/index/template.rb +33 -0
  83. data/lib/thinking_sphinx/real_time/interpreter.rb +23 -0
  84. data/lib/thinking_sphinx/real_time/property.rb +16 -0
  85. data/lib/thinking_sphinx/scopes.rb +22 -0
  86. data/lib/thinking_sphinx/search.rb +90 -1028
  87. data/lib/thinking_sphinx/search/batch_inquirer.rb +27 -0
  88. data/lib/thinking_sphinx/search/context.rb +26 -0
  89. data/lib/thinking_sphinx/search/glaze.rb +32 -0
  90. data/lib/thinking_sphinx/search/merger.rb +24 -0
  91. data/lib/thinking_sphinx/search/query.rb +43 -0
  92. data/lib/thinking_sphinx/search/stale_ids_exception.rb +11 -0
  93. data/lib/thinking_sphinx/search/translator.rb +50 -0
  94. data/lib/thinking_sphinx/tasks.rb +22 -125
  95. data/lib/thinking_sphinx/test.rb +9 -19
  96. data/sketchpad.rb +58 -0
  97. data/spec/acceptance/association_scoping_spec.rb +23 -0
  98. data/spec/acceptance/attribute_access_spec.rb +39 -0
  99. data/spec/acceptance/attribute_updates_spec.rb +16 -0
  100. data/spec/acceptance/batch_searching_spec.rb +21 -0
  101. data/spec/acceptance/big_integers_spec.rb +27 -0
  102. data/spec/acceptance/excerpts_spec.rb +14 -0
  103. data/spec/acceptance/facets_spec.rb +122 -0
  104. data/spec/acceptance/geosearching_spec.rb +39 -0
  105. data/spec/acceptance/grouping_by_attributes_spec.rb +77 -0
  106. data/spec/acceptance/paginating_search_results_spec.rb +24 -0
  107. data/spec/acceptance/remove_deleted_records_spec.rb +23 -0
  108. data/spec/acceptance/search_counts_spec.rb +18 -0
  109. data/spec/acceptance/search_for_just_ids_spec.rb +19 -0
  110. data/spec/acceptance/searching_across_models_spec.rb +28 -0
  111. data/spec/acceptance/searching_on_fields_spec.rb +56 -0
  112. data/spec/acceptance/searching_with_filters_spec.rb +109 -0
  113. data/spec/acceptance/searching_with_sti_spec.rb +55 -0
  114. data/spec/acceptance/searching_within_a_model_spec.rb +52 -0
  115. data/spec/acceptance/sorting_search_results_spec.rb +41 -0
  116. data/spec/acceptance/spec_helper.rb +4 -0
  117. data/spec/acceptance/specifying_sql_spec.rb +62 -0
  118. data/spec/acceptance/sphinx_scopes_spec.rb +49 -0
  119. data/spec/acceptance/sql_deltas_spec.rb +43 -0
  120. data/spec/acceptance/support/database_cleaner.rb +11 -0
  121. data/spec/acceptance/support/sphinx_controller.rb +39 -0
  122. data/spec/acceptance/support/sphinx_helpers.rb +24 -0
  123. data/spec/acceptance/suspended_deltas_spec.rb +20 -0
  124. data/spec/internal/.gitignore +1 -0
  125. data/spec/internal/app/indices/animal_index.rb +3 -0
  126. data/spec/internal/app/indices/article_index.rb +24 -0
  127. data/spec/internal/app/indices/book_index.rb +8 -0
  128. data/spec/internal/app/indices/city_index.rb +6 -0
  129. data/spec/internal/app/indices/product_index.rb +3 -0
  130. data/spec/internal/app/indices/tee_index.rb +4 -0
  131. data/spec/internal/app/indices/user_index.rb +5 -0
  132. data/spec/internal/app/models/animal.rb +2 -0
  133. data/spec/internal/app/models/article.rb +5 -0
  134. data/spec/internal/app/models/bird.rb +2 -0
  135. data/spec/internal/app/models/book.rb +11 -0
  136. data/spec/internal/app/models/city.rb +2 -0
  137. data/spec/internal/app/models/colour.rb +3 -0
  138. data/spec/internal/app/models/flightless_bird.rb +2 -0
  139. data/spec/internal/app/models/mammal.rb +2 -0
  140. data/spec/internal/app/models/product.rb +3 -0
  141. data/spec/internal/app/models/tag.rb +4 -0
  142. data/{features/thinking_sphinx → spec/internal/app}/models/tagging.rb +1 -1
  143. data/spec/internal/app/models/tee.rb +3 -0
  144. data/spec/internal/app/models/tweet.rb +3 -0
  145. data/spec/internal/app/models/user.rb +3 -0
  146. data/spec/internal/config/database.yml +5 -0
  147. data/spec/internal/db/schema.rb +65 -0
  148. data/spec/internal/log/.gitignore +1 -0
  149. data/spec/spec_helper.rb +8 -49
  150. data/spec/support/sphinx_yaml_helpers.rb +9 -0
  151. data/spec/thinking_sphinx/active_record/association_spec.rb +12 -0
  152. data/spec/thinking_sphinx/active_record/associations_spec.rb +184 -0
  153. data/spec/thinking_sphinx/active_record/attribute/type_spec.rb +147 -0
  154. data/spec/thinking_sphinx/active_record/base_spec.rb +61 -0
  155. data/spec/thinking_sphinx/active_record/callbacks/delete_callbacks_spec.rb +80 -0
  156. data/spec/thinking_sphinx/active_record/callbacks/delta_callbacks_spec.rb +147 -0
  157. data/spec/thinking_sphinx/active_record/callbacks/update_callbacks_spec.rb +69 -0
  158. data/spec/thinking_sphinx/active_record/column_spec.rb +47 -0
  159. data/spec/thinking_sphinx/active_record/database_adapters/abstract_adapter_spec.rb +31 -0
  160. data/spec/thinking_sphinx/active_record/database_adapters/mysql_adapter_spec.rb +43 -0
  161. data/spec/thinking_sphinx/active_record/database_adapters/postgresql_adapter_spec.rb +45 -0
  162. data/spec/thinking_sphinx/active_record/database_adapters_spec.rb +108 -0
  163. data/spec/thinking_sphinx/active_record/field_spec.rb +36 -0
  164. data/spec/thinking_sphinx/active_record/index_spec.rb +208 -0
  165. data/spec/thinking_sphinx/active_record/interpreter_spec.rb +293 -0
  166. data/spec/thinking_sphinx/active_record/property_sql_presenter_spec.rb +162 -0
  167. data/spec/thinking_sphinx/active_record/sql_builder_spec.rb +666 -0
  168. data/spec/thinking_sphinx/active_record/sql_source_spec.rb +401 -0
  169. data/spec/thinking_sphinx/configuration_spec.rb +264 -171
  170. data/spec/thinking_sphinx/deltas/default_delta_spec.rb +116 -0
  171. data/spec/thinking_sphinx/deltas_spec.rb +58 -0
  172. data/spec/thinking_sphinx/excerpter_spec.rb +40 -38
  173. data/spec/thinking_sphinx/facet_search_spec.rb +49 -151
  174. data/spec/thinking_sphinx/index_set_spec.rb +68 -0
  175. data/spec/thinking_sphinx/index_spec.rb +91 -155
  176. data/spec/thinking_sphinx/masks/pagination_mask_spec.rb +121 -0
  177. data/spec/thinking_sphinx/masks/scopes_mask_spec.rb +68 -0
  178. data/spec/thinking_sphinx/middlewares/active_record_translator_spec.rb +132 -0
  179. data/spec/thinking_sphinx/middlewares/geographer_spec.rb +89 -0
  180. data/spec/thinking_sphinx/middlewares/glazier_spec.rb +62 -0
  181. data/spec/thinking_sphinx/middlewares/inquirer_spec.rb +55 -0
  182. data/spec/thinking_sphinx/middlewares/sphinxql_spec.rb +271 -0
  183. data/spec/thinking_sphinx/middlewares/stale_id_checker_spec.rb +47 -0
  184. data/spec/thinking_sphinx/middlewares/stale_id_filter_spec.rb +91 -0
  185. data/spec/thinking_sphinx/panes/attributes_pane_spec.rb +21 -0
  186. data/spec/thinking_sphinx/panes/distance_pane_spec.rb +41 -0
  187. data/spec/thinking_sphinx/panes/excerpts_pane_spec.rb +53 -0
  188. data/spec/thinking_sphinx/panes/weight_pane_spec.rb +20 -0
  189. data/spec/thinking_sphinx/rake_interface_spec.rb +147 -0
  190. data/spec/thinking_sphinx/real_time/attribute_spec.rb +62 -0
  191. data/spec/thinking_sphinx/real_time/callbacks/real_time_callbacks_spec.rb +76 -0
  192. data/spec/thinking_sphinx/real_time/field_spec.rb +54 -0
  193. data/spec/thinking_sphinx/real_time/index_spec.rb +154 -0
  194. data/spec/thinking_sphinx/real_time/interpreter_spec.rb +147 -0
  195. data/spec/thinking_sphinx/scopes_spec.rb +38 -0
  196. data/spec/thinking_sphinx/search/glaze_spec.rb +55 -0
  197. data/spec/thinking_sphinx/search/query_spec.rb +46 -0
  198. data/spec/thinking_sphinx/search_spec.rb +65 -1357
  199. data/spec/thinking_sphinx_spec.rb +19 -182
  200. data/thinking-sphinx.gemspec +33 -0
  201. metadata +318 -431
  202. data/features/abstract_inheritance.feature +0 -10
  203. data/features/alternate_primary_key.feature +0 -27
  204. data/features/attribute_transformation.feature +0 -22
  205. data/features/attribute_updates.feature +0 -79
  206. data/features/deleting_instances.feature +0 -70
  207. data/features/direct_attributes.feature +0 -11
  208. data/features/excerpts.feature +0 -21
  209. data/features/extensible_delta_indexing.feature +0 -9
  210. data/features/facets.feature +0 -88
  211. data/features/facets_across_model.feature +0 -29
  212. data/features/field_sorting.feature +0 -18
  213. data/features/handling_edits.feature +0 -97
  214. data/features/retry_stale_indexes.feature +0 -24
  215. data/features/searching_across_models.feature +0 -20
  216. data/features/searching_by_index.feature +0 -41
  217. data/features/searching_by_model.feature +0 -175
  218. data/features/searching_with_find_arguments.feature +0 -56
  219. data/features/sphinx_detection.feature +0 -25
  220. data/features/sphinx_scopes.feature +0 -68
  221. data/features/step_definitions/alpha_steps.rb +0 -16
  222. data/features/step_definitions/beta_steps.rb +0 -7
  223. data/features/step_definitions/common_steps.rb +0 -205
  224. data/features/step_definitions/extensible_delta_indexing_steps.rb +0 -7
  225. data/features/step_definitions/facet_steps.rb +0 -96
  226. data/features/step_definitions/find_arguments_steps.rb +0 -36
  227. data/features/step_definitions/gamma_steps.rb +0 -15
  228. data/features/step_definitions/scope_steps.rb +0 -19
  229. data/features/step_definitions/search_steps.rb +0 -94
  230. data/features/step_definitions/sphinx_steps.rb +0 -35
  231. data/features/sti_searching.feature +0 -19
  232. data/features/support/env.rb +0 -24
  233. data/features/support/lib/generic_delta_handler.rb +0 -8
  234. data/features/thinking_sphinx/database.example.yml +0 -3
  235. data/features/thinking_sphinx/db/.gitignore +0 -1
  236. data/features/thinking_sphinx/db/fixtures/alphas.rb +0 -8
  237. data/features/thinking_sphinx/db/fixtures/authors.rb +0 -1
  238. data/features/thinking_sphinx/db/fixtures/betas.rb +0 -11
  239. data/features/thinking_sphinx/db/fixtures/boxes.rb +0 -9
  240. data/features/thinking_sphinx/db/fixtures/categories.rb +0 -1
  241. data/features/thinking_sphinx/db/fixtures/cats.rb +0 -3
  242. data/features/thinking_sphinx/db/fixtures/comments.rb +0 -24
  243. data/features/thinking_sphinx/db/fixtures/developers.rb +0 -31
  244. data/features/thinking_sphinx/db/fixtures/dogs.rb +0 -3
  245. data/features/thinking_sphinx/db/fixtures/extensible_betas.rb +0 -10
  246. data/features/thinking_sphinx/db/fixtures/foxes.rb +0 -3
  247. data/features/thinking_sphinx/db/fixtures/gammas.rb +0 -10
  248. data/features/thinking_sphinx/db/fixtures/music.rb +0 -4
  249. data/features/thinking_sphinx/db/fixtures/people.rb +0 -1001
  250. data/features/thinking_sphinx/db/fixtures/post_keywords.txt +0 -1
  251. data/features/thinking_sphinx/db/fixtures/posts.rb +0 -10
  252. data/features/thinking_sphinx/db/fixtures/robots.rb +0 -8
  253. data/features/thinking_sphinx/db/fixtures/tags.rb +0 -27
  254. data/features/thinking_sphinx/db/migrations/create_alphas.rb +0 -8
  255. data/features/thinking_sphinx/db/migrations/create_animals.rb +0 -5
  256. data/features/thinking_sphinx/db/migrations/create_authors.rb +0 -3
  257. data/features/thinking_sphinx/db/migrations/create_authors_posts.rb +0 -6
  258. data/features/thinking_sphinx/db/migrations/create_betas.rb +0 -5
  259. data/features/thinking_sphinx/db/migrations/create_boxes.rb +0 -5
  260. data/features/thinking_sphinx/db/migrations/create_categories.rb +0 -3
  261. data/features/thinking_sphinx/db/migrations/create_comments.rb +0 -10
  262. data/features/thinking_sphinx/db/migrations/create_developers.rb +0 -7
  263. data/features/thinking_sphinx/db/migrations/create_extensible_betas.rb +0 -5
  264. data/features/thinking_sphinx/db/migrations/create_gammas.rb +0 -3
  265. data/features/thinking_sphinx/db/migrations/create_genres.rb +0 -3
  266. data/features/thinking_sphinx/db/migrations/create_music.rb +0 -6
  267. data/features/thinking_sphinx/db/migrations/create_people.rb +0 -13
  268. data/features/thinking_sphinx/db/migrations/create_posts.rb +0 -6
  269. data/features/thinking_sphinx/db/migrations/create_robots.rb +0 -4
  270. data/features/thinking_sphinx/db/migrations/create_taggings.rb +0 -5
  271. data/features/thinking_sphinx/db/migrations/create_tags.rb +0 -4
  272. data/features/thinking_sphinx/models/alpha.rb +0 -23
  273. data/features/thinking_sphinx/models/andrew.rb +0 -17
  274. data/features/thinking_sphinx/models/animal.rb +0 -5
  275. data/features/thinking_sphinx/models/author.rb +0 -3
  276. data/features/thinking_sphinx/models/beta.rb +0 -13
  277. data/features/thinking_sphinx/models/box.rb +0 -8
  278. data/features/thinking_sphinx/models/cat.rb +0 -3
  279. data/features/thinking_sphinx/models/category.rb +0 -4
  280. data/features/thinking_sphinx/models/comment.rb +0 -10
  281. data/features/thinking_sphinx/models/developer.rb +0 -21
  282. data/features/thinking_sphinx/models/dog.rb +0 -3
  283. data/features/thinking_sphinx/models/extensible_beta.rb +0 -9
  284. data/features/thinking_sphinx/models/fox.rb +0 -5
  285. data/features/thinking_sphinx/models/gamma.rb +0 -5
  286. data/features/thinking_sphinx/models/genre.rb +0 -3
  287. data/features/thinking_sphinx/models/medium.rb +0 -5
  288. data/features/thinking_sphinx/models/music.rb +0 -10
  289. data/features/thinking_sphinx/models/person.rb +0 -24
  290. data/features/thinking_sphinx/models/post.rb +0 -22
  291. data/features/thinking_sphinx/models/robot.rb +0 -12
  292. data/features/thinking_sphinx/models/tag.rb +0 -3
  293. data/lib/cucumber/thinking_sphinx/external_world.rb +0 -12
  294. data/lib/cucumber/thinking_sphinx/internal_world.rb +0 -137
  295. data/lib/cucumber/thinking_sphinx/sql_logger.rb +0 -28
  296. data/lib/thinking_sphinx/action_controller.rb +0 -31
  297. data/lib/thinking_sphinx/active_record/attribute_updates.rb +0 -54
  298. data/lib/thinking_sphinx/active_record/collection_proxy.rb +0 -47
  299. data/lib/thinking_sphinx/active_record/collection_proxy_with_scopes.rb +0 -27
  300. data/lib/thinking_sphinx/active_record/delta.rb +0 -67
  301. data/lib/thinking_sphinx/active_record/has_many_association.rb +0 -44
  302. data/lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb +0 -21
  303. data/lib/thinking_sphinx/active_record/scopes.rb +0 -110
  304. data/lib/thinking_sphinx/adapters/abstract_adapter.rb +0 -94
  305. data/lib/thinking_sphinx/adapters/mysql_adapter.rb +0 -62
  306. data/lib/thinking_sphinx/adapters/postgresql_adapter.rb +0 -188
  307. data/lib/thinking_sphinx/association.rb +0 -230
  308. data/lib/thinking_sphinx/attribute.rb +0 -405
  309. data/lib/thinking_sphinx/auto_version.rb +0 -40
  310. data/lib/thinking_sphinx/bundled_search.rb +0 -40
  311. data/lib/thinking_sphinx/class_facet.rb +0 -20
  312. data/lib/thinking_sphinx/connection.rb +0 -71
  313. data/lib/thinking_sphinx/context.rb +0 -81
  314. data/lib/thinking_sphinx/core/string.rb +0 -15
  315. data/lib/thinking_sphinx/deltas/delete_job.rb +0 -16
  316. data/lib/thinking_sphinx/deltas/index_job.rb +0 -17
  317. data/lib/thinking_sphinx/deploy/capistrano.rb +0 -99
  318. data/lib/thinking_sphinx/field.rb +0 -98
  319. data/lib/thinking_sphinx/index/builder.rb +0 -315
  320. data/lib/thinking_sphinx/index/faux_column.rb +0 -118
  321. data/lib/thinking_sphinx/join.rb +0 -37
  322. data/lib/thinking_sphinx/property.rb +0 -187
  323. data/lib/thinking_sphinx/search_methods.rb +0 -439
  324. data/lib/thinking_sphinx/sinatra.rb +0 -7
  325. data/lib/thinking_sphinx/source.rb +0 -194
  326. data/lib/thinking_sphinx/source/internal_properties.rb +0 -51
  327. data/lib/thinking_sphinx/source/sql.rb +0 -174
  328. data/spec/fixtures/data.sql +0 -32
  329. data/spec/fixtures/database.yml.default +0 -3
  330. data/spec/fixtures/models.rb +0 -164
  331. data/spec/fixtures/structure.sql +0 -146
  332. data/spec/sphinx_helper.rb +0 -60
  333. data/spec/support/rails.rb +0 -25
  334. data/spec/thinking_sphinx/active_record/delta_spec.rb +0 -123
  335. data/spec/thinking_sphinx/active_record/has_many_association_spec.rb +0 -173
  336. data/spec/thinking_sphinx/active_record/scopes_spec.rb +0 -177
  337. data/spec/thinking_sphinx/active_record_spec.rb +0 -573
  338. data/spec/thinking_sphinx/adapters/abstract_adapter_spec.rb +0 -163
  339. data/spec/thinking_sphinx/association_spec.rb +0 -250
  340. data/spec/thinking_sphinx/attribute_spec.rb +0 -552
  341. data/spec/thinking_sphinx/auto_version_spec.rb +0 -103
  342. data/spec/thinking_sphinx/connection_spec.rb +0 -77
  343. data/spec/thinking_sphinx/context_spec.rb +0 -127
  344. data/spec/thinking_sphinx/core/array_spec.rb +0 -9
  345. data/spec/thinking_sphinx/core/string_spec.rb +0 -9
  346. data/spec/thinking_sphinx/facet_spec.rb +0 -359
  347. data/spec/thinking_sphinx/field_spec.rb +0 -127
  348. data/spec/thinking_sphinx/index/builder_spec.rb +0 -532
  349. data/spec/thinking_sphinx/index/faux_column_spec.rb +0 -36
  350. data/spec/thinking_sphinx/search_methods_spec.rb +0 -156
  351. data/spec/thinking_sphinx/source_spec.rb +0 -267
  352. 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 '.context' do
5
- it "should return a Context instance" do
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
- it "should enable index definition" do
43
- ThinkingSphinx.define_indexes = false
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
- describe '.updates_enabled?' do
71
- it "should update indexes by default" do
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
- describe '.updates_enabled=' do
80
- it "should disable index updating" do
81
- ThinkingSphinx.updates_enabled = false
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
- it "should enable index updating" do
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 '.sphinx_running?' do
94
- it "should always say Sphinx is running if flagged as being on a remote machine" do
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
- adapter = defined?(JRUBY_VERSION) ? :JdbcAdapter : :Mysql2Adapter
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 "should return true if using mysql2 gem" do
148
- @connection.stub!(
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 "should return false if ONLY_FULL_GROUP_BY is set in any of the values" do
165
- @connection.stub!(
166
- :select_all => {
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
- ThinkingSphinx.use_group_by_shortcut?
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: 2.1.0
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: 2013-05-08 00:00:00.000000000 Z
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.3
21
+ version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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: innertube
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.2
43
+ version: 0.1.0
70
44
  type: :runtime
71
45
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
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: actionpack
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: 3.0.3
86
- type: :development
54
+ version: 1.5.3
55
+ type: :runtime
87
56
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
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: !ruby/object:Gem::Requirement
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: faker
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.3.1
76
+ version: 0.7.1
134
77
  type: :development
135
78
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
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: rake
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.9.2
150
- type: :development
87
+ version: 0.3.12b4
88
+ type: :runtime
151
89
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
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: 0.7.2
98
+ version: 2.11.0
198
99
  type: :development
199
100
  prerelease: false
200
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
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
- - lib/cucumber/thinking_sphinx/external_world.rb
215
- - lib/cucumber/thinking_sphinx/internal_world.rb
216
- - lib/cucumber/thinking_sphinx/sql_logger.rb
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/attribute_updates.rb
222
- - lib/thinking_sphinx/active_record/collection_proxy.rb
223
- - lib/thinking_sphinx/active_record/collection_proxy_with_scopes.rb
224
- - lib/thinking_sphinx/active_record/delta.rb
225
- - lib/thinking_sphinx/active_record/has_many_association.rb
226
- - lib/thinking_sphinx/active_record/has_many_association_with_scopes.rb
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/scopes.rb
229
- - lib/thinking_sphinx/adapters/abstract_adapter.rb
230
- - lib/thinking_sphinx/adapters/mysql_adapter.rb
231
- - lib/thinking_sphinx/adapters/postgresql_adapter.rb
232
- - lib/thinking_sphinx/association.rb
233
- - lib/thinking_sphinx/attribute.rb
234
- - lib/thinking_sphinx/auto_version.rb
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/connection.rb
239
- - lib/thinking_sphinx/context.rb
240
- - lib/thinking_sphinx/core/string.rb
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/index/builder.rb
252
- - lib/thinking_sphinx/index/faux_column.rb
253
- - lib/thinking_sphinx/join.rb
254
- - lib/thinking_sphinx/property.rb
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/search_methods.rb
258
- - lib/thinking_sphinx/sinatra.rb
259
- - lib/thinking_sphinx/source.rb
260
- - lib/thinking_sphinx/source/internal_properties.rb
261
- - lib/thinking_sphinx/source/sql.rb
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
- - LICENCE
265
- - README.textile
266
- - HISTORY
267
- - features/abstract_inheritance.feature
268
- - features/alternate_primary_key.feature
269
- - features/attribute_transformation.feature
270
- - features/attribute_updates.feature
271
- - features/deleting_instances.feature
272
- - features/direct_attributes.feature
273
- - features/excerpts.feature
274
- - features/extensible_delta_indexing.feature
275
- - features/facets.feature
276
- - features/facets_across_model.feature
277
- - features/field_sorting.feature
278
- - features/handling_edits.feature
279
- - features/retry_stale_indexes.feature
280
- - features/searching_across_models.feature
281
- - features/searching_by_index.feature
282
- - features/searching_by_model.feature
283
- - features/searching_with_find_arguments.feature
284
- - features/sphinx_detection.feature
285
- - features/sphinx_scopes.feature
286
- - features/step_definitions/alpha_steps.rb
287
- - features/step_definitions/beta_steps.rb
288
- - features/step_definitions/common_steps.rb
289
- - features/step_definitions/extensible_delta_indexing_steps.rb
290
- - features/step_definitions/facet_steps.rb
291
- - features/step_definitions/find_arguments_steps.rb
292
- - features/step_definitions/gamma_steps.rb
293
- - features/step_definitions/scope_steps.rb
294
- - features/step_definitions/search_steps.rb
295
- - features/step_definitions/sphinx_steps.rb
296
- - features/sti_searching.feature
297
- - features/support/env.rb
298
- - features/support/lib/generic_delta_handler.rb
299
- - features/thinking_sphinx/database.example.yml
300
- - features/thinking_sphinx/db/.gitignore
301
- - features/thinking_sphinx/db/fixtures/alphas.rb
302
- - features/thinking_sphinx/db/fixtures/authors.rb
303
- - features/thinking_sphinx/db/fixtures/betas.rb
304
- - features/thinking_sphinx/db/fixtures/boxes.rb
305
- - features/thinking_sphinx/db/fixtures/categories.rb
306
- - features/thinking_sphinx/db/fixtures/cats.rb
307
- - features/thinking_sphinx/db/fixtures/comments.rb
308
- - features/thinking_sphinx/db/fixtures/developers.rb
309
- - features/thinking_sphinx/db/fixtures/dogs.rb
310
- - features/thinking_sphinx/db/fixtures/extensible_betas.rb
311
- - features/thinking_sphinx/db/fixtures/foxes.rb
312
- - features/thinking_sphinx/db/fixtures/gammas.rb
313
- - features/thinking_sphinx/db/fixtures/music.rb
314
- - features/thinking_sphinx/db/fixtures/people.rb
315
- - features/thinking_sphinx/db/fixtures/post_keywords.txt
316
- - features/thinking_sphinx/db/fixtures/posts.rb
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/sphinx_helper.rb
365
- - spec/support/rails.rb
366
- - spec/thinking_sphinx/active_record/delta_spec.rb
367
- - spec/thinking_sphinx/active_record/has_many_association_spec.rb
368
- - spec/thinking_sphinx/active_record/scopes_spec.rb
369
- - spec/thinking_sphinx/active_record_spec.rb
370
- - spec/thinking_sphinx/adapters/abstract_adapter_spec.rb
371
- - spec/thinking_sphinx/association_spec.rb
372
- - spec/thinking_sphinx/attribute_spec.rb
373
- - spec/thinking_sphinx/auto_version_spec.rb
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/connection_spec.rb
376
- - spec/thinking_sphinx/context_spec.rb
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/facet_spec.rb
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/search_methods_spec.rb
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
- homepage: http://pat.github.io/thinking-sphinx/
309
+ - thinking-sphinx.gemspec
310
+ homepage: http://freelancing-god.github.com/ts/en
392
311
  licenses: []
393
- post_install_message: ! 'If you''re upgrading, you should read this:
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: '0'
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.23
330
+ rubygems_version: 1.8.16
423
331
  signing_key:
424
332
  specification_version: 3
425
- summary: ActiveRecord/Rails Sphinx library
333
+ summary: A smart wrapper over Sphinx for ActiveRecord
426
334
  test_files:
427
- - features/abstract_inheritance.feature
428
- - features/alternate_primary_key.feature
429
- - features/attribute_transformation.feature
430
- - features/attribute_updates.feature
431
- - features/deleting_instances.feature
432
- - features/direct_attributes.feature
433
- - features/excerpts.feature
434
- - features/extensible_delta_indexing.feature
435
- - features/facets.feature
436
- - features/facets_across_model.feature
437
- - features/field_sorting.feature
438
- - features/handling_edits.feature
439
- - features/retry_stale_indexes.feature
440
- - features/searching_across_models.feature
441
- - features/searching_by_index.feature
442
- - features/searching_by_model.feature
443
- - features/searching_with_find_arguments.feature
444
- - features/sphinx_detection.feature
445
- - features/sphinx_scopes.feature
446
- - features/step_definitions/alpha_steps.rb
447
- - features/step_definitions/beta_steps.rb
448
- - features/step_definitions/common_steps.rb
449
- - features/step_definitions/extensible_delta_indexing_steps.rb
450
- - features/step_definitions/facet_steps.rb
451
- - features/step_definitions/find_arguments_steps.rb
452
- - features/step_definitions/gamma_steps.rb
453
- - features/step_definitions/scope_steps.rb
454
- - features/step_definitions/search_steps.rb
455
- - features/step_definitions/sphinx_steps.rb
456
- - features/sti_searching.feature
457
- - features/support/env.rb
458
- - features/support/lib/generic_delta_handler.rb
459
- - features/thinking_sphinx/database.example.yml
460
- - features/thinking_sphinx/db/.gitignore
461
- - features/thinking_sphinx/db/fixtures/alphas.rb
462
- - features/thinking_sphinx/db/fixtures/authors.rb
463
- - features/thinking_sphinx/db/fixtures/betas.rb
464
- - features/thinking_sphinx/db/fixtures/boxes.rb
465
- - features/thinking_sphinx/db/fixtures/categories.rb
466
- - features/thinking_sphinx/db/fixtures/cats.rb
467
- - features/thinking_sphinx/db/fixtures/comments.rb
468
- - features/thinking_sphinx/db/fixtures/developers.rb
469
- - features/thinking_sphinx/db/fixtures/dogs.rb
470
- - features/thinking_sphinx/db/fixtures/extensible_betas.rb
471
- - features/thinking_sphinx/db/fixtures/foxes.rb
472
- - features/thinking_sphinx/db/fixtures/gammas.rb
473
- - features/thinking_sphinx/db/fixtures/music.rb
474
- - features/thinking_sphinx/db/fixtures/people.rb
475
- - features/thinking_sphinx/db/fixtures/post_keywords.txt
476
- - features/thinking_sphinx/db/fixtures/posts.rb
477
- - features/thinking_sphinx/db/fixtures/robots.rb
478
- - features/thinking_sphinx/db/fixtures/tags.rb
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/sphinx_helper.rb
525
- - spec/support/rails.rb
526
- - spec/thinking_sphinx/active_record/delta_spec.rb
527
- - spec/thinking_sphinx/active_record/has_many_association_spec.rb
528
- - spec/thinking_sphinx/active_record/scopes_spec.rb
529
- - spec/thinking_sphinx/active_record_spec.rb
530
- - spec/thinking_sphinx/adapters/abstract_adapter_spec.rb
531
- - spec/thinking_sphinx/association_spec.rb
532
- - spec/thinking_sphinx/attribute_spec.rb
533
- - spec/thinking_sphinx/auto_version_spec.rb
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/connection_spec.rb
536
- - spec/thinking_sphinx/context_spec.rb
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/facet_spec.rb
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/search_methods_spec.rb
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: