websolr-rails 0.0.0 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/.document +5 -0
  2. data/.gitignore +15 -0
  3. data/CHANGELOG +8 -0
  4. data/LICENSE +19 -0
  5. data/README.rdoc +69 -0
  6. data/Rakefile +112 -0
  7. data/TESTING_THE_PLUGIN +25 -0
  8. data/VERSION +1 -0
  9. data/bin/websolr +10 -0
  10. data/config/solr.yml +15 -0
  11. data/config/solr_environment.rb +22 -0
  12. data/generate_rdoc.sh +13 -0
  13. data/lib/acts_as_solr.rb +65 -0
  14. data/lib/acts_methods.rb +281 -0
  15. data/lib/class_methods.rb +243 -0
  16. data/lib/common_methods.rb +89 -0
  17. data/lib/deprecation.rb +61 -0
  18. data/lib/instance_methods.rb +181 -0
  19. data/lib/lazy_document.rb +18 -0
  20. data/lib/parser_methods.rb +230 -0
  21. data/lib/search_results.rb +72 -0
  22. data/lib/solr.rb +21 -0
  23. data/lib/solr/connection.rb +190 -0
  24. data/lib/solr/document.rb +78 -0
  25. data/lib/solr/exception.rb +13 -0
  26. data/lib/solr/field.rb +39 -0
  27. data/lib/solr/importer.rb +19 -0
  28. data/lib/solr/importer/array_mapper.rb +26 -0
  29. data/lib/solr/importer/delimited_file_source.rb +38 -0
  30. data/lib/solr/importer/hpricot_mapper.rb +27 -0
  31. data/lib/solr/importer/mapper.rb +51 -0
  32. data/lib/solr/importer/solr_source.rb +43 -0
  33. data/lib/solr/importer/xpath_mapper.rb +35 -0
  34. data/lib/solr/indexer.rb +52 -0
  35. data/lib/solr/request.rb +26 -0
  36. data/lib/solr/request/add_document.rb +63 -0
  37. data/lib/solr/request/base.rb +36 -0
  38. data/lib/solr/request/commit.rb +31 -0
  39. data/lib/solr/request/delete.rb +50 -0
  40. data/lib/solr/request/dismax.rb +46 -0
  41. data/lib/solr/request/index_info.rb +22 -0
  42. data/lib/solr/request/modify_document.rb +51 -0
  43. data/lib/solr/request/optimize.rb +21 -0
  44. data/lib/solr/request/ping.rb +36 -0
  45. data/lib/solr/request/select.rb +56 -0
  46. data/lib/solr/request/spellcheck.rb +30 -0
  47. data/lib/solr/request/standard.rb +402 -0
  48. data/lib/solr/request/update.rb +23 -0
  49. data/lib/solr/response.rb +27 -0
  50. data/lib/solr/response/add_document.rb +17 -0
  51. data/lib/solr/response/base.rb +42 -0
  52. data/lib/solr/response/commit.rb +17 -0
  53. data/lib/solr/response/delete.rb +13 -0
  54. data/lib/solr/response/dismax.rb +8 -0
  55. data/lib/solr/response/index_info.rb +26 -0
  56. data/lib/solr/response/modify_document.rb +17 -0
  57. data/lib/solr/response/optimize.rb +14 -0
  58. data/lib/solr/response/ping.rb +28 -0
  59. data/lib/solr/response/ruby.rb +42 -0
  60. data/lib/solr/response/select.rb +17 -0
  61. data/lib/solr/response/spellcheck.rb +20 -0
  62. data/lib/solr/response/standard.rb +64 -0
  63. data/lib/solr/response/xml.rb +42 -0
  64. data/lib/solr/solrtasks.rb +27 -0
  65. data/lib/solr/util.rb +32 -0
  66. data/lib/solr/xml.rb +44 -0
  67. data/lib/solr_fixtures.rb +13 -0
  68. data/lib/tasks/database.rake +18 -0
  69. data/lib/tasks/solr.rake +94 -0
  70. data/lib/tasks/test.rake +7 -0
  71. data/lib/websolr-rails.rb +1 -0
  72. data/lib/websolr.rb +1 -0
  73. data/lib/websolr_controller.rb +233 -0
  74. data/lib/websolr_option_parser.rb +61 -0
  75. data/lib/websolr_rails.rb +1 -0
  76. data/lib/websolr_rails/tasks.rb +4 -0
  77. data/lib/will_paginate_support.rb +12 -0
  78. data/solr/CHANGES.txt +1207 -0
  79. data/solr/LICENSE.txt +712 -0
  80. data/solr/NOTICE.txt +90 -0
  81. data/solr/etc/jetty.xml +205 -0
  82. data/solr/etc/webdefault.xml +379 -0
  83. data/solr/lib/easymock.jar +0 -0
  84. data/solr/lib/jetty-6.1.3.jar +0 -0
  85. data/solr/lib/jetty-util-6.1.3.jar +0 -0
  86. data/solr/lib/jsp-2.1/ant-1.6.5.jar +0 -0
  87. data/solr/lib/jsp-2.1/core-3.1.1.jar +0 -0
  88. data/solr/lib/jsp-2.1/jsp-2.1.jar +0 -0
  89. data/solr/lib/jsp-2.1/jsp-api-2.1.jar +0 -0
  90. data/solr/lib/servlet-api-2.4.jar +0 -0
  91. data/solr/lib/servlet-api-2.5-6.1.3.jar +0 -0
  92. data/solr/lib/xpp3-1.1.3.4.O.jar +0 -0
  93. data/solr/logs/.empty-dir-for-git +0 -0
  94. data/solr/solr/README.txt +52 -0
  95. data/solr/solr/bin/abc +176 -0
  96. data/solr/solr/bin/abo +176 -0
  97. data/solr/solr/bin/backup +108 -0
  98. data/solr/solr/bin/backupcleaner +142 -0
  99. data/solr/solr/bin/commit +128 -0
  100. data/solr/solr/bin/optimize +129 -0
  101. data/solr/solr/bin/readercycle +129 -0
  102. data/solr/solr/bin/rsyncd-disable +77 -0
  103. data/solr/solr/bin/rsyncd-enable +76 -0
  104. data/solr/solr/bin/rsyncd-start +145 -0
  105. data/solr/solr/bin/rsyncd-stop +105 -0
  106. data/solr/solr/bin/scripts-util +83 -0
  107. data/solr/solr/bin/snapcleaner +148 -0
  108. data/solr/solr/bin/snapinstaller +168 -0
  109. data/solr/solr/bin/snappuller +248 -0
  110. data/solr/solr/bin/snappuller-disable +77 -0
  111. data/solr/solr/bin/snappuller-enable +77 -0
  112. data/solr/solr/bin/snapshooter +109 -0
  113. data/solr/solr/conf/admin-extra.html +31 -0
  114. data/solr/solr/conf/protwords.txt +21 -0
  115. data/solr/solr/conf/schema.xml +126 -0
  116. data/solr/solr/conf/scripts.conf +24 -0
  117. data/solr/solr/conf/solrconfig.xml +458 -0
  118. data/solr/solr/conf/stopwords.txt +57 -0
  119. data/solr/solr/conf/synonyms.txt +31 -0
  120. data/solr/solr/conf/xslt/example.xsl +132 -0
  121. data/solr/solr/conf/xslt/example_atom.xsl +63 -0
  122. data/solr/solr/conf/xslt/example_rss.xsl +62 -0
  123. data/solr/start.jar +0 -0
  124. data/solr/tmp/.empty-dir-for-git +0 -0
  125. data/solr/webapps/solr.war +0 -0
  126. data/test/config/solr.yml +2 -0
  127. data/test/db/connections/mysql/connection.rb +10 -0
  128. data/test/db/connections/sqlite/connection.rb +8 -0
  129. data/test/db/migrate/001_create_books.rb +15 -0
  130. data/test/db/migrate/002_create_movies.rb +12 -0
  131. data/test/db/migrate/003_create_categories.rb +11 -0
  132. data/test/db/migrate/004_create_electronics.rb +16 -0
  133. data/test/db/migrate/005_create_authors.rb +12 -0
  134. data/test/db/migrate/006_create_postings.rb +9 -0
  135. data/test/db/migrate/007_create_posts.rb +13 -0
  136. data/test/db/migrate/008_create_gadgets.rb +11 -0
  137. data/test/fixtures/authors.yml +9 -0
  138. data/test/fixtures/books.yml +13 -0
  139. data/test/fixtures/categories.yml +7 -0
  140. data/test/fixtures/db_definitions/mysql.sql +41 -0
  141. data/test/fixtures/electronics.yml +49 -0
  142. data/test/fixtures/movies.yml +9 -0
  143. data/test/fixtures/postings.yml +10 -0
  144. data/test/functional/acts_as_solr_test.rb +413 -0
  145. data/test/functional/association_indexing_test.rb +37 -0
  146. data/test/functional/faceted_search_test.rb +163 -0
  147. data/test/functional/multi_solr_search_test.rb +51 -0
  148. data/test/models/author.rb +10 -0
  149. data/test/models/book.rb +10 -0
  150. data/test/models/category.rb +8 -0
  151. data/test/models/electronic.rb +21 -0
  152. data/test/models/gadget.rb +9 -0
  153. data/test/models/movie.rb +17 -0
  154. data/test/models/novel.rb +2 -0
  155. data/test/models/post.rb +3 -0
  156. data/test/models/posting.rb +11 -0
  157. data/test/test_helper.rb +51 -0
  158. data/test/unit/acts_methods_shoulda.rb +70 -0
  159. data/test/unit/class_methods_shoulda.rb +88 -0
  160. data/test/unit/common_methods_shoulda.rb +112 -0
  161. data/test/unit/instance_methods_shoulda.rb +326 -0
  162. data/test/unit/lazy_document_shoulda.rb +35 -0
  163. data/test/unit/parser_instance.rb +19 -0
  164. data/test/unit/parser_methods_shoulda.rb +278 -0
  165. data/test/unit/solr_instance.rb +46 -0
  166. data/test/unit/test_helper.rb +14 -0
  167. data/websolr-rails.gemspec +243 -0
  168. metadata +229 -18
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websolr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Maxwell
@@ -10,26 +10,205 @@ bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2009-10-10 00:00:00 -07:00
13
- default_executable:
14
- dependencies: []
15
-
16
- description:
17
- email:
18
- executables: []
19
-
13
+ default_executable: websolr
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: thoughtbot-shoulda
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description: acts_as_solr compatible gem for websolr
26
+ email: kyle@kylemaxwell.com
27
+ executables:
28
+ - websolr
20
29
  extensions: []
21
30
 
22
- extra_rdoc_files: []
23
-
24
- files: []
25
-
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - .document
36
+ - .gitignore
37
+ - CHANGELOG
38
+ - LICENSE
39
+ - README.rdoc
40
+ - Rakefile
41
+ - TESTING_THE_PLUGIN
42
+ - VERSION
43
+ - bin/websolr
44
+ - config/solr.yml
45
+ - config/solr_environment.rb
46
+ - generate_rdoc.sh
47
+ - lib/acts_as_solr.rb
48
+ - lib/acts_methods.rb
49
+ - lib/class_methods.rb
50
+ - lib/common_methods.rb
51
+ - lib/deprecation.rb
52
+ - lib/instance_methods.rb
53
+ - lib/lazy_document.rb
54
+ - lib/parser_methods.rb
55
+ - lib/search_results.rb
56
+ - lib/solr.rb
57
+ - lib/solr/connection.rb
58
+ - lib/solr/document.rb
59
+ - lib/solr/exception.rb
60
+ - lib/solr/field.rb
61
+ - lib/solr/importer.rb
62
+ - lib/solr/importer/array_mapper.rb
63
+ - lib/solr/importer/delimited_file_source.rb
64
+ - lib/solr/importer/hpricot_mapper.rb
65
+ - lib/solr/importer/mapper.rb
66
+ - lib/solr/importer/solr_source.rb
67
+ - lib/solr/importer/xpath_mapper.rb
68
+ - lib/solr/indexer.rb
69
+ - lib/solr/request.rb
70
+ - lib/solr/request/add_document.rb
71
+ - lib/solr/request/base.rb
72
+ - lib/solr/request/commit.rb
73
+ - lib/solr/request/delete.rb
74
+ - lib/solr/request/dismax.rb
75
+ - lib/solr/request/index_info.rb
76
+ - lib/solr/request/modify_document.rb
77
+ - lib/solr/request/optimize.rb
78
+ - lib/solr/request/ping.rb
79
+ - lib/solr/request/select.rb
80
+ - lib/solr/request/spellcheck.rb
81
+ - lib/solr/request/standard.rb
82
+ - lib/solr/request/update.rb
83
+ - lib/solr/response.rb
84
+ - lib/solr/response/add_document.rb
85
+ - lib/solr/response/base.rb
86
+ - lib/solr/response/commit.rb
87
+ - lib/solr/response/delete.rb
88
+ - lib/solr/response/dismax.rb
89
+ - lib/solr/response/index_info.rb
90
+ - lib/solr/response/modify_document.rb
91
+ - lib/solr/response/optimize.rb
92
+ - lib/solr/response/ping.rb
93
+ - lib/solr/response/ruby.rb
94
+ - lib/solr/response/select.rb
95
+ - lib/solr/response/spellcheck.rb
96
+ - lib/solr/response/standard.rb
97
+ - lib/solr/response/xml.rb
98
+ - lib/solr/solrtasks.rb
99
+ - lib/solr/util.rb
100
+ - lib/solr/xml.rb
101
+ - lib/solr_fixtures.rb
102
+ - lib/tasks/database.rake
103
+ - lib/tasks/solr.rake
104
+ - lib/tasks/test.rake
105
+ - lib/websolr-rails.rb
106
+ - lib/websolr.rb
107
+ - lib/websolr_controller.rb
108
+ - lib/websolr_option_parser.rb
109
+ - lib/websolr_rails.rb
110
+ - lib/websolr_rails/tasks.rb
111
+ - lib/will_paginate_support.rb
112
+ - solr/CHANGES.txt
113
+ - solr/LICENSE.txt
114
+ - solr/NOTICE.txt
115
+ - solr/etc/jetty.xml
116
+ - solr/etc/webdefault.xml
117
+ - solr/lib/easymock.jar
118
+ - solr/lib/jetty-6.1.3.jar
119
+ - solr/lib/jetty-util-6.1.3.jar
120
+ - solr/lib/jsp-2.1/ant-1.6.5.jar
121
+ - solr/lib/jsp-2.1/core-3.1.1.jar
122
+ - solr/lib/jsp-2.1/jsp-2.1.jar
123
+ - solr/lib/jsp-2.1/jsp-api-2.1.jar
124
+ - solr/lib/servlet-api-2.4.jar
125
+ - solr/lib/servlet-api-2.5-6.1.3.jar
126
+ - solr/lib/xpp3-1.1.3.4.O.jar
127
+ - solr/logs/.empty-dir-for-git
128
+ - solr/solr/README.txt
129
+ - solr/solr/bin/abc
130
+ - solr/solr/bin/abo
131
+ - solr/solr/bin/backup
132
+ - solr/solr/bin/backupcleaner
133
+ - solr/solr/bin/commit
134
+ - solr/solr/bin/optimize
135
+ - solr/solr/bin/readercycle
136
+ - solr/solr/bin/rsyncd-disable
137
+ - solr/solr/bin/rsyncd-enable
138
+ - solr/solr/bin/rsyncd-start
139
+ - solr/solr/bin/rsyncd-stop
140
+ - solr/solr/bin/scripts-util
141
+ - solr/solr/bin/snapcleaner
142
+ - solr/solr/bin/snapinstaller
143
+ - solr/solr/bin/snappuller
144
+ - solr/solr/bin/snappuller-disable
145
+ - solr/solr/bin/snappuller-enable
146
+ - solr/solr/bin/snapshooter
147
+ - solr/solr/conf/admin-extra.html
148
+ - solr/solr/conf/protwords.txt
149
+ - solr/solr/conf/schema.xml
150
+ - solr/solr/conf/scripts.conf
151
+ - solr/solr/conf/solrconfig.xml
152
+ - solr/solr/conf/stopwords.txt
153
+ - solr/solr/conf/synonyms.txt
154
+ - solr/solr/conf/xslt/example.xsl
155
+ - solr/solr/conf/xslt/example_atom.xsl
156
+ - solr/solr/conf/xslt/example_rss.xsl
157
+ - solr/start.jar
158
+ - solr/tmp/.empty-dir-for-git
159
+ - solr/webapps/solr.war
160
+ - test/config/solr.yml
161
+ - test/db/connections/mysql/connection.rb
162
+ - test/db/connections/sqlite/connection.rb
163
+ - test/db/migrate/001_create_books.rb
164
+ - test/db/migrate/002_create_movies.rb
165
+ - test/db/migrate/003_create_categories.rb
166
+ - test/db/migrate/004_create_electronics.rb
167
+ - test/db/migrate/005_create_authors.rb
168
+ - test/db/migrate/006_create_postings.rb
169
+ - test/db/migrate/007_create_posts.rb
170
+ - test/db/migrate/008_create_gadgets.rb
171
+ - test/fixtures/authors.yml
172
+ - test/fixtures/books.yml
173
+ - test/fixtures/categories.yml
174
+ - test/fixtures/db_definitions/mysql.sql
175
+ - test/fixtures/electronics.yml
176
+ - test/fixtures/movies.yml
177
+ - test/fixtures/postings.yml
178
+ - test/functional/acts_as_solr_test.rb
179
+ - test/functional/association_indexing_test.rb
180
+ - test/functional/faceted_search_test.rb
181
+ - test/functional/multi_solr_search_test.rb
182
+ - test/models/author.rb
183
+ - test/models/book.rb
184
+ - test/models/category.rb
185
+ - test/models/electronic.rb
186
+ - test/models/gadget.rb
187
+ - test/models/movie.rb
188
+ - test/models/novel.rb
189
+ - test/models/post.rb
190
+ - test/models/posting.rb
191
+ - test/test_helper.rb
192
+ - test/unit/acts_methods_shoulda.rb
193
+ - test/unit/class_methods_shoulda.rb
194
+ - test/unit/common_methods_shoulda.rb
195
+ - test/unit/instance_methods_shoulda.rb
196
+ - test/unit/lazy_document_shoulda.rb
197
+ - test/unit/parser_instance.rb
198
+ - test/unit/parser_methods_shoulda.rb
199
+ - test/unit/solr_instance.rb
200
+ - test/unit/test_helper.rb
201
+ - websolr-rails.gemspec
26
202
  has_rdoc: true
27
- homepage:
203
+ homepage: http://github.com/onemorecloud/websolr-rails
28
204
  licenses: []
29
205
 
30
206
  post_install_message:
31
- rdoc_options: []
32
-
207
+ rdoc_options:
208
+ - --main
209
+ - README.rdoc
210
+ - README.rdoc
211
+ - lib
33
212
  require_paths:
34
213
  - lib
35
214
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -50,6 +229,38 @@ rubyforge_project:
50
229
  rubygems_version: 1.3.4
51
230
  signing_key:
52
231
  specification_version: 3
53
- summary: Placeholder for a gem to be migrated later
54
- test_files: []
55
-
232
+ summary: acts_as_solr compatible gem for websolr
233
+ test_files:
234
+ - test/db/connections/mysql/connection.rb
235
+ - test/db/connections/sqlite/connection.rb
236
+ - test/db/migrate/001_create_books.rb
237
+ - test/db/migrate/002_create_movies.rb
238
+ - test/db/migrate/003_create_categories.rb
239
+ - test/db/migrate/004_create_electronics.rb
240
+ - test/db/migrate/005_create_authors.rb
241
+ - test/db/migrate/006_create_postings.rb
242
+ - test/db/migrate/007_create_posts.rb
243
+ - test/db/migrate/008_create_gadgets.rb
244
+ - test/functional/acts_as_solr_test.rb
245
+ - test/functional/association_indexing_test.rb
246
+ - test/functional/faceted_search_test.rb
247
+ - test/functional/multi_solr_search_test.rb
248
+ - test/models/author.rb
249
+ - test/models/book.rb
250
+ - test/models/category.rb
251
+ - test/models/electronic.rb
252
+ - test/models/gadget.rb
253
+ - test/models/movie.rb
254
+ - test/models/novel.rb
255
+ - test/models/post.rb
256
+ - test/models/posting.rb
257
+ - test/test_helper.rb
258
+ - test/unit/acts_methods_shoulda.rb
259
+ - test/unit/class_methods_shoulda.rb
260
+ - test/unit/common_methods_shoulda.rb
261
+ - test/unit/instance_methods_shoulda.rb
262
+ - test/unit/lazy_document_shoulda.rb
263
+ - test/unit/parser_instance.rb
264
+ - test/unit/parser_methods_shoulda.rb
265
+ - test/unit/solr_instance.rb
266
+ - test/unit/test_helper.rb