sunspot_rails 2.0.0.pre.120720 → 2.0.0.pre.120924

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. data/.gitignore +10 -6
  2. data/.travis.yml +35 -0
  3. data/README.md +863 -0
  4. data/Rakefile +32 -12
  5. data/ci/travis.sh +67 -0
  6. data/sunspot/.gitignore +13 -0
  7. data/sunspot/Gemfile +5 -0
  8. data/sunspot/History.txt +258 -0
  9. data/{LICENSE → sunspot/LICENSE} +0 -0
  10. data/sunspot/Rakefile +13 -0
  11. data/sunspot/TODO +13 -0
  12. data/sunspot/lib/light_config.rb +40 -0
  13. data/sunspot/lib/sunspot.rb +579 -0
  14. data/sunspot/lib/sunspot/adapters.rb +349 -0
  15. data/sunspot/lib/sunspot/batcher.rb +62 -0
  16. data/sunspot/lib/sunspot/class_set.rb +23 -0
  17. data/sunspot/lib/sunspot/composite_setup.rb +202 -0
  18. data/sunspot/lib/sunspot/configuration.rb +53 -0
  19. data/sunspot/lib/sunspot/data_extractor.rb +50 -0
  20. data/sunspot/lib/sunspot/dsl.rb +5 -0
  21. data/sunspot/lib/sunspot/dsl/adjustable.rb +47 -0
  22. data/sunspot/lib/sunspot/dsl/field_group.rb +57 -0
  23. data/sunspot/lib/sunspot/dsl/field_query.rb +345 -0
  24. data/sunspot/lib/sunspot/dsl/fields.rb +103 -0
  25. data/sunspot/lib/sunspot/dsl/fulltext.rb +243 -0
  26. data/sunspot/lib/sunspot/dsl/function.rb +27 -0
  27. data/sunspot/lib/sunspot/dsl/functional.rb +44 -0
  28. data/sunspot/lib/sunspot/dsl/more_like_this_query.rb +56 -0
  29. data/sunspot/lib/sunspot/dsl/paginatable.rb +32 -0
  30. data/sunspot/lib/sunspot/dsl/query_facet.rb +36 -0
  31. data/sunspot/lib/sunspot/dsl/restriction.rb +25 -0
  32. data/sunspot/lib/sunspot/dsl/restriction_with_near.rb +160 -0
  33. data/sunspot/lib/sunspot/dsl/scope.rb +214 -0
  34. data/sunspot/lib/sunspot/dsl/search.rb +30 -0
  35. data/sunspot/lib/sunspot/dsl/standard_query.rb +122 -0
  36. data/sunspot/lib/sunspot/field.rb +193 -0
  37. data/sunspot/lib/sunspot/field_factory.rb +129 -0
  38. data/sunspot/lib/sunspot/indexer.rb +136 -0
  39. data/sunspot/lib/sunspot/query.rb +11 -0
  40. data/sunspot/lib/sunspot/query/abstract_field_facet.rb +55 -0
  41. data/sunspot/lib/sunspot/query/bbox.rb +15 -0
  42. data/sunspot/lib/sunspot/query/boost_query.rb +24 -0
  43. data/sunspot/lib/sunspot/query/common_query.rb +96 -0
  44. data/sunspot/lib/sunspot/query/composite_fulltext.rb +36 -0
  45. data/sunspot/lib/sunspot/query/connective.rb +206 -0
  46. data/sunspot/lib/sunspot/query/date_field_facet.rb +14 -0
  47. data/sunspot/lib/sunspot/query/dismax.rb +132 -0
  48. data/sunspot/lib/sunspot/query/field_facet.rb +41 -0
  49. data/sunspot/lib/sunspot/query/field_group.rb +37 -0
  50. data/sunspot/lib/sunspot/query/filter.rb +38 -0
  51. data/sunspot/lib/sunspot/query/function_query.rb +52 -0
  52. data/sunspot/lib/sunspot/query/geo.rb +53 -0
  53. data/sunspot/lib/sunspot/query/geofilt.rb +16 -0
  54. data/sunspot/lib/sunspot/query/highlighting.rb +62 -0
  55. data/sunspot/lib/sunspot/query/more_like_this.rb +61 -0
  56. data/sunspot/lib/sunspot/query/more_like_this_query.rb +12 -0
  57. data/sunspot/lib/sunspot/query/pagination.rb +42 -0
  58. data/sunspot/lib/sunspot/query/query_facet.rb +53 -0
  59. data/sunspot/lib/sunspot/query/range_facet.rb +15 -0
  60. data/sunspot/lib/sunspot/query/restriction.rb +308 -0
  61. data/sunspot/lib/sunspot/query/scope.rb +9 -0
  62. data/sunspot/lib/sunspot/query/sort.rb +109 -0
  63. data/sunspot/lib/sunspot/query/sort_composite.rb +34 -0
  64. data/sunspot/lib/sunspot/query/standard_query.rb +16 -0
  65. data/sunspot/lib/sunspot/query/text_field_boost.rb +17 -0
  66. data/sunspot/lib/sunspot/schema.rb +151 -0
  67. data/sunspot/lib/sunspot/search.rb +9 -0
  68. data/sunspot/lib/sunspot/search/abstract_search.rb +286 -0
  69. data/sunspot/lib/sunspot/search/date_facet.rb +35 -0
  70. data/sunspot/lib/sunspot/search/facet_row.rb +27 -0
  71. data/sunspot/lib/sunspot/search/field_facet.rb +88 -0
  72. data/sunspot/lib/sunspot/search/field_group.rb +70 -0
  73. data/sunspot/lib/sunspot/search/group.rb +54 -0
  74. data/sunspot/lib/sunspot/search/highlight.rb +38 -0
  75. data/sunspot/lib/sunspot/search/hit.rb +150 -0
  76. data/sunspot/lib/sunspot/search/hit_enumerable.rb +68 -0
  77. data/sunspot/lib/sunspot/search/more_like_this_search.rb +31 -0
  78. data/sunspot/lib/sunspot/search/paginated_collection.rb +57 -0
  79. data/sunspot/lib/sunspot/search/query_facet.rb +67 -0
  80. data/sunspot/lib/sunspot/search/range_facet.rb +37 -0
  81. data/sunspot/lib/sunspot/search/standard_search.rb +21 -0
  82. data/sunspot/lib/sunspot/session.rb +262 -0
  83. data/sunspot/lib/sunspot/session_proxy.rb +95 -0
  84. data/sunspot/lib/sunspot/session_proxy/abstract_session_proxy.rb +29 -0
  85. data/sunspot/lib/sunspot/session_proxy/class_sharding_session_proxy.rb +66 -0
  86. data/sunspot/lib/sunspot/session_proxy/id_sharding_session_proxy.rb +89 -0
  87. data/sunspot/lib/sunspot/session_proxy/master_slave_session_proxy.rb +43 -0
  88. data/sunspot/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb +67 -0
  89. data/sunspot/lib/sunspot/session_proxy/sharding_session_proxy.rb +222 -0
  90. data/sunspot/lib/sunspot/session_proxy/silent_fail_session_proxy.rb +42 -0
  91. data/sunspot/lib/sunspot/session_proxy/thread_local_session_proxy.rb +37 -0
  92. data/sunspot/lib/sunspot/setup.rb +350 -0
  93. data/sunspot/lib/sunspot/text_field_setup.rb +29 -0
  94. data/sunspot/lib/sunspot/type.rb +393 -0
  95. data/sunspot/lib/sunspot/util.rb +252 -0
  96. data/sunspot/lib/sunspot/version.rb +3 -0
  97. data/sunspot/script/console +10 -0
  98. data/sunspot/spec/api/adapters_spec.rb +68 -0
  99. data/sunspot/spec/api/batcher_spec.rb +112 -0
  100. data/sunspot/spec/api/binding_spec.rb +50 -0
  101. data/sunspot/spec/api/class_set_spec.rb +24 -0
  102. data/sunspot/spec/api/hit_enumerable_spec.rb +47 -0
  103. data/sunspot/spec/api/indexer/attributes_spec.rb +149 -0
  104. data/sunspot/spec/api/indexer/batch_spec.rb +72 -0
  105. data/sunspot/spec/api/indexer/dynamic_fields_spec.rb +42 -0
  106. data/sunspot/spec/api/indexer/fixed_fields_spec.rb +57 -0
  107. data/sunspot/spec/api/indexer/fulltext_spec.rb +43 -0
  108. data/sunspot/spec/api/indexer/removal_spec.rb +53 -0
  109. data/sunspot/spec/api/indexer/spec_helper.rb +1 -0
  110. data/sunspot/spec/api/indexer_spec.rb +14 -0
  111. data/sunspot/spec/api/query/advanced_manipulation_examples.rb +35 -0
  112. data/sunspot/spec/api/query/connectives_examples.rb +201 -0
  113. data/sunspot/spec/api/query/dsl_spec.rb +18 -0
  114. data/sunspot/spec/api/query/dynamic_fields_examples.rb +165 -0
  115. data/sunspot/spec/api/query/faceting_examples.rb +497 -0
  116. data/sunspot/spec/api/query/fulltext_examples.rb +313 -0
  117. data/sunspot/spec/api/query/function_spec.rb +79 -0
  118. data/sunspot/spec/api/query/geo_examples.rb +68 -0
  119. data/sunspot/spec/api/query/group_spec.rb +32 -0
  120. data/sunspot/spec/api/query/highlighting_examples.rb +245 -0
  121. data/sunspot/spec/api/query/more_like_this_spec.rb +140 -0
  122. data/sunspot/spec/api/query/ordering_pagination_examples.rb +116 -0
  123. data/sunspot/spec/api/query/scope_examples.rb +275 -0
  124. data/sunspot/spec/api/query/spatial_examples.rb +27 -0
  125. data/sunspot/spec/api/query/spec_helper.rb +1 -0
  126. data/sunspot/spec/api/query/standard_spec.rb +29 -0
  127. data/sunspot/spec/api/query/text_field_scoping_examples.rb +30 -0
  128. data/sunspot/spec/api/query/types_spec.rb +20 -0
  129. data/sunspot/spec/api/search/dynamic_fields_spec.rb +33 -0
  130. data/sunspot/spec/api/search/faceting_spec.rb +360 -0
  131. data/sunspot/spec/api/search/highlighting_spec.rb +69 -0
  132. data/sunspot/spec/api/search/hits_spec.rb +147 -0
  133. data/sunspot/spec/api/search/paginated_collection_spec.rb +36 -0
  134. data/sunspot/spec/api/search/results_spec.rb +72 -0
  135. data/sunspot/spec/api/search/search_spec.rb +23 -0
  136. data/sunspot/spec/api/search/spec_helper.rb +1 -0
  137. data/sunspot/spec/api/session_proxy/class_sharding_session_proxy_spec.rb +85 -0
  138. data/sunspot/spec/api/session_proxy/id_sharding_session_proxy_spec.rb +30 -0
  139. data/sunspot/spec/api/session_proxy/master_slave_session_proxy_spec.rb +41 -0
  140. data/sunspot/spec/api/session_proxy/retry_5xx_session_proxy_spec.rb +78 -0
  141. data/sunspot/spec/api/session_proxy/sharding_session_proxy_spec.rb +77 -0
  142. data/sunspot/spec/api/session_proxy/silent_fail_session_proxy_spec.rb +24 -0
  143. data/sunspot/spec/api/session_proxy/spec_helper.rb +9 -0
  144. data/sunspot/spec/api/session_proxy/thread_local_session_proxy_spec.rb +39 -0
  145. data/sunspot/spec/api/session_spec.rb +232 -0
  146. data/sunspot/spec/api/spec_helper.rb +3 -0
  147. data/sunspot/spec/api/sunspot_spec.rb +29 -0
  148. data/sunspot/spec/ext.rb +11 -0
  149. data/sunspot/spec/helpers/indexer_helper.rb +17 -0
  150. data/sunspot/spec/helpers/integration_helper.rb +8 -0
  151. data/sunspot/spec/helpers/mock_session_helper.rb +13 -0
  152. data/sunspot/spec/helpers/query_helper.rb +26 -0
  153. data/sunspot/spec/helpers/search_helper.rb +68 -0
  154. data/sunspot/spec/integration/dynamic_fields_spec.rb +57 -0
  155. data/sunspot/spec/integration/faceting_spec.rb +330 -0
  156. data/sunspot/spec/integration/field_grouping_spec.rb +100 -0
  157. data/sunspot/spec/integration/geospatial_spec.rb +96 -0
  158. data/sunspot/spec/integration/highlighting_spec.rb +44 -0
  159. data/sunspot/spec/integration/indexing_spec.rb +55 -0
  160. data/sunspot/spec/integration/keyword_search_spec.rb +317 -0
  161. data/sunspot/spec/integration/local_search_spec.rb +64 -0
  162. data/sunspot/spec/integration/more_like_this_spec.rb +43 -0
  163. data/sunspot/spec/integration/scoped_search_spec.rb +386 -0
  164. data/sunspot/spec/integration/stored_fields_spec.rb +12 -0
  165. data/sunspot/spec/integration/test_pagination.rb +43 -0
  166. data/sunspot/spec/integration/unicode_spec.rb +15 -0
  167. data/sunspot/spec/mocks/adapters.rb +33 -0
  168. data/sunspot/spec/mocks/blog.rb +3 -0
  169. data/sunspot/spec/mocks/comment.rb +21 -0
  170. data/sunspot/spec/mocks/connection.rb +126 -0
  171. data/sunspot/spec/mocks/mock_adapter.rb +30 -0
  172. data/sunspot/spec/mocks/mock_class_sharding_session_proxy.rb +24 -0
  173. data/sunspot/spec/mocks/mock_record.rb +52 -0
  174. data/sunspot/spec/mocks/mock_sharding_session_proxy.rb +15 -0
  175. data/sunspot/spec/mocks/photo.rb +11 -0
  176. data/sunspot/spec/mocks/post.rb +86 -0
  177. data/sunspot/spec/mocks/super_class.rb +2 -0
  178. data/sunspot/spec/mocks/user.rb +13 -0
  179. data/sunspot/spec/spec_helper.rb +40 -0
  180. data/sunspot/sunspot.gemspec +37 -0
  181. data/sunspot/tasks/rdoc.rake +27 -0
  182. data/sunspot/tasks/schema.rake +19 -0
  183. data/{dev_tasks → sunspot/tasks}/todo.rake +0 -0
  184. data/sunspot_rails/.gitignore +7 -0
  185. data/{.rspec → sunspot_rails/.rspec} +0 -0
  186. data/{History.txt → sunspot_rails/History.txt} +0 -0
  187. data/sunspot_rails/LICENSE +18 -0
  188. data/{MIT-LICENSE → sunspot_rails/MIT-LICENSE} +0 -0
  189. data/{README.rdoc → sunspot_rails/README.rdoc} +0 -0
  190. data/sunspot_rails/Rakefile +17 -0
  191. data/{TODO → sunspot_rails/TODO} +0 -0
  192. data/{dev_tasks → sunspot_rails/dev_tasks}/rdoc.rake +0 -0
  193. data/{dev_tasks → sunspot_rails/dev_tasks}/release.rake +0 -0
  194. data/{dev_tasks → sunspot_rails/dev_tasks}/spec.rake +0 -0
  195. data/sunspot_rails/dev_tasks/todo.rake +4 -0
  196. data/{gemfiles → sunspot_rails/gemfiles}/rails-2.3.14 +0 -0
  197. data/{gemfiles → sunspot_rails/gemfiles}/rails-3.0.15 +0 -0
  198. data/{gemfiles → sunspot_rails/gemfiles}/rails-3.1.6 +0 -0
  199. data/{gemfiles → sunspot_rails/gemfiles}/rails-3.2.6 +0 -0
  200. data/{generators → sunspot_rails/generators}/sunspot/sunspot_generator.rb +0 -0
  201. data/{generators → sunspot_rails/generators}/sunspot/templates/sunspot.yml +0 -0
  202. data/{install.rb → sunspot_rails/install.rb} +0 -0
  203. data/{lib → sunspot_rails/lib}/generators/sunspot_rails.rb +0 -0
  204. data/{lib → sunspot_rails/lib}/generators/sunspot_rails/install/install_generator.rb +0 -0
  205. data/{lib → sunspot_rails/lib}/generators/sunspot_rails/install/templates/config/sunspot.yml +0 -0
  206. data/{lib → sunspot_rails/lib}/sunspot/rails.rb +0 -0
  207. data/{lib → sunspot_rails/lib}/sunspot/rails/adapters.rb +5 -0
  208. data/{lib → sunspot_rails/lib}/sunspot/rails/configuration.rb +0 -0
  209. data/{lib → sunspot_rails/lib}/sunspot/rails/init.rb +0 -0
  210. data/{lib → sunspot_rails/lib}/sunspot/rails/log_subscriber.rb +12 -0
  211. data/{lib → sunspot_rails/lib}/sunspot/rails/railtie.rb +5 -0
  212. data/{lib → sunspot_rails/lib}/sunspot/rails/railties/controller_runtime.rb +0 -0
  213. data/{lib → sunspot_rails/lib}/sunspot/rails/request_lifecycle.rb +0 -0
  214. data/{lib → sunspot_rails/lib}/sunspot/rails/searchable.rb +10 -6
  215. data/{lib → sunspot_rails/lib}/sunspot/rails/server.rb +0 -0
  216. data/{lib → sunspot_rails/lib}/sunspot/rails/solr_instrumentation.rb +0 -0
  217. data/{lib → sunspot_rails/lib}/sunspot/rails/solr_logging.rb +0 -0
  218. data/{lib → sunspot_rails/lib}/sunspot/rails/spec_helper.rb +0 -0
  219. data/{lib → sunspot_rails/lib}/sunspot/rails/stub_session_proxy.rb +0 -0
  220. data/{lib → sunspot_rails/lib}/sunspot/rails/tasks.rb +0 -0
  221. data/{lib → sunspot_rails/lib}/sunspot_rails.rb +0 -0
  222. data/{spec → sunspot_rails/spec}/configuration_spec.rb +0 -0
  223. data/{spec → sunspot_rails/spec}/model_lifecycle_spec.rb +0 -0
  224. data/{spec → sunspot_rails/spec}/model_spec.rb +0 -0
  225. data/{spec → sunspot_rails/spec}/rails_template/app/controllers/application_controller.rb +0 -0
  226. data/{spec → sunspot_rails/spec}/rails_template/app/controllers/posts_controller.rb +0 -0
  227. data/{spec → sunspot_rails/spec}/rails_template/app/models/author.rb +0 -0
  228. data/{spec → sunspot_rails/spec}/rails_template/app/models/blog.rb +0 -0
  229. data/{spec → sunspot_rails/spec}/rails_template/app/models/location.rb +0 -0
  230. data/{spec → sunspot_rails/spec}/rails_template/app/models/photo_post.rb +0 -0
  231. data/{spec → sunspot_rails/spec}/rails_template/app/models/post.rb +0 -0
  232. data/{spec → sunspot_rails/spec}/rails_template/app/models/post_with_auto.rb +0 -0
  233. data/{spec → sunspot_rails/spec}/rails_template/app/models/post_with_default_scope.rb +0 -0
  234. data/{spec → sunspot_rails/spec}/rails_template/config/boot.rb +0 -0
  235. data/{spec → sunspot_rails/spec}/rails_template/config/preinitializer.rb +0 -0
  236. data/{spec → sunspot_rails/spec}/rails_template/config/routes.rb +0 -0
  237. data/{spec → sunspot_rails/spec}/rails_template/config/sunspot.yml +0 -0
  238. data/{spec → sunspot_rails/spec}/rails_template/db/schema.rb +0 -0
  239. data/{spec → sunspot_rails/spec}/request_lifecycle_spec.rb +0 -0
  240. data/{spec → sunspot_rails/spec}/schema.rb +0 -0
  241. data/{spec → sunspot_rails/spec}/searchable_spec.rb +0 -0
  242. data/{spec → sunspot_rails/spec}/server_spec.rb +0 -0
  243. data/{spec → sunspot_rails/spec}/session_spec.rb +0 -0
  244. data/{spec → sunspot_rails/spec}/shared_examples/indexed_after_save.rb +0 -0
  245. data/{spec → sunspot_rails/spec}/shared_examples/not_indexed_after_save.rb +0 -0
  246. data/{spec → sunspot_rails/spec}/spec_helper.rb +0 -0
  247. data/{spec → sunspot_rails/spec}/stub_session_proxy_spec.rb +0 -0
  248. data/{sunspot_rails.gemspec → sunspot_rails/sunspot_rails.gemspec} +0 -0
  249. data/sunspot_solr/Gemfile +3 -0
  250. data/sunspot_solr/README.rdoc +24 -0
  251. data/sunspot_solr/bin/sunspot-installer +20 -0
  252. data/sunspot_solr/bin/sunspot-solr +80 -0
  253. data/sunspot_solr/lib/sunspot/solr/installer.rb +25 -0
  254. data/sunspot_solr/lib/sunspot/solr/installer/config_installer.rb +46 -0
  255. data/sunspot_solr/lib/sunspot/solr/installer/task_helper.rb +13 -0
  256. data/sunspot_solr/lib/sunspot/solr/java.rb +10 -0
  257. data/sunspot_solr/lib/sunspot/solr/railtie.rb +15 -0
  258. data/sunspot_solr/lib/sunspot/solr/server.rb +223 -0
  259. data/sunspot_solr/lib/sunspot/solr/tasks.rb +49 -0
  260. data/sunspot_solr/lib/sunspot_solr.rb +5 -0
  261. data/sunspot_solr/solr/README.txt +42 -0
  262. data/sunspot_solr/solr/etc/jetty.xml +219 -0
  263. data/sunspot_solr/solr/etc/webdefault.xml +379 -0
  264. data/sunspot_solr/solr/lib/jetty-6.1.26-patched-JETTY-1340.jar +0 -0
  265. data/sunspot_solr/solr/lib/jetty-util-6.1.26-patched-JETTY-1340.jar +0 -0
  266. data/sunspot_solr/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  267. data/sunspot_solr/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  268. data/sunspot_solr/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  269. data/sunspot_solr/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  270. data/sunspot_solr/solr/lib/servlet-api-2.5-20081211.jar +0 -0
  271. data/sunspot_solr/solr/solr/.gitignore +1 -0
  272. data/sunspot_solr/solr/solr/README.txt +54 -0
  273. data/sunspot_solr/solr/solr/conf/admin-extra.html +31 -0
  274. data/sunspot_solr/solr/solr/conf/elevate.xml +36 -0
  275. data/sunspot_solr/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  276. data/sunspot_solr/solr/solr/conf/protwords.txt +21 -0
  277. data/sunspot_solr/solr/solr/conf/schema.xml +250 -0
  278. data/sunspot_solr/solr/solr/conf/scripts.conf +24 -0
  279. data/sunspot_solr/solr/solr/conf/solrconfig.xml +934 -0
  280. data/sunspot_solr/solr/solr/conf/spellings.txt +2 -0
  281. data/sunspot_solr/solr/solr/conf/stopwords.txt +58 -0
  282. data/sunspot_solr/solr/solr/conf/synonyms.txt +31 -0
  283. data/sunspot_solr/solr/solr/conf/xslt/example.xsl +132 -0
  284. data/sunspot_solr/solr/solr/conf/xslt/example_atom.xsl +67 -0
  285. data/sunspot_solr/solr/solr/conf/xslt/example_rss.xsl +66 -0
  286. data/sunspot_solr/solr/solr/conf/xslt/luke.xsl +337 -0
  287. data/sunspot_solr/solr/start.jar +0 -0
  288. data/sunspot_solr/solr/webapps/solr.war +0 -0
  289. data/sunspot_solr/spec/server_spec.rb +98 -0
  290. data/sunspot_solr/spec/spec_helper.rb +18 -0
  291. data/sunspot_solr/sunspot_solr.gemspec +37 -0
  292. data/tools/gem_tasks.rb +69 -0
  293. metadata +356 -177
Binary file
Binary file
@@ -0,0 +1,98 @@
1
+ require File.expand_path('spec_helper', File.dirname(__FILE__))
2
+ require 'tempfile'
3
+
4
+ describe Sunspot::Solr::Server do
5
+ SUNSPOT_START_JAR = File.expand_path(
6
+ File.join(File.dirname(__FILE__), '..', '..', 'solr', 'start.jar')
7
+ )
8
+
9
+ before :each do
10
+ @server = Sunspot::Solr::Server.new
11
+ end
12
+
13
+ it 'runs server in current process' do
14
+ @server.should_not_receive(:fork)
15
+ @server.should_receive(:exec).with(/java .*-jar start.jar/)
16
+ @server.run
17
+ end
18
+
19
+ it 'runs Java with min memory' do
20
+ @server.min_memory = 1024
21
+ @server.should_receive(:exec).with(/-Xms1024/)
22
+ @server.run
23
+ end
24
+
25
+ it 'runs Java with max memory' do
26
+ @server.max_memory = 2048
27
+ @server.should_receive(:exec).with(/-Xmx2048/)
28
+ @server.run
29
+ end
30
+
31
+ it 'runs Jetty with specified port' do
32
+ @server.port = 8981
33
+ @server.should_receive(:exec).with(/-Djetty\.port=8981/)
34
+ @server.run
35
+ end
36
+
37
+ it 'runs Solr with specified data dir' do
38
+ @server.solr_data_dir = '/tmp/var/solr/data'
39
+ @server.should_receive(:exec).with(%r(-Dsolr\.data\.dir=/tmp/var/solr/data))
40
+ @server.run
41
+ end
42
+
43
+ it 'runs Solr with specified Solr home' do
44
+ @server.solr_home = '/tmp/var/solr'
45
+ @server.should_receive(:exec).with(%r(-Dsolr\.solr\.home=/tmp/var/solr))
46
+ @server.run
47
+ end
48
+
49
+ it 'runs Solr with specified Solr jar' do
50
+ @server.solr_jar = SUNSPOT_START_JAR
51
+ FileUtils.should_receive(:cd).with(File.dirname(SUNSPOT_START_JAR))
52
+ @server.run
53
+ end
54
+
55
+ it 'raises an error if java is missing' do
56
+ Sunspot::Solr::Java.stub(:installed? => false)
57
+ expect {
58
+ Sunspot::Solr::Server.new
59
+ }.to raise_error(Sunspot::Solr::Server::JavaMissing)
60
+ end
61
+
62
+ describe 'with logging' do
63
+ before :each do
64
+ @server.log_level = 'info'
65
+ @server.log_file = 'log/sunspot-development.log'
66
+ Tempfile.should_receive(:new).with('logging.properties').and_return(@tempfile = StringIO.new)
67
+ @tempfile.should_receive(:flush)
68
+ @tempfile.should_receive(:close)
69
+ @tempfile.stub!(:path).and_return('/tmp/logging.properties.12345')
70
+ @server.stub!(:exec)
71
+ end
72
+
73
+ it 'runs Solr with logging properties file' do
74
+ @server.should_receive(:exec).with(%r(-Djava\.util\.logging\.config\.file=/tmp/logging\.properties\.12345))
75
+ @server.run
76
+ end
77
+
78
+ it 'sets logging level' do
79
+ @server.run
80
+ @tempfile.string.should =~ /^java\.util\.logging\.FileHandler\.level *= *INFO$/
81
+ end
82
+
83
+ it 'sets handler' do
84
+ @server.run
85
+ @tempfile.string.should =~ /^handlers *= *java.util.logging.FileHandler$/
86
+ end
87
+
88
+ it 'sets formatter' do
89
+ @server.run
90
+ @tempfile.string.should =~ /^java\.util\.logging\.FileHandler\.formatter *= *java\.util\.logging\.SimpleFormatter$/
91
+ end
92
+
93
+ it 'sets log file' do
94
+ @server.run
95
+ @tempfile.string.should =~ /^java\.util\.logging\.FileHandler\.pattern *= *log\/sunspot-development\.log$/
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,18 @@
1
+ begin
2
+ require 'rspec'
3
+ rescue LoadError => e
4
+ require 'spec'
5
+ end
6
+
7
+ require 'sunspot_solr'
8
+
9
+ rspec =
10
+ begin
11
+ RSpec
12
+ rescue NameError, ArgumentError
13
+ Spec::Runner
14
+ end
15
+
16
+ rspec.configure do |config|
17
+ # Maybe later...
18
+ end
@@ -0,0 +1,37 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../../sunspot/lib/', __FILE__)
3
+
4
+ $:.unshift(lib) unless $:.include?(lib)
5
+
6
+ require 'sunspot/version'
7
+
8
+ Gem::Specification.new do |s|
9
+ s.name = "sunspot_solr"
10
+ s.version = Sunspot::VERSION
11
+ s.platform = Gem::Platform::RUBY
12
+ s.authors = ['Mat Brown', 'Peer Allan', 'Dmitriy Dzema', 'Benjamin Krause', 'Marcel de Graaf', 'Brandon Keepers', 'Peter Berkenbosch',
13
+ 'Brian Atkinson', 'Tom Coleman', 'Matt Mitchell', 'Nathan Beyer', 'Kieran Topping', 'Nicolas Braem', 'Jeremy Ashkenas',
14
+ 'Dylan Vaughn', 'Brian Durand', 'Sam Granieri', 'Nick Zadrozny', 'Jason Ronallo']
15
+ s.email = ["mat@patch.com"]
16
+ s.homepage = 'https://github.com/outoftime/sunspot/tree/master/sunspot_solr'
17
+ s.summary = 'Bundled Solr distribution for Sunspot'
18
+ s.description = <<-TEXT
19
+ Sunspot::Solr provides a bundled Solr distribution for use with Sunspot.
20
+ Typical deployment environments will require more configuration, but this
21
+ distribution is well suited to development and testing.
22
+ TEXT
23
+
24
+ s.rubyforge_project = "sunspot"
25
+
26
+ s.files = `git ls-files`.split("\n")
27
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
28
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
29
+ s.require_paths = ["lib"]
30
+
31
+ s.add_development_dependency 'rspec', '~> 1.1'
32
+ s.add_development_dependency 'hanna'
33
+
34
+ s.rdoc_options << '--webcvs=http://github.com/outoftime/sunspot/tree/master/%s' <<
35
+ '--title' << 'Sunspot-Solr - Bundled Solr distribution for Sunspot - API Documentation' <<
36
+ '--main' << 'README.rdoc'
37
+ end
@@ -0,0 +1,69 @@
1
+ require 'rubygems/specification'
2
+
3
+ module Sunspot
4
+ class GemTasks
5
+ PROJECT_ROOT = File.dirname(Rake.application.rakefile_location)
6
+
7
+ def initialize(dependencies = {}, &block)
8
+ @dependencies = dependencies
9
+ @gemspec_block = block
10
+
11
+ task(:gemspec, "Write gemspec")
12
+ task(:build, "Build gem")
13
+ task(:tag, "Tag version in Git and push to origin")
14
+ task(:release, "Release gem to Gemcutter")
15
+ end
16
+
17
+ def build
18
+ run_dependencies(:build)
19
+ filename = Gem::Builder.new(spec).build
20
+ FileUtils.mv(filename, File.join(PROJECT_ROOT, 'pkg'))
21
+ File.join('pkg', filename)
22
+ end
23
+
24
+ def tag
25
+ tag_name = "v#{spec.version}"
26
+ puts `git tag -m "Released gem version #{spec.version}" #{tag_name}`
27
+ puts `git push origin #{tag_name}:#{tag_name}`
28
+ end
29
+
30
+ def release
31
+ validate_or_abort
32
+ tag
33
+ puts `gem push #{build}`
34
+ end
35
+
36
+ def gemspec
37
+ File.open(File.join(PROJECT_ROOT, "#{spec.name}.gemspec"), 'w') do |file|
38
+ file << spec.to_ruby
39
+ end
40
+ end
41
+
42
+ def spec
43
+ @spec ||= Gem::Specification.new(&@gemspec_block)
44
+ end
45
+
46
+ def validate_or_abort
47
+ begin
48
+ spec.validate
49
+ rescue Gem::InvalidSpecificationException => e
50
+ abort("Gemspec is invalid: #{e.message}")
51
+ end
52
+ end
53
+
54
+ private
55
+
56
+ def task(name, description)
57
+ Rake.application.last_description = description
58
+ Rake::Task.define_task(name) { send(name) }
59
+ end
60
+
61
+ def run_dependencies(task)
62
+ if @dependencies[task]
63
+ Array(@dependencies[task]).each do |dependency|
64
+ Rake::Task[dependency].invoke
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
metadata CHANGED
@@ -1,16 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sunspot_rails
3
- version: !ruby/object:Gem::Version
4
- prerelease: true
5
- segments:
6
- - 2
7
- - 0
8
- - 0
9
- - pre
10
- - 120720
11
- version: 2.0.0.pre.120720
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.pre.120924
5
+ prerelease: 6
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - Mat Brown
15
9
  - Peer Allan
16
10
  - Dmitriy Dzema
@@ -33,200 +27,385 @@ authors:
33
27
  autorequire:
34
28
  bindir: bin
35
29
  cert_chain: []
36
-
37
- date: 2012-07-20 00:00:00 -07:00
38
- default_executable:
39
- dependencies:
40
- - !ruby/object:Gem::Dependency
30
+ date: 2012-09-24 00:00:00.000000000 Z
31
+ dependencies:
32
+ - !ruby/object:Gem::Dependency
41
33
  name: sunspot
42
- prerelease: false
43
- requirement: &id001 !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "="
46
- - !ruby/object:Gem::Version
47
- segments:
48
- - 2
49
- - 0
50
- - 0
51
- - pre
52
- - 120720
53
- version: 2.0.0.pre.120720
34
+ requirement: &70239316571820 !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - =
38
+ - !ruby/object:Gem::Version
39
+ version: 2.0.0.pre.120924
54
40
  type: :runtime
55
- version_requirements: *id001
56
- - !ruby/object:Gem::Dependency
57
- name: nokogiri
58
41
  prerelease: false
59
- requirement: &id002 !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- segments:
64
- - 0
65
- version: "0"
42
+ version_requirements: *70239316571820
43
+ - !ruby/object:Gem::Dependency
44
+ name: nokogiri
45
+ requirement: &70239313137420 !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
66
51
  type: :runtime
67
- version_requirements: *id002
68
- - !ruby/object:Gem::Dependency
69
- name: rspec
70
52
  prerelease: false
71
- requirement: &id003 !ruby/object:Gem::Requirement
72
- requirements:
53
+ version_requirements: *70239313137420
54
+ - !ruby/object:Gem::Dependency
55
+ name: rspec
56
+ requirement: &70239313136400 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
73
59
  - - ~>
74
- - !ruby/object:Gem::Version
75
- segments:
76
- - 1
77
- - 2
78
- version: "1.2"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
79
62
  type: :development
80
- version_requirements: *id003
81
- - !ruby/object:Gem::Dependency
82
- name: rspec-rails
83
63
  prerelease: false
84
- requirement: &id004 !ruby/object:Gem::Requirement
85
- requirements:
64
+ version_requirements: *70239313136400
65
+ - !ruby/object:Gem::Dependency
66
+ name: rspec-rails
67
+ requirement: &70239313135360 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
86
70
  - - ~>
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 2
91
- version: "1.2"
71
+ - !ruby/object:Gem::Version
72
+ version: '1.2'
92
73
  type: :development
93
- version_requirements: *id004
94
- description: " Sunspot::Rails is an extension to the Sunspot library for Solr search.\n Sunspot::Rails adds integration between Sunspot and ActiveRecord, including\n defining search and indexing related methods on ActiveRecord models themselves,\n running a Sunspot-compatible Solr instance for development and test\n environments, and automatically commit Solr index changes at the end of each\n Rails request.\n"
95
- email:
74
+ prerelease: false
75
+ version_requirements: *70239313135360
76
+ description: ! " Sunspot::Rails is an extension to the Sunspot library for Solr
77
+ search.\n Sunspot::Rails adds integration between Sunspot and ActiveRecord, including\n
78
+ \ defining search and indexing related methods on ActiveRecord models themselves,\n
79
+ \ running a Sunspot-compatible Solr instance for development and test\n environments,
80
+ and automatically commit Solr index changes at the end of each\n Rails request.\n"
81
+ email:
96
82
  - mat@patch.com
97
83
  executables: []
98
-
99
84
  extensions: []
100
-
101
85
  extra_rdoc_files: []
102
-
103
- files:
86
+ files:
104
87
  - .gitignore
105
- - .rspec
106
- - History.txt
107
- - LICENSE
108
- - MIT-LICENSE
109
- - README.rdoc
88
+ - .travis.yml
89
+ - README.md
110
90
  - Rakefile
111
- - TODO
112
- - dev_tasks/rdoc.rake
113
- - dev_tasks/release.rake
114
- - dev_tasks/spec.rake
115
- - dev_tasks/todo.rake
116
- - gemfiles/rails-2.3.14
117
- - gemfiles/rails-3.0.15
118
- - gemfiles/rails-3.1.6
119
- - gemfiles/rails-3.2.6
120
- - generators/sunspot/sunspot_generator.rb
121
- - generators/sunspot/templates/sunspot.yml
122
- - install.rb
123
- - lib/generators/sunspot_rails.rb
124
- - lib/generators/sunspot_rails/install/install_generator.rb
125
- - lib/generators/sunspot_rails/install/templates/config/sunspot.yml
126
- - lib/sunspot/rails.rb
127
- - lib/sunspot/rails/adapters.rb
128
- - lib/sunspot/rails/configuration.rb
129
- - lib/sunspot/rails/init.rb
130
- - lib/sunspot/rails/log_subscriber.rb
131
- - lib/sunspot/rails/railtie.rb
132
- - lib/sunspot/rails/railties/controller_runtime.rb
133
- - lib/sunspot/rails/request_lifecycle.rb
134
- - lib/sunspot/rails/searchable.rb
135
- - lib/sunspot/rails/server.rb
136
- - lib/sunspot/rails/solr_instrumentation.rb
137
- - lib/sunspot/rails/solr_logging.rb
138
- - lib/sunspot/rails/spec_helper.rb
139
- - lib/sunspot/rails/stub_session_proxy.rb
140
- - lib/sunspot/rails/tasks.rb
141
- - lib/sunspot_rails.rb
142
- - spec/configuration_spec.rb
143
- - spec/model_lifecycle_spec.rb
144
- - spec/model_spec.rb
145
- - spec/rails_template/app/controllers/application_controller.rb
146
- - spec/rails_template/app/controllers/posts_controller.rb
147
- - spec/rails_template/app/models/author.rb
148
- - spec/rails_template/app/models/blog.rb
149
- - spec/rails_template/app/models/location.rb
150
- - spec/rails_template/app/models/photo_post.rb
151
- - spec/rails_template/app/models/post.rb
152
- - spec/rails_template/app/models/post_with_auto.rb
153
- - spec/rails_template/app/models/post_with_default_scope.rb
154
- - spec/rails_template/config/boot.rb
155
- - spec/rails_template/config/preinitializer.rb
156
- - spec/rails_template/config/routes.rb
157
- - spec/rails_template/config/sunspot.yml
158
- - spec/rails_template/db/schema.rb
159
- - spec/request_lifecycle_spec.rb
160
- - spec/schema.rb
161
- - spec/searchable_spec.rb
162
- - spec/server_spec.rb
163
- - spec/session_spec.rb
164
- - spec/shared_examples/indexed_after_save.rb
165
- - spec/shared_examples/not_indexed_after_save.rb
166
- - spec/spec_helper.rb
167
- - spec/stub_session_proxy_spec.rb
168
- - sunspot_rails.gemspec
169
- - tmp/.gitkeep
170
- has_rdoc: true
91
+ - ci/travis.sh
92
+ - sunspot/.gitignore
93
+ - sunspot/Gemfile
94
+ - sunspot/History.txt
95
+ - sunspot/LICENSE
96
+ - sunspot/Rakefile
97
+ - sunspot/TODO
98
+ - sunspot/lib/light_config.rb
99
+ - sunspot/lib/sunspot.rb
100
+ - sunspot/lib/sunspot/adapters.rb
101
+ - sunspot/lib/sunspot/batcher.rb
102
+ - sunspot/lib/sunspot/class_set.rb
103
+ - sunspot/lib/sunspot/composite_setup.rb
104
+ - sunspot/lib/sunspot/configuration.rb
105
+ - sunspot/lib/sunspot/data_extractor.rb
106
+ - sunspot/lib/sunspot/dsl.rb
107
+ - sunspot/lib/sunspot/dsl/adjustable.rb
108
+ - sunspot/lib/sunspot/dsl/field_group.rb
109
+ - sunspot/lib/sunspot/dsl/field_query.rb
110
+ - sunspot/lib/sunspot/dsl/fields.rb
111
+ - sunspot/lib/sunspot/dsl/fulltext.rb
112
+ - sunspot/lib/sunspot/dsl/function.rb
113
+ - sunspot/lib/sunspot/dsl/functional.rb
114
+ - sunspot/lib/sunspot/dsl/more_like_this_query.rb
115
+ - sunspot/lib/sunspot/dsl/paginatable.rb
116
+ - sunspot/lib/sunspot/dsl/query_facet.rb
117
+ - sunspot/lib/sunspot/dsl/restriction.rb
118
+ - sunspot/lib/sunspot/dsl/restriction_with_near.rb
119
+ - sunspot/lib/sunspot/dsl/scope.rb
120
+ - sunspot/lib/sunspot/dsl/search.rb
121
+ - sunspot/lib/sunspot/dsl/standard_query.rb
122
+ - sunspot/lib/sunspot/field.rb
123
+ - sunspot/lib/sunspot/field_factory.rb
124
+ - sunspot/lib/sunspot/indexer.rb
125
+ - sunspot/lib/sunspot/query.rb
126
+ - sunspot/lib/sunspot/query/abstract_field_facet.rb
127
+ - sunspot/lib/sunspot/query/bbox.rb
128
+ - sunspot/lib/sunspot/query/boost_query.rb
129
+ - sunspot/lib/sunspot/query/common_query.rb
130
+ - sunspot/lib/sunspot/query/composite_fulltext.rb
131
+ - sunspot/lib/sunspot/query/connective.rb
132
+ - sunspot/lib/sunspot/query/date_field_facet.rb
133
+ - sunspot/lib/sunspot/query/dismax.rb
134
+ - sunspot/lib/sunspot/query/field_facet.rb
135
+ - sunspot/lib/sunspot/query/field_group.rb
136
+ - sunspot/lib/sunspot/query/filter.rb
137
+ - sunspot/lib/sunspot/query/function_query.rb
138
+ - sunspot/lib/sunspot/query/geo.rb
139
+ - sunspot/lib/sunspot/query/geofilt.rb
140
+ - sunspot/lib/sunspot/query/highlighting.rb
141
+ - sunspot/lib/sunspot/query/more_like_this.rb
142
+ - sunspot/lib/sunspot/query/more_like_this_query.rb
143
+ - sunspot/lib/sunspot/query/pagination.rb
144
+ - sunspot/lib/sunspot/query/query_facet.rb
145
+ - sunspot/lib/sunspot/query/range_facet.rb
146
+ - sunspot/lib/sunspot/query/restriction.rb
147
+ - sunspot/lib/sunspot/query/scope.rb
148
+ - sunspot/lib/sunspot/query/sort.rb
149
+ - sunspot/lib/sunspot/query/sort_composite.rb
150
+ - sunspot/lib/sunspot/query/standard_query.rb
151
+ - sunspot/lib/sunspot/query/text_field_boost.rb
152
+ - sunspot/lib/sunspot/schema.rb
153
+ - sunspot/lib/sunspot/search.rb
154
+ - sunspot/lib/sunspot/search/abstract_search.rb
155
+ - sunspot/lib/sunspot/search/date_facet.rb
156
+ - sunspot/lib/sunspot/search/facet_row.rb
157
+ - sunspot/lib/sunspot/search/field_facet.rb
158
+ - sunspot/lib/sunspot/search/field_group.rb
159
+ - sunspot/lib/sunspot/search/group.rb
160
+ - sunspot/lib/sunspot/search/highlight.rb
161
+ - sunspot/lib/sunspot/search/hit.rb
162
+ - sunspot/lib/sunspot/search/hit_enumerable.rb
163
+ - sunspot/lib/sunspot/search/more_like_this_search.rb
164
+ - sunspot/lib/sunspot/search/paginated_collection.rb
165
+ - sunspot/lib/sunspot/search/query_facet.rb
166
+ - sunspot/lib/sunspot/search/range_facet.rb
167
+ - sunspot/lib/sunspot/search/standard_search.rb
168
+ - sunspot/lib/sunspot/session.rb
169
+ - sunspot/lib/sunspot/session_proxy.rb
170
+ - sunspot/lib/sunspot/session_proxy/abstract_session_proxy.rb
171
+ - sunspot/lib/sunspot/session_proxy/class_sharding_session_proxy.rb
172
+ - sunspot/lib/sunspot/session_proxy/id_sharding_session_proxy.rb
173
+ - sunspot/lib/sunspot/session_proxy/master_slave_session_proxy.rb
174
+ - sunspot/lib/sunspot/session_proxy/retry_5xx_session_proxy.rb
175
+ - sunspot/lib/sunspot/session_proxy/sharding_session_proxy.rb
176
+ - sunspot/lib/sunspot/session_proxy/silent_fail_session_proxy.rb
177
+ - sunspot/lib/sunspot/session_proxy/thread_local_session_proxy.rb
178
+ - sunspot/lib/sunspot/setup.rb
179
+ - sunspot/lib/sunspot/text_field_setup.rb
180
+ - sunspot/lib/sunspot/type.rb
181
+ - sunspot/lib/sunspot/util.rb
182
+ - sunspot/lib/sunspot/version.rb
183
+ - sunspot/log/.gitignore
184
+ - sunspot/pkg/.gitignore
185
+ - sunspot/script/console
186
+ - sunspot/spec/api/adapters_spec.rb
187
+ - sunspot/spec/api/batcher_spec.rb
188
+ - sunspot/spec/api/binding_spec.rb
189
+ - sunspot/spec/api/class_set_spec.rb
190
+ - sunspot/spec/api/hit_enumerable_spec.rb
191
+ - sunspot/spec/api/indexer/attributes_spec.rb
192
+ - sunspot/spec/api/indexer/batch_spec.rb
193
+ - sunspot/spec/api/indexer/dynamic_fields_spec.rb
194
+ - sunspot/spec/api/indexer/fixed_fields_spec.rb
195
+ - sunspot/spec/api/indexer/fulltext_spec.rb
196
+ - sunspot/spec/api/indexer/removal_spec.rb
197
+ - sunspot/spec/api/indexer/spec_helper.rb
198
+ - sunspot/spec/api/indexer_spec.rb
199
+ - sunspot/spec/api/query/advanced_manipulation_examples.rb
200
+ - sunspot/spec/api/query/connectives_examples.rb
201
+ - sunspot/spec/api/query/dsl_spec.rb
202
+ - sunspot/spec/api/query/dynamic_fields_examples.rb
203
+ - sunspot/spec/api/query/faceting_examples.rb
204
+ - sunspot/spec/api/query/fulltext_examples.rb
205
+ - sunspot/spec/api/query/function_spec.rb
206
+ - sunspot/spec/api/query/geo_examples.rb
207
+ - sunspot/spec/api/query/group_spec.rb
208
+ - sunspot/spec/api/query/highlighting_examples.rb
209
+ - sunspot/spec/api/query/more_like_this_spec.rb
210
+ - sunspot/spec/api/query/ordering_pagination_examples.rb
211
+ - sunspot/spec/api/query/scope_examples.rb
212
+ - sunspot/spec/api/query/spatial_examples.rb
213
+ - sunspot/spec/api/query/spec_helper.rb
214
+ - sunspot/spec/api/query/standard_spec.rb
215
+ - sunspot/spec/api/query/text_field_scoping_examples.rb
216
+ - sunspot/spec/api/query/types_spec.rb
217
+ - sunspot/spec/api/search/dynamic_fields_spec.rb
218
+ - sunspot/spec/api/search/faceting_spec.rb
219
+ - sunspot/spec/api/search/highlighting_spec.rb
220
+ - sunspot/spec/api/search/hits_spec.rb
221
+ - sunspot/spec/api/search/paginated_collection_spec.rb
222
+ - sunspot/spec/api/search/results_spec.rb
223
+ - sunspot/spec/api/search/search_spec.rb
224
+ - sunspot/spec/api/search/spec_helper.rb
225
+ - sunspot/spec/api/session_proxy/class_sharding_session_proxy_spec.rb
226
+ - sunspot/spec/api/session_proxy/id_sharding_session_proxy_spec.rb
227
+ - sunspot/spec/api/session_proxy/master_slave_session_proxy_spec.rb
228
+ - sunspot/spec/api/session_proxy/retry_5xx_session_proxy_spec.rb
229
+ - sunspot/spec/api/session_proxy/sharding_session_proxy_spec.rb
230
+ - sunspot/spec/api/session_proxy/silent_fail_session_proxy_spec.rb
231
+ - sunspot/spec/api/session_proxy/spec_helper.rb
232
+ - sunspot/spec/api/session_proxy/thread_local_session_proxy_spec.rb
233
+ - sunspot/spec/api/session_spec.rb
234
+ - sunspot/spec/api/spec_helper.rb
235
+ - sunspot/spec/api/sunspot_spec.rb
236
+ - sunspot/spec/ext.rb
237
+ - sunspot/spec/helpers/indexer_helper.rb
238
+ - sunspot/spec/helpers/integration_helper.rb
239
+ - sunspot/spec/helpers/mock_session_helper.rb
240
+ - sunspot/spec/helpers/query_helper.rb
241
+ - sunspot/spec/helpers/search_helper.rb
242
+ - sunspot/spec/integration/dynamic_fields_spec.rb
243
+ - sunspot/spec/integration/faceting_spec.rb
244
+ - sunspot/spec/integration/field_grouping_spec.rb
245
+ - sunspot/spec/integration/geospatial_spec.rb
246
+ - sunspot/spec/integration/highlighting_spec.rb
247
+ - sunspot/spec/integration/indexing_spec.rb
248
+ - sunspot/spec/integration/keyword_search_spec.rb
249
+ - sunspot/spec/integration/local_search_spec.rb
250
+ - sunspot/spec/integration/more_like_this_spec.rb
251
+ - sunspot/spec/integration/scoped_search_spec.rb
252
+ - sunspot/spec/integration/stored_fields_spec.rb
253
+ - sunspot/spec/integration/test_pagination.rb
254
+ - sunspot/spec/integration/unicode_spec.rb
255
+ - sunspot/spec/mocks/adapters.rb
256
+ - sunspot/spec/mocks/blog.rb
257
+ - sunspot/spec/mocks/comment.rb
258
+ - sunspot/spec/mocks/connection.rb
259
+ - sunspot/spec/mocks/mock_adapter.rb
260
+ - sunspot/spec/mocks/mock_class_sharding_session_proxy.rb
261
+ - sunspot/spec/mocks/mock_record.rb
262
+ - sunspot/spec/mocks/mock_sharding_session_proxy.rb
263
+ - sunspot/spec/mocks/photo.rb
264
+ - sunspot/spec/mocks/post.rb
265
+ - sunspot/spec/mocks/super_class.rb
266
+ - sunspot/spec/mocks/user.rb
267
+ - sunspot/spec/spec_helper.rb
268
+ - sunspot/sunspot.gemspec
269
+ - sunspot/tasks/rdoc.rake
270
+ - sunspot/tasks/schema.rake
271
+ - sunspot/tasks/todo.rake
272
+ - sunspot_rails/.gitignore
273
+ - sunspot_rails/.rspec
274
+ - sunspot_rails/History.txt
275
+ - sunspot_rails/LICENSE
276
+ - sunspot_rails/MIT-LICENSE
277
+ - sunspot_rails/README.rdoc
278
+ - sunspot_rails/Rakefile
279
+ - sunspot_rails/TODO
280
+ - sunspot_rails/dev_tasks/rdoc.rake
281
+ - sunspot_rails/dev_tasks/release.rake
282
+ - sunspot_rails/dev_tasks/spec.rake
283
+ - sunspot_rails/dev_tasks/todo.rake
284
+ - sunspot_rails/gemfiles/rails-2.3.14
285
+ - sunspot_rails/gemfiles/rails-3.0.15
286
+ - sunspot_rails/gemfiles/rails-3.1.6
287
+ - sunspot_rails/gemfiles/rails-3.2.6
288
+ - sunspot_rails/generators/sunspot/sunspot_generator.rb
289
+ - sunspot_rails/generators/sunspot/templates/sunspot.yml
290
+ - sunspot_rails/install.rb
291
+ - sunspot_rails/lib/generators/sunspot_rails.rb
292
+ - sunspot_rails/lib/generators/sunspot_rails/install/install_generator.rb
293
+ - sunspot_rails/lib/generators/sunspot_rails/install/templates/config/sunspot.yml
294
+ - sunspot_rails/lib/sunspot/rails.rb
295
+ - sunspot_rails/lib/sunspot/rails/adapters.rb
296
+ - sunspot_rails/lib/sunspot/rails/configuration.rb
297
+ - sunspot_rails/lib/sunspot/rails/init.rb
298
+ - sunspot_rails/lib/sunspot/rails/log_subscriber.rb
299
+ - sunspot_rails/lib/sunspot/rails/railtie.rb
300
+ - sunspot_rails/lib/sunspot/rails/railties/controller_runtime.rb
301
+ - sunspot_rails/lib/sunspot/rails/request_lifecycle.rb
302
+ - sunspot_rails/lib/sunspot/rails/searchable.rb
303
+ - sunspot_rails/lib/sunspot/rails/server.rb
304
+ - sunspot_rails/lib/sunspot/rails/solr_instrumentation.rb
305
+ - sunspot_rails/lib/sunspot/rails/solr_logging.rb
306
+ - sunspot_rails/lib/sunspot/rails/spec_helper.rb
307
+ - sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb
308
+ - sunspot_rails/lib/sunspot/rails/tasks.rb
309
+ - sunspot_rails/lib/sunspot_rails.rb
310
+ - sunspot_rails/spec/configuration_spec.rb
311
+ - sunspot_rails/spec/model_lifecycle_spec.rb
312
+ - sunspot_rails/spec/model_spec.rb
313
+ - sunspot_rails/spec/rails_template/app/controllers/application_controller.rb
314
+ - sunspot_rails/spec/rails_template/app/controllers/posts_controller.rb
315
+ - sunspot_rails/spec/rails_template/app/models/author.rb
316
+ - sunspot_rails/spec/rails_template/app/models/blog.rb
317
+ - sunspot_rails/spec/rails_template/app/models/location.rb
318
+ - sunspot_rails/spec/rails_template/app/models/photo_post.rb
319
+ - sunspot_rails/spec/rails_template/app/models/post.rb
320
+ - sunspot_rails/spec/rails_template/app/models/post_with_auto.rb
321
+ - sunspot_rails/spec/rails_template/app/models/post_with_default_scope.rb
322
+ - sunspot_rails/spec/rails_template/config/boot.rb
323
+ - sunspot_rails/spec/rails_template/config/preinitializer.rb
324
+ - sunspot_rails/spec/rails_template/config/routes.rb
325
+ - sunspot_rails/spec/rails_template/config/sunspot.yml
326
+ - sunspot_rails/spec/rails_template/db/schema.rb
327
+ - sunspot_rails/spec/request_lifecycle_spec.rb
328
+ - sunspot_rails/spec/schema.rb
329
+ - sunspot_rails/spec/searchable_spec.rb
330
+ - sunspot_rails/spec/server_spec.rb
331
+ - sunspot_rails/spec/session_spec.rb
332
+ - sunspot_rails/spec/shared_examples/indexed_after_save.rb
333
+ - sunspot_rails/spec/shared_examples/not_indexed_after_save.rb
334
+ - sunspot_rails/spec/spec_helper.rb
335
+ - sunspot_rails/spec/stub_session_proxy_spec.rb
336
+ - sunspot_rails/sunspot_rails.gemspec
337
+ - sunspot_rails/tmp/.gitkeep
338
+ - sunspot_solr/Gemfile
339
+ - sunspot_solr/README.rdoc
340
+ - sunspot_solr/bin/sunspot-installer
341
+ - sunspot_solr/bin/sunspot-solr
342
+ - sunspot_solr/lib/sunspot/solr/installer.rb
343
+ - sunspot_solr/lib/sunspot/solr/installer/config_installer.rb
344
+ - sunspot_solr/lib/sunspot/solr/installer/task_helper.rb
345
+ - sunspot_solr/lib/sunspot/solr/java.rb
346
+ - sunspot_solr/lib/sunspot/solr/railtie.rb
347
+ - sunspot_solr/lib/sunspot/solr/server.rb
348
+ - sunspot_solr/lib/sunspot/solr/tasks.rb
349
+ - sunspot_solr/lib/sunspot_solr.rb
350
+ - sunspot_solr/solr/README.txt
351
+ - sunspot_solr/solr/etc/jetty.xml
352
+ - sunspot_solr/solr/etc/webdefault.xml
353
+ - sunspot_solr/solr/lib/jetty-6.1.26-patched-JETTY-1340.jar
354
+ - sunspot_solr/solr/lib/jetty-util-6.1.26-patched-JETTY-1340.jar
355
+ - sunspot_solr/solr/lib/jsp-2.1/ant-1.6.5.jar
356
+ - sunspot_solr/solr/lib/jsp-2.1/core-3.1.1.jar
357
+ - sunspot_solr/solr/lib/jsp-2.1/jsp-2.1.jar
358
+ - sunspot_solr/solr/lib/jsp-2.1/jsp-api-2.1.jar
359
+ - sunspot_solr/solr/lib/servlet-api-2.5-20081211.jar
360
+ - sunspot_solr/solr/solr/.gitignore
361
+ - sunspot_solr/solr/solr/README.txt
362
+ - sunspot_solr/solr/solr/conf/admin-extra.html
363
+ - sunspot_solr/solr/solr/conf/elevate.xml
364
+ - sunspot_solr/solr/solr/conf/mapping-ISOLatin1Accent.txt
365
+ - sunspot_solr/solr/solr/conf/protwords.txt
366
+ - sunspot_solr/solr/solr/conf/schema.xml
367
+ - sunspot_solr/solr/solr/conf/scripts.conf
368
+ - sunspot_solr/solr/solr/conf/solrconfig.xml
369
+ - sunspot_solr/solr/solr/conf/spellings.txt
370
+ - sunspot_solr/solr/solr/conf/stopwords.txt
371
+ - sunspot_solr/solr/solr/conf/synonyms.txt
372
+ - sunspot_solr/solr/solr/conf/xslt/example.xsl
373
+ - sunspot_solr/solr/solr/conf/xslt/example_atom.xsl
374
+ - sunspot_solr/solr/solr/conf/xslt/example_rss.xsl
375
+ - sunspot_solr/solr/solr/conf/xslt/luke.xsl
376
+ - sunspot_solr/solr/start.jar
377
+ - sunspot_solr/solr/webapps/solr.war
378
+ - sunspot_solr/spec/server_spec.rb
379
+ - sunspot_solr/spec/spec_helper.rb
380
+ - sunspot_solr/sunspot_solr.gemspec
381
+ - tools/gem_tasks.rb
171
382
  homepage: http://github.com/outoftime/sunspot/tree/master/sunspot_rails
172
383
  licenses: []
173
-
174
384
  post_install_message:
175
- rdoc_options:
385
+ rdoc_options:
176
386
  - --webcvs=http://github.com/outoftime/sunspot/tree/master/%s
177
387
  - --title
178
388
  - Sunspot-Rails - Rails integration for the Sunspot Solr search library - API Documentation
179
389
  - --main
180
390
  - README.rdoc
181
- require_paths:
391
+ require_paths:
182
392
  - lib
183
- required_ruby_version: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- segments:
188
- - 0
189
- version: "0"
190
- required_rubygems_version: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">"
193
- - !ruby/object:Gem::Version
194
- segments:
195
- - 1
196
- - 3
197
- - 1
393
+ required_ruby_version: !ruby/object:Gem::Requirement
394
+ none: false
395
+ requirements:
396
+ - - ! '>='
397
+ - !ruby/object:Gem::Version
398
+ version: '0'
399
+ required_rubygems_version: !ruby/object:Gem::Requirement
400
+ none: false
401
+ requirements:
402
+ - - ! '>'
403
+ - !ruby/object:Gem::Version
198
404
  version: 1.3.1
199
405
  requirements: []
200
-
201
406
  rubyforge_project: sunspot
202
- rubygems_version: 1.3.6
407
+ rubygems_version: 1.8.15
203
408
  signing_key:
204
409
  specification_version: 3
205
410
  summary: Rails integration for the Sunspot Solr search library
206
- test_files:
207
- - spec/configuration_spec.rb
208
- - spec/model_lifecycle_spec.rb
209
- - spec/model_spec.rb
210
- - spec/rails_template/app/controllers/application_controller.rb
211
- - spec/rails_template/app/controllers/posts_controller.rb
212
- - spec/rails_template/app/models/author.rb
213
- - spec/rails_template/app/models/blog.rb
214
- - spec/rails_template/app/models/location.rb
215
- - spec/rails_template/app/models/photo_post.rb
216
- - spec/rails_template/app/models/post.rb
217
- - spec/rails_template/app/models/post_with_auto.rb
218
- - spec/rails_template/app/models/post_with_default_scope.rb
219
- - spec/rails_template/config/boot.rb
220
- - spec/rails_template/config/preinitializer.rb
221
- - spec/rails_template/config/routes.rb
222
- - spec/rails_template/config/sunspot.yml
223
- - spec/rails_template/db/schema.rb
224
- - spec/request_lifecycle_spec.rb
225
- - spec/schema.rb
226
- - spec/searchable_spec.rb
227
- - spec/server_spec.rb
228
- - spec/session_spec.rb
229
- - spec/shared_examples/indexed_after_save.rb
230
- - spec/shared_examples/not_indexed_after_save.rb
231
- - spec/spec_helper.rb
232
- - spec/stub_session_proxy_spec.rb
411
+ test_files: []