tire 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +12 -0
- data/README.markdown +61 -1
- data/examples/tire-dsl.rb +8 -0
- data/lib/tire/configuration.rb +3 -2
- data/lib/tire/dsl.rb +1 -1
- data/lib/tire/index.rb +30 -8
- data/lib/tire/results/collection.rb +4 -0
- data/lib/tire/results/item.rb +1 -1
- data/lib/tire/rubyext/hash.rb +5 -0
- data/lib/tire/search/facet.rb +4 -0
- data/lib/tire/search/query.rb +53 -2
- data/lib/tire/search.rb +3 -3
- data/lib/tire/tasks.rb +1 -1
- data/lib/tire/version.rb +1 -1
- data/lib/tire.rb +1 -1
- data/test/integration/active_record_searchable_test.rb +2 -4
- data/test/integration/boolean_queries_test.rb +43 -0
- data/test/integration/facets_test.rb +18 -0
- data/test/models/active_model_article_with_custom_index_name.rb +2 -0
- data/test/test_helper.rb +7 -2
- data/test/unit/index_test.rb +11 -1
- data/test/unit/logger_test.rb +2 -2
- data/test/unit/model_persistence_test.rb +52 -13
- data/test/unit/results_collection_test.rb +5 -0
- data/test/unit/results_item_test.rb +6 -1
- data/test/unit/rubyext_hash_test.rb +29 -2
- data/test/unit/search_facet_test.rb +8 -1
- data/test/unit/search_query_test.rb +65 -0
- data/test/unit/search_test.rb +39 -3
- data/tire.gemspec +5 -3
- metadata +59 -25
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Karel Minarik
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-04 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -67,19 +67,18 @@ dependencies:
|
|
67
67
|
type: :runtime
|
68
68
|
version_requirements: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: multi_json
|
71
71
|
prerelease: false
|
72
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
77
|
+
hash: 15
|
78
78
|
segments:
|
79
|
+
- 1
|
79
80
|
- 0
|
80
|
-
|
81
|
-
- 0
|
82
|
-
version: 0.8.0
|
81
|
+
version: "1.0"
|
83
82
|
type: :runtime
|
84
83
|
version_requirements: *id004
|
85
84
|
- !ruby/object:Gem::Dependency
|
@@ -88,32 +87,34 @@ dependencies:
|
|
88
87
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
88
|
none: false
|
90
89
|
requirements:
|
91
|
-
- -
|
90
|
+
- - ~>
|
92
91
|
- !ruby/object:Gem::Version
|
93
|
-
hash:
|
92
|
+
hash: 9
|
94
93
|
segments:
|
95
94
|
- 3
|
96
95
|
- 0
|
97
|
-
-
|
98
|
-
version: 3.0.
|
96
|
+
- 7
|
97
|
+
version: 3.0.7
|
99
98
|
type: :runtime
|
100
99
|
version_requirements: *id005
|
101
100
|
- !ruby/object:Gem::Dependency
|
102
|
-
name:
|
101
|
+
name: yajl-ruby
|
103
102
|
prerelease: false
|
104
103
|
requirement: &id006 !ruby/object:Gem::Requirement
|
105
104
|
none: false
|
106
105
|
requirements:
|
107
|
-
- -
|
106
|
+
- - ~>
|
108
107
|
- !ruby/object:Gem::Version
|
109
|
-
hash:
|
108
|
+
hash: 63
|
110
109
|
segments:
|
111
110
|
- 0
|
112
|
-
|
111
|
+
- 8
|
112
|
+
- 0
|
113
|
+
version: 0.8.0
|
113
114
|
type: :development
|
114
115
|
version_requirements: *id006
|
115
116
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
117
|
+
name: turn
|
117
118
|
prerelease: false
|
118
119
|
requirement: &id007 !ruby/object:Gem::Requirement
|
119
120
|
none: false
|
@@ -127,7 +128,7 @@ dependencies:
|
|
127
128
|
type: :development
|
128
129
|
version_requirements: *id007
|
129
130
|
- !ruby/object:Gem::Dependency
|
130
|
-
name:
|
131
|
+
name: shoulda
|
131
132
|
prerelease: false
|
132
133
|
requirement: &id008 !ruby/object:Gem::Requirement
|
133
134
|
none: false
|
@@ -141,7 +142,7 @@ dependencies:
|
|
141
142
|
type: :development
|
142
143
|
version_requirements: *id008
|
143
144
|
- !ruby/object:Gem::Dependency
|
144
|
-
name:
|
145
|
+
name: mocha
|
145
146
|
prerelease: false
|
146
147
|
requirement: &id009 !ruby/object:Gem::Requirement
|
147
148
|
none: false
|
@@ -155,7 +156,7 @@ dependencies:
|
|
155
156
|
type: :development
|
156
157
|
version_requirements: *id009
|
157
158
|
- !ruby/object:Gem::Dependency
|
158
|
-
name:
|
159
|
+
name: sdoc
|
159
160
|
prerelease: false
|
160
161
|
requirement: &id010 !ruby/object:Gem::Requirement
|
161
162
|
none: false
|
@@ -169,7 +170,7 @@ dependencies:
|
|
169
170
|
type: :development
|
170
171
|
version_requirements: *id010
|
171
172
|
- !ruby/object:Gem::Dependency
|
172
|
-
name:
|
173
|
+
name: rcov
|
173
174
|
prerelease: false
|
174
175
|
requirement: &id011 !ruby/object:Gem::Requirement
|
175
176
|
none: false
|
@@ -183,9 +184,25 @@ dependencies:
|
|
183
184
|
type: :development
|
184
185
|
version_requirements: *id011
|
185
186
|
- !ruby/object:Gem::Dependency
|
186
|
-
name:
|
187
|
+
name: activerecord
|
187
188
|
prerelease: false
|
188
189
|
requirement: &id012 !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
hash: 9
|
195
|
+
segments:
|
196
|
+
- 3
|
197
|
+
- 0
|
198
|
+
- 7
|
199
|
+
version: 3.0.7
|
200
|
+
type: :development
|
201
|
+
version_requirements: *id012
|
202
|
+
- !ruby/object:Gem::Dependency
|
203
|
+
name: supermodel
|
204
|
+
prerelease: false
|
205
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
189
206
|
none: false
|
190
207
|
requirements:
|
191
208
|
- - ">="
|
@@ -195,7 +212,21 @@ dependencies:
|
|
195
212
|
- 0
|
196
213
|
version: "0"
|
197
214
|
type: :development
|
198
|
-
version_requirements: *
|
215
|
+
version_requirements: *id013
|
216
|
+
- !ruby/object:Gem::Dependency
|
217
|
+
name: sqlite3
|
218
|
+
prerelease: false
|
219
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
221
|
+
requirements:
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
hash: 3
|
225
|
+
segments:
|
226
|
+
- 0
|
227
|
+
version: "0"
|
228
|
+
type: :development
|
229
|
+
version_requirements: *id014
|
199
230
|
description: " Tire is a Ruby client for the ElasticSearch search engine/database.\n\n It provides Ruby-like API for fluent communication with the ElasticSearch server\n and blends with ActiveModel class for convenient usage in Rails applications.\n\n It allows to delete and create indices, define mapping for them, supports\n the bulk API, and presents an easy-to-use DSL for constructing your queries.\n\n It has full ActiveRecord/ActiveModel compatibility, allowing you to index\n your models (incrementally upon saving, or in bulk), searching and\n paginating the results.\n"
|
200
231
|
email: karmi@karmi.cz
|
201
232
|
executables: []
|
@@ -207,6 +238,7 @@ extra_rdoc_files:
|
|
207
238
|
- MIT-LICENSE
|
208
239
|
files:
|
209
240
|
- .gitignore
|
241
|
+
- .travis.yml
|
210
242
|
- Gemfile
|
211
243
|
- MIT-LICENSE
|
212
244
|
- README.markdown
|
@@ -249,6 +281,7 @@ files:
|
|
249
281
|
- test/fixtures/articles/5.json
|
250
282
|
- test/integration/active_model_searchable_test.rb
|
251
283
|
- test/integration/active_record_searchable_test.rb
|
284
|
+
- test/integration/boolean_queries_test.rb
|
252
285
|
- test/integration/facets_test.rb
|
253
286
|
- test/integration/filters_test.rb
|
254
287
|
- test/integration/highlight_test.rb
|
@@ -332,6 +365,7 @@ test_files:
|
|
332
365
|
- test/fixtures/articles/5.json
|
333
366
|
- test/integration/active_model_searchable_test.rb
|
334
367
|
- test/integration/active_record_searchable_test.rb
|
368
|
+
- test/integration/boolean_queries_test.rb
|
335
369
|
- test/integration/facets_test.rb
|
336
370
|
- test/integration/filters_test.rb
|
337
371
|
- test/integration/highlight_test.rb
|