gsa 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +3 -0
- data/Rakefile +1 -0
- data/fixtures/cassette_library/delete_many_records.yml +44 -0
- data/fixtures/cassette_library/delete_single_record.yml +44 -0
- data/fixtures/cassette_library/many_records.yml +44 -0
- data/fixtures/cassette_library/many_results_no_filters.yml +90 -0
- data/fixtures/cassette_library/many_results_with_filters.yml +134 -0
- data/fixtures/cassette_library/no_result_no_filters.yml +55 -0
- data/fixtures/cassette_library/no_result_with_filters.yml +57 -0
- data/fixtures/cassette_library/single_record.yml +44 -0
- data/fixtures/cassette_library/single_result_no_filters.yml +483 -0
- data/fixtures/cassette_library/single_result_with_filters.yml +185 -0
- data/fixtures/facets/many.txt +1 -0
- data/fixtures/facets/single.txt +1 -0
- data/fixtures/feeds/15_records.txt +17 -0
- data/fixtures/feeds/1_records.txt +1 -0
- data/fixtures/queries/many.txt +1 -0
- data/fixtures/queries/none.txt +1 -0
- data/fixtures/queries/single.txt +1 -0
- data/fixtures/result_sets/many.txt +1 -0
- data/fixtures/result_sets/many_facets.txt +1 -0
- data/fixtures/result_sets/single.txt +1 -0
- data/fixtures/result_sets/single_facets.txt +1 -0
- data/fixtures/uids/many.txt +1 -0
- data/fixtures/uids/single.txt +1 -0
- data/gsa.gemspec +39 -0
- data/lib/defaults.rb +41 -0
- data/lib/facade.rb +48 -0
- data/lib/gsa.rb +27 -0
- data/lib/gsa/exceptions.rb +3 -0
- data/lib/gsa/faceter.rb +41 -0
- data/lib/gsa/feeder.rb +19 -0
- data/lib/gsa/modules/filer.rb +26 -0
- data/lib/gsa/modules/injector.rb +16 -0
- data/lib/gsa/modules/xmlizer.rb +24 -0
- data/lib/gsa/records_converter.rb +61 -0
- data/lib/gsa/search_converter.rb +41 -0
- data/lib/gsa/searcher.rb +32 -0
- data/lib/gsa/uid_extractor.rb +24 -0
- data/lib/gsa/version.rb +3 -0
- data/spec/fixtures.rb +73 -0
- data/spec/lib/gsa_spec.rb +318 -0
- data/spec/spec_helper.rb +15 -0
- metadata +209 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'webmock/rspec'
|
2
|
+
require 'vcr'
|
3
|
+
require 'simplecov'
|
4
|
+
require 'fixtures'
|
5
|
+
|
6
|
+
SimpleCov.start
|
7
|
+
|
8
|
+
require_relative '../lib/gsa'
|
9
|
+
|
10
|
+
VCR.configure do |config|
|
11
|
+
config.cassette_library_dir = 'fixtures/cassette_library'
|
12
|
+
config.hook_into :webmock
|
13
|
+
config.ignore_localhost = true
|
14
|
+
config.default_cassette_options = { :record => :none }
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,209 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gsa
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel J. Long
|
8
|
+
- 1000Bulbs.com Dev Team
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.3'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.3'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: webmock
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.13.0
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.13.0
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: vcr
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.5.0
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.5.0
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: simplecov
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.7.1
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.7.1
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rest-client
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ~>
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.6.7
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.6.7
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: activesupport
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 4.0.0
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 4.0.0
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: json
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ~>
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.8.0
|
119
|
+
type: :runtime
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.8.0
|
126
|
+
description: "\n Harness GSA indexing power easily and immediately with one-line
|
127
|
+
feeding, \n searching, and faceting. This gem is tailored for the use in commerce
|
128
|
+
\n and other such uses outside the scope of the out-of-the-box GSA \n \"internal
|
129
|
+
search\".\n "
|
130
|
+
email:
|
131
|
+
- dlong@1000bulbs.com
|
132
|
+
executables: []
|
133
|
+
extensions: []
|
134
|
+
extra_rdoc_files: []
|
135
|
+
files:
|
136
|
+
- .gitignore
|
137
|
+
- Gemfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- fixtures/cassette_library/delete_many_records.yml
|
142
|
+
- fixtures/cassette_library/delete_single_record.yml
|
143
|
+
- fixtures/cassette_library/many_records.yml
|
144
|
+
- fixtures/cassette_library/many_results_no_filters.yml
|
145
|
+
- fixtures/cassette_library/many_results_with_filters.yml
|
146
|
+
- fixtures/cassette_library/no_result_no_filters.yml
|
147
|
+
- fixtures/cassette_library/no_result_with_filters.yml
|
148
|
+
- fixtures/cassette_library/single_record.yml
|
149
|
+
- fixtures/cassette_library/single_result_no_filters.yml
|
150
|
+
- fixtures/cassette_library/single_result_with_filters.yml
|
151
|
+
- fixtures/facets/many.txt
|
152
|
+
- fixtures/facets/single.txt
|
153
|
+
- fixtures/feeds/15_records.txt
|
154
|
+
- fixtures/feeds/1_records.txt
|
155
|
+
- fixtures/queries/many.txt
|
156
|
+
- fixtures/queries/none.txt
|
157
|
+
- fixtures/queries/single.txt
|
158
|
+
- fixtures/result_sets/many.txt
|
159
|
+
- fixtures/result_sets/many_facets.txt
|
160
|
+
- fixtures/result_sets/single.txt
|
161
|
+
- fixtures/result_sets/single_facets.txt
|
162
|
+
- fixtures/uids/many.txt
|
163
|
+
- fixtures/uids/single.txt
|
164
|
+
- gsa.gemspec
|
165
|
+
- lib/defaults.rb
|
166
|
+
- lib/facade.rb
|
167
|
+
- lib/gsa.rb
|
168
|
+
- lib/gsa/exceptions.rb
|
169
|
+
- lib/gsa/faceter.rb
|
170
|
+
- lib/gsa/feeder.rb
|
171
|
+
- lib/gsa/modules/filer.rb
|
172
|
+
- lib/gsa/modules/injector.rb
|
173
|
+
- lib/gsa/modules/xmlizer.rb
|
174
|
+
- lib/gsa/records_converter.rb
|
175
|
+
- lib/gsa/search_converter.rb
|
176
|
+
- lib/gsa/searcher.rb
|
177
|
+
- lib/gsa/uid_extractor.rb
|
178
|
+
- lib/gsa/version.rb
|
179
|
+
- spec/fixtures.rb
|
180
|
+
- spec/lib/gsa_spec.rb
|
181
|
+
- spec/spec_helper.rb
|
182
|
+
homepage: https://rubygems.org/gems/gsa
|
183
|
+
licenses:
|
184
|
+
- MIT
|
185
|
+
metadata: {}
|
186
|
+
post_install_message:
|
187
|
+
rdoc_options: []
|
188
|
+
require_paths:
|
189
|
+
- lib
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - '>='
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
requirements: []
|
201
|
+
rubyforge_project:
|
202
|
+
rubygems_version: 2.0.3
|
203
|
+
signing_key:
|
204
|
+
specification_version: 4
|
205
|
+
summary: One-line feeding, searching and faceting for Google Search Appliance (GSA)'
|
206
|
+
test_files:
|
207
|
+
- spec/fixtures.rb
|
208
|
+
- spec/lib/gsa_spec.rb
|
209
|
+
- spec/spec_helper.rb
|