slingshot-rb 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +4 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +164 -0
- data/Rakefile +52 -0
- data/examples/dsl.rb +70 -0
- data/lib/slingshot/client.rb +25 -0
- data/lib/slingshot/configuration.rb +15 -0
- data/lib/slingshot/dsl.rb +17 -0
- data/lib/slingshot/index.rb +42 -0
- data/lib/slingshot/results/collection.rb +22 -0
- data/lib/slingshot/rubyext/hash.rb +3 -0
- data/lib/slingshot/search/facet.rb +34 -0
- data/lib/slingshot/search/query.rb +33 -0
- data/lib/slingshot/search/sort.rb +24 -0
- data/lib/slingshot/search.rb +70 -0
- data/lib/slingshot/slingshot-rb.rb +1 -0
- data/lib/slingshot/version.rb +3 -0
- data/lib/slingshot.rb +18 -0
- data/slingshot.gemspec +41 -0
- data/test/fixtures/articles/1.json +1 -0
- data/test/fixtures/articles/2.json +1 -0
- data/test/fixtures/articles/3.json +1 -0
- data/test/fixtures/articles/4.json +1 -0
- data/test/fixtures/articles/5.json +1 -0
- data/test/integration/facets_test.rb +47 -0
- data/test/integration/query_string_test.rb +43 -0
- data/test/integration/sort_test.rb +36 -0
- data/test/test_helper.rb +46 -0
- data/test/unit/client_test.rb +35 -0
- data/test/unit/configuration_test.rb +34 -0
- data/test/unit/index_test.rb +71 -0
- data/test/unit/results_collection_test.rb +31 -0
- data/test/unit/search_facet_test.rb +44 -0
- data/test/unit/search_query_test.rb +40 -0
- data/test/unit/search_sort_test.rb +42 -0
- data/test/unit/search_test.rb +106 -0
- data/test/unit/slingshot_test.rb +17 -0
- metadata +241 -0
metadata
ADDED
@@ -0,0 +1,241 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slingshot-rb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Karel Minarik
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-02-08 00:00:00 +01:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: bundler
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 23
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
- 0
|
34
|
+
version: 1.0.0
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rest-client
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 15
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 6
|
49
|
+
- 0
|
50
|
+
version: 1.6.0
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: yajl-ruby
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 17
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 7
|
65
|
+
- 9
|
66
|
+
version: 0.7.9
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: turn
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
type: :development
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: shoulda
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
version: "0"
|
95
|
+
type: :development
|
96
|
+
version_requirements: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: mocha
|
99
|
+
prerelease: false
|
100
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 3
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
109
|
+
type: :development
|
110
|
+
version_requirements: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sdoc
|
113
|
+
prerelease: false
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
version_requirements: *id007
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rcov
|
127
|
+
prerelease: false
|
128
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
version: "0"
|
137
|
+
type: :development
|
138
|
+
version_requirements: *id008
|
139
|
+
description: " Ruby API for the ElasticSearch search engine/database.\n A work in progress, currently.\n"
|
140
|
+
email: karmi@karmi.cz
|
141
|
+
executables: []
|
142
|
+
|
143
|
+
extensions: []
|
144
|
+
|
145
|
+
extra_rdoc_files:
|
146
|
+
- README.markdown
|
147
|
+
- MIT-LICENSE
|
148
|
+
files:
|
149
|
+
- .gitignore
|
150
|
+
- Gemfile
|
151
|
+
- MIT-LICENSE
|
152
|
+
- README.markdown
|
153
|
+
- Rakefile
|
154
|
+
- examples/dsl.rb
|
155
|
+
- lib/slingshot.rb
|
156
|
+
- lib/slingshot/client.rb
|
157
|
+
- lib/slingshot/configuration.rb
|
158
|
+
- lib/slingshot/dsl.rb
|
159
|
+
- lib/slingshot/index.rb
|
160
|
+
- lib/slingshot/results/collection.rb
|
161
|
+
- lib/slingshot/rubyext/hash.rb
|
162
|
+
- lib/slingshot/search.rb
|
163
|
+
- lib/slingshot/search/facet.rb
|
164
|
+
- lib/slingshot/search/query.rb
|
165
|
+
- lib/slingshot/search/sort.rb
|
166
|
+
- lib/slingshot/slingshot-rb.rb
|
167
|
+
- lib/slingshot/version.rb
|
168
|
+
- slingshot.gemspec
|
169
|
+
- test/fixtures/articles/1.json
|
170
|
+
- test/fixtures/articles/2.json
|
171
|
+
- test/fixtures/articles/3.json
|
172
|
+
- test/fixtures/articles/4.json
|
173
|
+
- test/fixtures/articles/5.json
|
174
|
+
- test/integration/facets_test.rb
|
175
|
+
- test/integration/query_string_test.rb
|
176
|
+
- test/integration/sort_test.rb
|
177
|
+
- test/test_helper.rb
|
178
|
+
- test/unit/client_test.rb
|
179
|
+
- test/unit/configuration_test.rb
|
180
|
+
- test/unit/index_test.rb
|
181
|
+
- test/unit/results_collection_test.rb
|
182
|
+
- test/unit/search_facet_test.rb
|
183
|
+
- test/unit/search_query_test.rb
|
184
|
+
- test/unit/search_sort_test.rb
|
185
|
+
- test/unit/search_test.rb
|
186
|
+
- test/unit/slingshot_test.rb
|
187
|
+
has_rdoc: true
|
188
|
+
homepage: http://github.com/karmi/slingshot
|
189
|
+
licenses: []
|
190
|
+
|
191
|
+
post_install_message:
|
192
|
+
rdoc_options:
|
193
|
+
- --charset=UTF-8
|
194
|
+
require_paths:
|
195
|
+
- lib
|
196
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
197
|
+
none: false
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
hash: 3
|
202
|
+
segments:
|
203
|
+
- 0
|
204
|
+
version: "0"
|
205
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
|
+
none: false
|
207
|
+
requirements:
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
hash: 23
|
211
|
+
segments:
|
212
|
+
- 1
|
213
|
+
- 3
|
214
|
+
- 6
|
215
|
+
version: 1.3.6
|
216
|
+
requirements: []
|
217
|
+
|
218
|
+
rubyforge_project: slingshot
|
219
|
+
rubygems_version: 1.3.7
|
220
|
+
signing_key:
|
221
|
+
specification_version: 3
|
222
|
+
summary: Ruby API for ElasticSearch
|
223
|
+
test_files:
|
224
|
+
- test/fixtures/articles/1.json
|
225
|
+
- test/fixtures/articles/2.json
|
226
|
+
- test/fixtures/articles/3.json
|
227
|
+
- test/fixtures/articles/4.json
|
228
|
+
- test/fixtures/articles/5.json
|
229
|
+
- test/integration/facets_test.rb
|
230
|
+
- test/integration/query_string_test.rb
|
231
|
+
- test/integration/sort_test.rb
|
232
|
+
- test/test_helper.rb
|
233
|
+
- test/unit/client_test.rb
|
234
|
+
- test/unit/configuration_test.rb
|
235
|
+
- test/unit/index_test.rb
|
236
|
+
- test/unit/results_collection_test.rb
|
237
|
+
- test/unit/search_facet_test.rb
|
238
|
+
- test/unit/search_query_test.rb
|
239
|
+
- test/unit/search_sort_test.rb
|
240
|
+
- test/unit/search_test.rb
|
241
|
+
- test/unit/slingshot_test.rb
|