indextank 1.0.8.1 → 1.0.9
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.
- data/lib/indextank.rb +5 -7
- data/lib/indextank/client.rb +13 -14
- data/lib/indextank/document.rb +19 -25
- data/lib/indextank/function.rb +8 -3
- data/lib/indextank/index.rb +11 -0
- data/spec/lib/indextank/document_spec.rb +28 -10
- data/spec/lib/indextank/function_spec.rb +19 -7
- data/spec/lib/indextank/index_spec.rb +37 -21
- data/spec/spec_helper.rb +2 -1
- metadata +92 -100
data/lib/indextank.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
require '
|
1
|
+
require 'faraday_stack'
|
2
2
|
require 'uri'
|
3
3
|
|
4
4
|
directory = File.expand_path(File.dirname(__FILE__))
|
5
5
|
require File.join(directory, 'indextank', 'client')
|
6
6
|
|
7
7
|
module IndexTank
|
8
|
-
VERSION = "1.0.
|
8
|
+
VERSION = "1.0.9"
|
9
9
|
|
10
|
-
def self.setup_connection(url
|
10
|
+
def self.setup_connection(url)
|
11
11
|
@conn = Faraday::Connection.new(:url => url) do |builder|
|
12
|
+
builder.use FaradayStack::ResponseJSON
|
13
|
+
yield builder if block_given?
|
12
14
|
builder.adapter Faraday.default_adapter
|
13
|
-
builder.use Faraday::Response::Yajl
|
14
|
-
if block_given?
|
15
|
-
block.call builder
|
16
|
-
end
|
17
15
|
end
|
18
16
|
@uri = URI.parse(url)
|
19
17
|
@conn.basic_auth @uri.user,@uri.password
|
data/lib/indextank/client.rb
CHANGED
@@ -7,8 +7,9 @@ module IndexTank
|
|
7
7
|
|
8
8
|
def initialize(api_url)
|
9
9
|
@uri = api_url
|
10
|
-
|
11
|
-
|
10
|
+
@conn = IndexTank.setup_connection(api_url) do |faraday|
|
11
|
+
faraday.use ClientResponseMiddleware
|
12
|
+
end
|
12
13
|
end
|
13
14
|
|
14
15
|
def indexes(name = nil)
|
@@ -36,18 +37,16 @@ module IndexTank
|
|
36
37
|
end
|
37
38
|
|
38
39
|
class ClientResponseMiddleware < Faraday::Response::Middleware
|
39
|
-
def
|
40
|
-
env[:
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
raise UnexpectedHTTPException, finished_env[:body]
|
50
|
-
end
|
40
|
+
def on_complete(env)
|
41
|
+
case env[:status]
|
42
|
+
when 200
|
43
|
+
nil # this is the expected return code
|
44
|
+
when 204
|
45
|
+
nil # this is the expected return code for empty responses
|
46
|
+
when 401
|
47
|
+
raise InvalidApiKey
|
48
|
+
else
|
49
|
+
raise UnexpectedHTTPException, finished_env[:body]
|
51
50
|
end
|
52
51
|
end
|
53
52
|
|
data/lib/indextank/document.rb
CHANGED
@@ -9,8 +9,9 @@ module IndexTank
|
|
9
9
|
def initialize(document_url, docid)
|
10
10
|
raise InvalidArgument , "docid too long. max is 1024 bytes and got #{String(docid).bytesize}" unless String(docid).bytesize <= 1024
|
11
11
|
@docid = docid
|
12
|
-
|
13
|
-
|
12
|
+
@conn = IndexTank.setup_connection(document_url) do |faraday|
|
13
|
+
faraday.use DocumentResponseMiddleware
|
14
|
+
end
|
14
15
|
end
|
15
16
|
|
16
17
|
# the options argument may contain a :variables key
|
@@ -64,30 +65,23 @@ module IndexTank
|
|
64
65
|
end
|
65
66
|
|
66
67
|
class DocumentResponseMiddleware < Faraday::Response::Middleware
|
67
|
-
def
|
68
|
-
env[:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
raise UnexpectedHTTPException, finished_env[:body]
|
84
|
-
end
|
68
|
+
def on_complete(env)
|
69
|
+
case env[:status]
|
70
|
+
when 200
|
71
|
+
nil # this is the expected code
|
72
|
+
when 204
|
73
|
+
nil # this is another expected code, for empty responses
|
74
|
+
when 401
|
75
|
+
raise InvalidApiKey
|
76
|
+
when 409
|
77
|
+
raise IndexInitializing
|
78
|
+
when 404
|
79
|
+
raise NonExistentIndex
|
80
|
+
when 400
|
81
|
+
raise InvalidArgument, env[:body]
|
82
|
+
else
|
83
|
+
raise UnexpectedHTTPException, env[:body]
|
85
84
|
end
|
86
85
|
end
|
87
|
-
|
88
|
-
def initialize(app)
|
89
|
-
super
|
90
|
-
@parser = nil
|
91
|
-
end
|
92
86
|
end
|
93
87
|
end
|
data/lib/indextank/function.rb
CHANGED
@@ -8,9 +8,10 @@ module IndexTank
|
|
8
8
|
@uri = "#{function_url}/#{index}"
|
9
9
|
@index = index
|
10
10
|
@definition = definition
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
@conn = IndexTank.setup_connection(@uri) do |faraday|
|
12
|
+
# Function and Document have the same Response statuses
|
13
|
+
faraday.use IndexTank::DocumentResponseMiddleware
|
14
|
+
end
|
14
15
|
end
|
15
16
|
|
16
17
|
def add(options = {})
|
@@ -21,6 +22,8 @@ module IndexTank
|
|
21
22
|
req.url ''
|
22
23
|
req.body = options.to_json
|
23
24
|
end
|
25
|
+
|
26
|
+
true
|
24
27
|
end
|
25
28
|
|
26
29
|
def delete(options = {})
|
@@ -28,6 +31,8 @@ module IndexTank
|
|
28
31
|
req.url ''
|
29
32
|
req.body = options.to_json
|
30
33
|
end
|
34
|
+
|
35
|
+
true
|
31
36
|
end
|
32
37
|
|
33
38
|
def ==(other)
|
data/lib/indextank/index.rb
CHANGED
@@ -152,6 +152,8 @@ module IndexTank
|
|
152
152
|
case response.status
|
153
153
|
when 400
|
154
154
|
raise InvalidQuery
|
155
|
+
when 404
|
156
|
+
raise NonExistentIndex
|
155
157
|
when 409
|
156
158
|
raise IndexInitializing
|
157
159
|
end
|
@@ -174,6 +176,15 @@ module IndexTank
|
|
174
176
|
req.url 'promote'
|
175
177
|
req.body = options.to_json
|
176
178
|
end
|
179
|
+
|
180
|
+
case resp.status
|
181
|
+
when 409
|
182
|
+
raise IndexInitializing
|
183
|
+
when 404
|
184
|
+
raise NonExistentIndex
|
185
|
+
when 400
|
186
|
+
raise InvalidArgument, resp.body
|
187
|
+
end
|
177
188
|
end
|
178
189
|
|
179
190
|
# creates a new document, identified by :docid
|
@@ -5,7 +5,7 @@ describe IndexTank::Document do
|
|
5
5
|
let(:document) { IndexTank::Client.new("http://:xxxx@dstqe.api.indextank.com").indexes('new-index').document('document1') }
|
6
6
|
let(:path_prefix) { '/v1/indexes/new-index/docs/' }
|
7
7
|
|
8
|
-
before { stub_setup_connection }
|
8
|
+
before { stub_setup_connection do |builder| builder.use IndexTank::DocumentResponseMiddleware; end }
|
9
9
|
|
10
10
|
describe "document management" do
|
11
11
|
describe "#add" do
|
@@ -24,7 +24,9 @@ describe IndexTank::Document do
|
|
24
24
|
stubs.put(path_prefix) { [409, {}, ''] }
|
25
25
|
end
|
26
26
|
|
27
|
-
it
|
27
|
+
it "should raise an exception" do
|
28
|
+
expect { subject }.to raise_error(IndexTank::IndexInitializing)
|
29
|
+
end
|
28
30
|
end
|
29
31
|
|
30
32
|
context "invalid or missing argument" do
|
@@ -32,7 +34,9 @@ describe IndexTank::Document do
|
|
32
34
|
stubs.put(path_prefix) { [400, {}, ''] }
|
33
35
|
end
|
34
36
|
|
35
|
-
it
|
37
|
+
it "should raise an exception" do
|
38
|
+
expect { subject }.to raise_error(IndexTank::InvalidArgument)
|
39
|
+
end
|
36
40
|
end
|
37
41
|
|
38
42
|
context "no index existed for the given name" do
|
@@ -40,7 +44,9 @@ describe IndexTank::Document do
|
|
40
44
|
stubs.put(path_prefix) { [404, {}, ''] }
|
41
45
|
end
|
42
46
|
|
43
|
-
it
|
47
|
+
it "should raise an exception" do
|
48
|
+
expect { subject }.to raise_error(IndexTank::NonExistentIndex)
|
49
|
+
end
|
44
50
|
end
|
45
51
|
end
|
46
52
|
|
@@ -60,7 +66,9 @@ describe IndexTank::Document do
|
|
60
66
|
stubs.delete(path_prefix) { [409, {}, ''] }
|
61
67
|
end
|
62
68
|
|
63
|
-
it
|
69
|
+
it "should raise an exception" do
|
70
|
+
expect { subject }.to raise_error(IndexTank::IndexInitializing)
|
71
|
+
end
|
64
72
|
end
|
65
73
|
|
66
74
|
context "invalid or missing argument" do
|
@@ -68,7 +76,9 @@ describe IndexTank::Document do
|
|
68
76
|
stubs.delete(path_prefix) { [400, {}, ''] }
|
69
77
|
end
|
70
78
|
|
71
|
-
it
|
79
|
+
it "should raise an exception" do
|
80
|
+
expect { subject }.to raise_error(IndexTank::InvalidArgument)
|
81
|
+
end
|
72
82
|
end
|
73
83
|
|
74
84
|
context "no index existed for the given name" do
|
@@ -76,7 +86,9 @@ describe IndexTank::Document do
|
|
76
86
|
stubs.delete(path_prefix) { [404, {}, ''] }
|
77
87
|
end
|
78
88
|
|
79
|
-
it
|
89
|
+
it "should raise an exception" do
|
90
|
+
expect { subject }.to raise_error(IndexTank::NonExistentIndex)
|
91
|
+
end
|
80
92
|
end
|
81
93
|
end
|
82
94
|
end
|
@@ -105,7 +117,9 @@ describe IndexTank::Document do
|
|
105
117
|
stubs.put("#{path_prefix}variables") { [409, {}, ''] }
|
106
118
|
end
|
107
119
|
|
108
|
-
it
|
120
|
+
it "should raise an exception" do
|
121
|
+
expect { subject }.to raise_error(IndexTank::IndexInitializing)
|
122
|
+
end
|
109
123
|
end
|
110
124
|
|
111
125
|
context "invalid or missing argument" do
|
@@ -113,7 +127,9 @@ describe IndexTank::Document do
|
|
113
127
|
stubs.put("#{path_prefix}variables") { [400, {}, ''] }
|
114
128
|
end
|
115
129
|
|
116
|
-
it
|
130
|
+
it "should raise an exception" do
|
131
|
+
expect { subject }.to raise_error(IndexTank::InvalidArgument)
|
132
|
+
end
|
117
133
|
end
|
118
134
|
|
119
135
|
context "no index existed for the given name" do
|
@@ -121,7 +137,9 @@ describe IndexTank::Document do
|
|
121
137
|
stubs.put("#{path_prefix}variables") { [404, {}, ''] }
|
122
138
|
end
|
123
139
|
|
124
|
-
it
|
140
|
+
it "should raise an exception" do
|
141
|
+
expect { subject }.to raise_error(IndexTank::NonExistentIndex)
|
142
|
+
end
|
125
143
|
end
|
126
144
|
end
|
127
145
|
end
|
@@ -5,7 +5,7 @@ describe IndexTank::Function do
|
|
5
5
|
let(:function) { IndexTank::Client.new("http://:xxxx@dstqe.api.indextank.com").indexes('new-index').functions(0, '-age') }
|
6
6
|
let(:path_prefix) { '/v1/indexes/new-index/functions/0/' }
|
7
7
|
|
8
|
-
before { stub_setup_connection }
|
8
|
+
before { stub_setup_connection do |builder| builder.use IndexTank::DocumentResponseMiddleware; end}
|
9
9
|
|
10
10
|
describe "function management" do
|
11
11
|
describe "#add" do
|
@@ -31,7 +31,9 @@ describe IndexTank::Function do
|
|
31
31
|
stubs.put(path_prefix) { [409, {}, ''] }
|
32
32
|
end
|
33
33
|
|
34
|
-
it
|
34
|
+
it "should raise an exception" do
|
35
|
+
expect {subject}.to raise_error(IndexTank::IndexInitializing)
|
36
|
+
end
|
35
37
|
end
|
36
38
|
|
37
39
|
context "invalid or missing argument" do
|
@@ -39,7 +41,9 @@ describe IndexTank::Function do
|
|
39
41
|
stubs.put(path_prefix) { [400, {}, ''] }
|
40
42
|
end
|
41
43
|
|
42
|
-
it
|
44
|
+
it "should raise an exception" do
|
45
|
+
expect {subject}.to raise_error(IndexTank::InvalidArgument)
|
46
|
+
end
|
43
47
|
end
|
44
48
|
|
45
49
|
context "no index existed for the given name" do
|
@@ -47,7 +51,9 @@ describe IndexTank::Function do
|
|
47
51
|
stubs.put(path_prefix) { [404, {}, ''] }
|
48
52
|
end
|
49
53
|
|
50
|
-
it
|
54
|
+
it "should raise an exception" do
|
55
|
+
expect {subject}.to raise_error(IndexTank::NonExistentIndex)
|
56
|
+
end
|
51
57
|
end
|
52
58
|
end
|
53
59
|
|
@@ -67,7 +73,9 @@ describe IndexTank::Function do
|
|
67
73
|
stubs.delete(path_prefix) { [409, {}, ''] }
|
68
74
|
end
|
69
75
|
|
70
|
-
it
|
76
|
+
it "should raise an exception" do
|
77
|
+
expect {subject}.to raise_error(IndexTank::IndexInitializing)
|
78
|
+
end
|
71
79
|
end
|
72
80
|
|
73
81
|
context "invalid or missing argument" do
|
@@ -75,7 +83,9 @@ describe IndexTank::Function do
|
|
75
83
|
stubs.delete(path_prefix) { [400, {}, ''] }
|
76
84
|
end
|
77
85
|
|
78
|
-
it
|
86
|
+
it "should raise an exception" do
|
87
|
+
expect {subject}.to raise_error(IndexTank::InvalidArgument)
|
88
|
+
end
|
79
89
|
end
|
80
90
|
|
81
91
|
context "no index existed for the given name" do
|
@@ -83,7 +93,9 @@ describe IndexTank::Function do
|
|
83
93
|
stubs.delete(path_prefix) { [404, {}, ''] }
|
84
94
|
end
|
85
95
|
|
86
|
-
it
|
96
|
+
it "should raise an exception" do
|
97
|
+
expect {subject}.to raise_error(IndexTank::NonExistentIndex)
|
98
|
+
end
|
87
99
|
end
|
88
100
|
end
|
89
101
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require File.expand_path('../../../spec_helper', __FILE__)
|
2
|
+
require 'yajl'
|
2
3
|
|
3
4
|
describe IndexTank::Index do
|
4
5
|
let(:stubs) { Faraday::Adapter::Test::Stubs.new }
|
@@ -53,7 +54,7 @@ describe IndexTank::Index do
|
|
53
54
|
stubs.delete(path_prefix) { [200, {}, ''] }
|
54
55
|
end
|
55
56
|
|
56
|
-
it { should
|
57
|
+
it { should be_nil }
|
57
58
|
end
|
58
59
|
|
59
60
|
context "the index does not exist" do
|
@@ -61,7 +62,9 @@ describe IndexTank::Index do
|
|
61
62
|
stubs.delete(path_prefix) { [204, {}, ''] }
|
62
63
|
end
|
63
64
|
|
64
|
-
it
|
65
|
+
it "should raise an exception" do
|
66
|
+
expect { subject }.to raise_error(IndexTank::NonExistentIndex)
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
67
70
|
end
|
@@ -141,7 +144,7 @@ describe IndexTank::Index do
|
|
141
144
|
|
142
145
|
context "search is successful" do
|
143
146
|
before do
|
144
|
-
stubs.get("#{path_prefix}search?q=foo&start=0
|
147
|
+
stubs.get("#{path_prefix}search?len=10&q=foo&start=0") { [200, {}, '{"matches": 4, "search_time": "0.022", "results": [{"docid": "http://cnn.com/HEALTH"}, {"docid": "http://www.cnn.com/HEALTH/"}, {"docid": "http://cnn.com/HEALTH/?hpt=Sbin"}, {"docid": "http://cnn.com/HEALTH/"}]}'] }
|
145
148
|
end
|
146
149
|
|
147
150
|
it "should have the number of matches" do
|
@@ -160,65 +163,78 @@ describe IndexTank::Index do
|
|
160
163
|
end
|
161
164
|
end
|
162
165
|
|
163
|
-
context "index is initializing"
|
166
|
+
context "index is initializing" do
|
164
167
|
before do
|
165
|
-
stubs.get("#{path_prefix}search") { [409, {}, ''] }
|
168
|
+
stubs.get("#{path_prefix}search?len=10&q=foo&start=0") { [409, {}, ''] }
|
166
169
|
end
|
167
170
|
|
168
|
-
it "should return an
|
171
|
+
it "should return raise an exception" do
|
172
|
+
expect { subject }.to raise_error(IndexTank::IndexInitializing)
|
173
|
+
end
|
169
174
|
end
|
170
175
|
|
171
|
-
context "index is invalid/missing argument"
|
176
|
+
context "index is invalid/missing argument" do
|
172
177
|
before do
|
173
|
-
stubs.get("#{path_prefix}search") { [400, {}, ''] }
|
178
|
+
stubs.get("#{path_prefix}search?len=10&q=foo&start=0") { [400, {}, ''] }
|
174
179
|
end
|
175
180
|
|
176
|
-
it "should return
|
181
|
+
it "should return raise an exception" do
|
182
|
+
expect { subject }.to raise_error(IndexTank::InvalidQuery)
|
183
|
+
end
|
177
184
|
end
|
178
185
|
|
179
|
-
context "no index existed for the given name"
|
186
|
+
context "no index existed for the given name" do
|
180
187
|
before do
|
181
|
-
stubs.get("#{path_prefix}search") { [404, {}, ''] }
|
188
|
+
stubs.get("#{path_prefix}search?len=10&q=foo&start=0") { [404, {}, ''] }
|
182
189
|
end
|
183
190
|
|
184
|
-
it "should return
|
191
|
+
it "should return raise an exception" do
|
192
|
+
expect { subject }.to raise_error(IndexTank::NonExistentIndex)
|
193
|
+
end
|
185
194
|
end
|
186
195
|
end
|
187
196
|
|
188
197
|
describe "#promote" do
|
189
|
-
subject { index.promote(4,
|
198
|
+
subject { index.promote("4", "foo") }
|
190
199
|
|
191
200
|
context "when the document is promoted" do
|
192
201
|
before do
|
193
|
-
stubs.
|
202
|
+
stubs.put("#{path_prefix}promote", Yajl::dump({"docid" => "4", "query" =>"foo"})) { [200, {}, ''] }
|
194
203
|
end
|
195
204
|
|
196
|
-
it { should
|
205
|
+
it { should be_nil }
|
197
206
|
end
|
198
207
|
|
199
208
|
context "when the index is initializing" do
|
200
209
|
before do
|
201
|
-
stubs.
|
210
|
+
stubs.put("#{path_prefix}promote", body=Yajl::dump({"docid" => "4", "query" =>"foo"})) { [409, {}, ''] }
|
202
211
|
end
|
203
212
|
|
204
|
-
it
|
213
|
+
it "should raise an exception" do
|
214
|
+
expect{ subject }.to raise_error(IndexTank::IndexInitializing)
|
215
|
+
end
|
205
216
|
end
|
206
217
|
|
207
218
|
context "when invalid or missing argument" do
|
208
219
|
before do
|
209
|
-
stubs.
|
220
|
+
stubs.put("#{path_prefix}promote", body=Yajl::dump({"docid" => "4", "query" =>"foo"})) { [400, {}, ''] }
|
210
221
|
end
|
211
222
|
|
212
|
-
it
|
223
|
+
it "should raise an exception" do
|
224
|
+
expect{ subject }.to raise_error(IndexTank::InvalidArgument)
|
225
|
+
end
|
213
226
|
end
|
214
227
|
|
215
228
|
context "when no index exists for the given name" do
|
216
229
|
before do
|
217
|
-
stubs.
|
230
|
+
stubs.put("#{path_prefix}promote", body=Yajl::dump({"docid" => "4", "query" =>"foo"})) { [404, {}, ''] }
|
218
231
|
end
|
219
232
|
|
220
|
-
it
|
233
|
+
it "should raise an exception" do
|
234
|
+
expect{ subject }.to raise_error(IndexTank::NonExistentIndex)
|
235
|
+
end
|
221
236
|
end
|
237
|
+
|
222
238
|
end
|
223
239
|
|
224
240
|
describe "#document" do
|
data/spec/spec_helper.rb
CHANGED
@@ -21,8 +21,9 @@ end
|
|
21
21
|
def stub_setup_connection
|
22
22
|
stub(IndexTank).setup_connection(anything) do |url|
|
23
23
|
Faraday::Connection.new(:url => url) do |builder|
|
24
|
+
builder.use FaradayStack::ResponseJSON
|
25
|
+
yield builder if block_given?
|
24
26
|
builder.adapter :test, stubs
|
25
|
-
builder.use Faraday::Response::Yajl
|
26
27
|
end
|
27
28
|
end
|
28
29
|
end
|
metadata
CHANGED
@@ -1,142 +1,138 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: indextank
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.9
|
4
5
|
prerelease:
|
5
|
-
version: 1.0.8.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Santiago Perez
|
9
9
|
- Terence Lee
|
10
10
|
- Diego Buthay
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
|
15
|
-
date: 2011-01-07 00:00:00 -03:00
|
14
|
+
date: 2011-01-07 00:00:00.000000000 -03:00
|
16
15
|
default_executable:
|
17
|
-
dependencies:
|
18
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
19
18
|
name: jeweler
|
20
|
-
|
21
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
requirement: &72509310 !ruby/object:Gem::Requirement
|
22
20
|
none: false
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
21
|
+
requirements:
|
22
|
+
- - ! '>='
|
23
|
+
- !ruby/object:Gem::Version
|
26
24
|
version: 1.4.0
|
27
25
|
type: :development
|
28
|
-
version_requirements: *id001
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rspec-core
|
31
26
|
prerelease: false
|
32
|
-
|
27
|
+
version_requirements: *72509310
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec-core
|
30
|
+
requirement: &72509010 !ruby/object:Gem::Requirement
|
33
31
|
none: false
|
34
|
-
requirements:
|
35
|
-
- -
|
36
|
-
- !ruby/object:Gem::Version
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
37
35
|
version: 2.0.0.beta.19
|
38
36
|
type: :development
|
39
|
-
version_requirements: *id002
|
40
|
-
- !ruby/object:Gem::Dependency
|
41
|
-
name: rspec-expectations
|
42
37
|
prerelease: false
|
43
|
-
|
38
|
+
version_requirements: *72509010
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: rspec-expectations
|
41
|
+
requirement: &72508710 !ruby/object:Gem::Requirement
|
44
42
|
none: false
|
45
|
-
requirements:
|
46
|
-
- -
|
47
|
-
- !ruby/object:Gem::Version
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
48
46
|
version: 2.0.0.beta.19
|
49
47
|
type: :development
|
50
|
-
version_requirements: *id003
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: rr
|
53
48
|
prerelease: false
|
54
|
-
|
49
|
+
version_requirements: *72508710
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rr
|
52
|
+
requirement: &72508440 !ruby/object:Gem::Requirement
|
55
53
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
59
57
|
version: 0.10.11
|
60
58
|
type: :development
|
61
|
-
version_requirements: *id004
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rake
|
64
59
|
prerelease: false
|
65
|
-
|
60
|
+
version_requirements: *72508440
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: &72508160 !ruby/object:Gem::Requirement
|
66
64
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
70
68
|
version: 0.8.7
|
71
69
|
type: :development
|
72
|
-
version_requirements: *id005
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: ruby-debug
|
75
70
|
prerelease: false
|
76
|
-
|
71
|
+
version_requirements: *72508160
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: ruby-debug
|
74
|
+
requirement: &72507910 !ruby/object:Gem::Requirement
|
77
75
|
none: false
|
78
|
-
requirements:
|
79
|
-
- -
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version:
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
82
80
|
type: :development
|
83
|
-
version_requirements: *id006
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: parka
|
86
81
|
prerelease: false
|
87
|
-
|
82
|
+
version_requirements: *72507910
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: parka
|
85
|
+
requirement: &72507640 !ruby/object:Gem::Requirement
|
88
86
|
none: false
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
92
90
|
version: 0.3.1
|
93
91
|
type: :development
|
94
|
-
version_requirements: *id007
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: faraday
|
97
92
|
prerelease: false
|
98
|
-
|
93
|
+
version_requirements: *72507640
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: faraday
|
96
|
+
requirement: &72507400 !ruby/object:Gem::Requirement
|
99
97
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version:
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
104
102
|
type: :runtime
|
105
|
-
version_requirements: *id008
|
106
|
-
- !ruby/object:Gem::Dependency
|
107
|
-
name: yajl-ruby
|
108
103
|
prerelease: false
|
109
|
-
|
104
|
+
version_requirements: *72507400
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: yajl-ruby
|
107
|
+
requirement: &72507160 !ruby/object:Gem::Requirement
|
110
108
|
none: false
|
111
|
-
requirements:
|
112
|
-
- -
|
113
|
-
- !ruby/object:Gem::Version
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
114
112
|
version: 0.7.7
|
115
113
|
type: :runtime
|
116
|
-
version_requirements: *id009
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: json_pure
|
119
114
|
prerelease: false
|
120
|
-
|
115
|
+
version_requirements: *72507160
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: json_pure
|
118
|
+
requirement: &72506920 !ruby/object:Gem::Requirement
|
121
119
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
125
123
|
version: 1.4.6
|
126
124
|
type: :runtime
|
127
|
-
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: *72506920
|
128
127
|
description: Ruby Client for the IndexTank API
|
129
|
-
email:
|
128
|
+
email:
|
130
129
|
- santip@santip.com.ar
|
131
130
|
- hone02@gmail.com
|
132
131
|
- dbuthay@gmail.com
|
133
132
|
executables: []
|
134
|
-
|
135
133
|
extensions: []
|
136
|
-
|
137
134
|
extra_rdoc_files: []
|
138
|
-
|
139
|
-
files:
|
135
|
+
files:
|
140
136
|
- lib/indextank.rb
|
141
137
|
- lib/indextank/client.rb
|
142
138
|
- lib/indextank/document.rb
|
@@ -151,30 +147,26 @@ files:
|
|
151
147
|
has_rdoc: true
|
152
148
|
homepage: http://www.indextank.com
|
153
149
|
licenses: []
|
154
|
-
|
155
150
|
post_install_message:
|
156
151
|
rdoc_options: []
|
157
|
-
|
158
|
-
require_paths:
|
152
|
+
require_paths:
|
159
153
|
- lib
|
160
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
161
155
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version:
|
166
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
161
|
none: false
|
168
|
-
requirements:
|
169
|
-
- -
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version:
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
172
166
|
requirements: []
|
173
|
-
|
174
167
|
rubyforge_project: nowarning
|
175
|
-
rubygems_version: 1.
|
168
|
+
rubygems_version: 1.5.2
|
176
169
|
signing_key:
|
177
170
|
specification_version: 3
|
178
171
|
summary: Ruby Client for the IndexTank API
|
179
172
|
test_files: []
|
180
|
-
|