cassanity 0.3.0 → 0.4.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.
- data/Changelog.md +10 -0
- data/Gemfile +5 -3
- data/README.md +22 -15
- data/examples/_shared.rb +5 -1
- data/examples/batch.rb +17 -23
- data/examples/column_families.rb +12 -13
- data/examples/counters.rb +10 -18
- data/examples/keyspaces.rb +12 -17
- data/examples/select_range.rb +29 -19
- data/lib/cassanity/argument_generators/batch.rb +8 -0
- data/lib/cassanity/argument_generators/column_family_alter.rb +1 -1
- data/lib/cassanity/argument_generators/column_family_create.rb +1 -1
- data/lib/cassanity/argument_generators/column_family_delete.rb +2 -22
- data/lib/cassanity/argument_generators/column_family_drop.rb +1 -1
- data/lib/cassanity/argument_generators/column_family_insert.rb +2 -24
- data/lib/cassanity/argument_generators/column_family_select.rb +1 -1
- data/lib/cassanity/argument_generators/column_family_truncate.rb +1 -1
- data/lib/cassanity/argument_generators/column_family_update.rb +2 -24
- data/lib/cassanity/argument_generators/keyspace_create.rb +1 -1
- data/lib/cassanity/argument_generators/keyspace_drop.rb +1 -1
- data/lib/cassanity/argument_generators/keyspace_use.rb +1 -1
- data/lib/cassanity/argument_generators/where_clause.rb +1 -0
- data/lib/cassanity/argument_generators/with_clause.rb +12 -6
- data/lib/cassanity/client.rb +65 -0
- data/lib/cassanity/column_family.rb +70 -17
- data/lib/cassanity/connection.rb +8 -0
- data/lib/cassanity/decrement.rb +2 -15
- data/lib/cassanity/executors/cassandra_cql.rb +37 -11
- data/lib/cassanity/increment.rb +2 -15
- data/lib/cassanity/instrumentation/log_subscriber.rb +27 -0
- data/lib/cassanity/instrumenters/memory.rb +27 -0
- data/lib/cassanity/instrumenters/noop.rb +9 -0
- data/lib/cassanity/keyspace.rb +42 -6
- data/lib/cassanity/operator.rb +9 -0
- data/lib/cassanity/range.rb +4 -0
- data/lib/cassanity/schema.rb +21 -0
- data/lib/cassanity/version.rb +1 -1
- data/lib/cassanity.rb +16 -2
- data/spec/integration/cassanity/column_family_spec.rb +59 -78
- data/spec/integration/cassanity/connection_spec.rb +18 -34
- data/spec/integration/cassanity/keyspace_spec.rb +24 -34
- data/spec/unit/cassanity/argument_generators/batch_spec.rb +51 -3
- data/spec/unit/cassanity/argument_generators/column_family_alter_spec.rb +6 -6
- data/spec/unit/cassanity/argument_generators/column_family_create_spec.rb +6 -6
- data/spec/unit/cassanity/argument_generators/column_family_delete_spec.rb +5 -5
- data/spec/unit/cassanity/argument_generators/column_family_drop_spec.rb +2 -2
- data/spec/unit/cassanity/argument_generators/column_family_insert_spec.rb +5 -5
- data/spec/unit/cassanity/argument_generators/column_family_select_spec.rb +12 -12
- data/spec/unit/cassanity/argument_generators/column_family_truncate_spec.rb +2 -2
- data/spec/unit/cassanity/argument_generators/column_family_update_spec.rb +5 -5
- data/spec/unit/cassanity/argument_generators/keyspace_create_spec.rb +4 -4
- data/spec/unit/cassanity/argument_generators/keyspace_drop_spec.rb +1 -1
- data/spec/unit/cassanity/argument_generators/keyspace_use_spec.rb +1 -1
- data/spec/unit/cassanity/argument_generators/where_clause_spec.rb +26 -0
- data/spec/unit/cassanity/argument_generators/with_clause_spec.rb +26 -0
- data/spec/unit/cassanity/client_spec.rb +159 -0
- data/spec/unit/cassanity/column_family_spec.rb +64 -17
- data/spec/unit/cassanity/connection_spec.rb +8 -0
- data/spec/unit/cassanity/executors/cassandra_cql_spec.rb +35 -19
- data/spec/unit/cassanity/instrumentors/memory_spec.rb +26 -0
- data/spec/unit/cassanity/instrumentors/noop_spec.rb +22 -0
- data/spec/unit/cassanity/keyspace_spec.rb +25 -3
- data/spec/unit/cassanity/operator_spec.rb +10 -0
- data/spec/unit/cassanity/schema_spec.rb +6 -0
- data/spec/unit/cassanity_spec.rb +6 -0
- metadata +15 -4
@@ -50,6 +50,21 @@ describe Cassanity::ColumnFamily do
|
|
50
50
|
instance.schema.should eq(schema)
|
51
51
|
end
|
52
52
|
|
53
|
+
it "wraps schema if schema is hash" do
|
54
|
+
schema = {
|
55
|
+
primary_key: :id,
|
56
|
+
columns: {
|
57
|
+
id: :text,
|
58
|
+
name: :text,
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
instance = described_class.new(required_arguments.merge({
|
63
|
+
schema: schema,
|
64
|
+
}))
|
65
|
+
instance.schema.should eq(Cassanity::Schema.new(schema))
|
66
|
+
end
|
67
|
+
|
53
68
|
it "allows overriding executor" do
|
54
69
|
other_executor = lambda { |args| }
|
55
70
|
column_family = described_class.new(required_arguments.merge({
|
@@ -125,7 +140,7 @@ describe Cassanity::ColumnFamily do
|
|
125
140
|
executor.should_receive(:call).with({
|
126
141
|
command: :column_family_create,
|
127
142
|
arguments: args.merge({
|
128
|
-
|
143
|
+
column_family_name: column_family_name,
|
129
144
|
keyspace_name: keyspace_name,
|
130
145
|
schema: schema,
|
131
146
|
}),
|
@@ -139,7 +154,7 @@ describe Cassanity::ColumnFamily do
|
|
139
154
|
executor.should_receive(:call).with({
|
140
155
|
command: :column_family_create,
|
141
156
|
arguments: args.merge({
|
142
|
-
|
157
|
+
column_family_name: column_family_name,
|
143
158
|
keyspace_name: keyspace_name,
|
144
159
|
schema: schema_argument,
|
145
160
|
}),
|
@@ -158,26 +173,28 @@ describe Cassanity::ColumnFamily do
|
|
158
173
|
it "sends passed in schema if present" do
|
159
174
|
args = {schema: schema}
|
160
175
|
command_arguments = args.merge({
|
161
|
-
|
176
|
+
column_family_name: column_family_name,
|
162
177
|
keyspace_name: keyspace_name,
|
163
178
|
schema: schema,
|
164
179
|
})
|
180
|
+
|
165
181
|
executor.should_receive(:call).with({
|
166
182
|
command: :column_family_create,
|
167
183
|
arguments: command_arguments,
|
168
184
|
})
|
185
|
+
|
169
186
|
subject.create(args)
|
170
187
|
end
|
171
188
|
end
|
172
189
|
end
|
173
190
|
|
174
191
|
describe "#truncate" do
|
175
|
-
it "sends command and arguments, including :
|
192
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
176
193
|
args = {something: 'else'}
|
177
194
|
executor.should_receive(:call).with({
|
178
195
|
command: :column_family_truncate,
|
179
196
|
arguments: args.merge({
|
180
|
-
|
197
|
+
column_family_name: column_family_name,
|
181
198
|
keyspace_name: keyspace_name,
|
182
199
|
}),
|
183
200
|
})
|
@@ -186,12 +203,12 @@ describe Cassanity::ColumnFamily do
|
|
186
203
|
end
|
187
204
|
|
188
205
|
describe "#drop" do
|
189
|
-
it "sends command and arguments, including :
|
206
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
190
207
|
args = {something: 'else'}
|
191
208
|
executor.should_receive(:call).with({
|
192
209
|
command: :column_family_drop,
|
193
210
|
arguments: args.merge({
|
194
|
-
|
211
|
+
column_family_name: column_family_name,
|
195
212
|
keyspace_name: keyspace_name,
|
196
213
|
}),
|
197
214
|
})
|
@@ -200,12 +217,12 @@ describe Cassanity::ColumnFamily do
|
|
200
217
|
end
|
201
218
|
|
202
219
|
describe "#alter" do
|
203
|
-
it "sends command and arguments, including :
|
220
|
+
it "sends command and arguments, including :column_family_name and :keyspace_name, to executor" do
|
204
221
|
args = {drop: :name, something: 'else'}
|
205
222
|
executor.should_receive(:call).with({
|
206
223
|
command: :column_family_alter,
|
207
224
|
arguments: args.merge({
|
208
|
-
|
225
|
+
column_family_name: column_family_name,
|
209
226
|
keyspace_name: keyspace_name,
|
210
227
|
}),
|
211
228
|
})
|
@@ -214,7 +231,7 @@ describe Cassanity::ColumnFamily do
|
|
214
231
|
end
|
215
232
|
|
216
233
|
describe "#create_index" do
|
217
|
-
it "sends command and arguments, including :
|
234
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
218
235
|
args = {something: 'else'}
|
219
236
|
executor.should_receive(:call).with({
|
220
237
|
command: :index_create,
|
@@ -228,7 +245,7 @@ describe Cassanity::ColumnFamily do
|
|
228
245
|
end
|
229
246
|
|
230
247
|
describe "#drop_index" do
|
231
|
-
it "sends command and arguments, including :
|
248
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
232
249
|
args = {something: 'else', name: 'users_state_idx'}
|
233
250
|
executor.should_receive(:call).with({
|
234
251
|
command: :index_drop,
|
@@ -239,12 +256,12 @@ describe Cassanity::ColumnFamily do
|
|
239
256
|
end
|
240
257
|
|
241
258
|
describe "#insert" do
|
242
|
-
it "sends command and arguments, including :
|
259
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
243
260
|
args = {data: {id: '1', name: 'GitHub'}}
|
244
261
|
executor.should_receive(:call).with({
|
245
262
|
command: :column_family_insert,
|
246
263
|
arguments: args.merge({
|
247
|
-
|
264
|
+
column_family_name: column_family_name,
|
248
265
|
keyspace_name: keyspace_name,
|
249
266
|
}),
|
250
267
|
})
|
@@ -253,12 +270,12 @@ describe Cassanity::ColumnFamily do
|
|
253
270
|
end
|
254
271
|
|
255
272
|
describe "#update" do
|
256
|
-
it "sends command and arguments, including :
|
273
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
257
274
|
args = {set: {name: 'GitHub'}, where: {id: '1'}}
|
258
275
|
executor.should_receive(:call).with({
|
259
276
|
command: :column_family_update,
|
260
277
|
arguments: args.merge({
|
261
|
-
|
278
|
+
column_family_name: column_family_name,
|
262
279
|
keyspace_name: keyspace_name,
|
263
280
|
}),
|
264
281
|
})
|
@@ -267,16 +284,46 @@ describe Cassanity::ColumnFamily do
|
|
267
284
|
end
|
268
285
|
|
269
286
|
describe "#delete" do
|
270
|
-
it "sends command and arguments, including :
|
287
|
+
it "sends command and arguments, including :column_family_name, to executor" do
|
271
288
|
args = {where: {id: '1'}}
|
272
289
|
executor.should_receive(:call).with({
|
273
290
|
command: :column_family_delete,
|
274
291
|
arguments: args.merge({
|
275
|
-
|
292
|
+
column_family_name: column_family_name,
|
276
293
|
keyspace_name: keyspace_name,
|
277
294
|
}),
|
278
295
|
})
|
279
296
|
subject.delete(args)
|
280
297
|
end
|
281
298
|
end
|
299
|
+
|
300
|
+
describe "#batch" do
|
301
|
+
it "sends command and arguments, including :column_fmaily_name, to executor" do
|
302
|
+
args = {
|
303
|
+
keyspace_name: keyspace_name,
|
304
|
+
column_family_name: subject.name,
|
305
|
+
modifications: [
|
306
|
+
[:insert, data: {id: '1', name: 'GitHub'}],
|
307
|
+
],
|
308
|
+
}
|
309
|
+
|
310
|
+
executor.should_receive(:call).with({
|
311
|
+
command: :batch,
|
312
|
+
arguments: args,
|
313
|
+
})
|
314
|
+
|
315
|
+
subject.batch(args)
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
describe "#inspect" do
|
320
|
+
it "return representation" do
|
321
|
+
result = subject.inspect
|
322
|
+
result.should match(/#{described_class}/)
|
323
|
+
result.should match(/name=/)
|
324
|
+
result.should match(/keyspace=/)
|
325
|
+
result.should match(/executor=/)
|
326
|
+
result.should match(/schema=/)
|
327
|
+
end
|
328
|
+
end
|
282
329
|
end
|
@@ -125,4 +125,12 @@ describe Cassanity::Connection do
|
|
125
125
|
@return_value.should be_instance_of(Cassanity::Keyspace)
|
126
126
|
end
|
127
127
|
end
|
128
|
+
|
129
|
+
describe "#inspect" do
|
130
|
+
it "return representation" do
|
131
|
+
result = subject.inspect
|
132
|
+
result.should match(/#{described_class}/)
|
133
|
+
result.should match(/executor=/)
|
134
|
+
end
|
135
|
+
end
|
128
136
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
require 'cassanity/executors/cassandra_cql'
|
3
|
+
require 'cassanity/instrumenters/memory'
|
3
4
|
|
4
5
|
describe Cassanity::Executors::CassandraCql do
|
5
6
|
let(:client) { double('Client', :execute => nil) }
|
@@ -44,6 +45,17 @@ describe Cassanity::Executors::CassandraCql do
|
|
44
45
|
subject.result_transformers.should eq(described_class::ResultTransformers)
|
45
46
|
end
|
46
47
|
|
48
|
+
it "defaults :instrumenter" do
|
49
|
+
subject.instrumenter.should eq(Cassanity::Instrumenters::Noop)
|
50
|
+
end
|
51
|
+
|
52
|
+
it "defaults instrumenter if nil is passed in" do
|
53
|
+
instance = described_class.new(required_arguments.merge({
|
54
|
+
instrumenter: nil,
|
55
|
+
}))
|
56
|
+
instance.instrumenter.should eq(Cassanity::Instrumenters::Noop)
|
57
|
+
end
|
58
|
+
|
47
59
|
it "allows overriding :argument_generators" do
|
48
60
|
instance = described_class.new(required_arguments.merge({
|
49
61
|
argument_generators: argument_generators
|
@@ -106,29 +118,17 @@ describe Cassanity::Executors::CassandraCql do
|
|
106
118
|
subject.call(args)
|
107
119
|
end
|
108
120
|
|
109
|
-
context "with
|
110
|
-
let(:
|
111
|
-
Class.new do
|
112
|
-
attr_reader :logs
|
113
|
-
|
114
|
-
def initialize
|
115
|
-
@logs = []
|
116
|
-
end
|
117
|
-
|
118
|
-
def debug
|
119
|
-
@logs << {debug: yield}
|
120
|
-
end
|
121
|
-
end.new
|
122
|
-
}
|
121
|
+
context "with instrumenter" do
|
122
|
+
let(:instrumenter) { Cassanity::Instrumenters::Memory.new }
|
123
123
|
|
124
124
|
subject {
|
125
125
|
described_class.new(required_arguments.merge({
|
126
126
|
argument_generators: argument_generators,
|
127
|
-
|
127
|
+
instrumenter: instrumenter,
|
128
128
|
}))
|
129
129
|
}
|
130
130
|
|
131
|
-
it "
|
131
|
+
it "instruments executed arguments" do
|
132
132
|
args = {
|
133
133
|
command: :foo,
|
134
134
|
arguments: {
|
@@ -138,9 +138,17 @@ describe Cassanity::Executors::CassandraCql do
|
|
138
138
|
|
139
139
|
subject.call(args)
|
140
140
|
|
141
|
-
|
142
|
-
|
143
|
-
|
141
|
+
event = instrumenter.events.last
|
142
|
+
event.should_not be_nil
|
143
|
+
event.name.should eq('cql.cassanity')
|
144
|
+
event.payload.should eq({
|
145
|
+
command: :foo,
|
146
|
+
generator: argument_generators[:foo],
|
147
|
+
arguments: {something: 'else'},
|
148
|
+
execute_arguments: ['mapped', {something: 'else'}],
|
149
|
+
transformer: Cassanity::Executors::CassandraCql::Mirror,
|
150
|
+
result: nil,
|
151
|
+
})
|
144
152
|
end
|
145
153
|
end
|
146
154
|
|
@@ -214,4 +222,12 @@ describe Cassanity::Executors::CassandraCql do
|
|
214
222
|
end
|
215
223
|
end
|
216
224
|
end
|
225
|
+
|
226
|
+
describe "#inspect" do
|
227
|
+
it "return representation" do
|
228
|
+
result = subject.inspect
|
229
|
+
result.should match(/#{described_class}/)
|
230
|
+
result.should match(/client=/)
|
231
|
+
end
|
232
|
+
end
|
217
233
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'helper'
|
2
|
+
require 'cassanity/instrumenters/memory'
|
3
|
+
|
4
|
+
describe Cassanity::Instrumenters::Memory do
|
5
|
+
describe "#initialize" do
|
6
|
+
it "sets events to empty array" do
|
7
|
+
instrumentor = described_class.new
|
8
|
+
instrumentor.events.should eq([])
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "#instrument" do
|
13
|
+
it "adds to events" do
|
14
|
+
instrumentor = described_class.new
|
15
|
+
name = 'user.signup'
|
16
|
+
payload = {:email => 'john@doe.com'}
|
17
|
+
block_result = :yielded
|
18
|
+
|
19
|
+
result = instrumentor.instrument(name, payload) { block_result }
|
20
|
+
result.should eq(block_result)
|
21
|
+
|
22
|
+
event = described_class::Event.new(name, payload, block_result)
|
23
|
+
instrumentor.events.should eq([event])
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'helper'
|
2
|
+
require 'cassanity/instrumenters/noop'
|
3
|
+
|
4
|
+
describe Cassanity::Instrumenters::Noop do
|
5
|
+
describe ".instrument" do
|
6
|
+
context "with name" do
|
7
|
+
it "yields block" do
|
8
|
+
yielded = false
|
9
|
+
described_class.instrument(:foo) { yielded = true }
|
10
|
+
yielded.should be_true
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
context "with name and payload" do
|
15
|
+
it "yields block" do
|
16
|
+
yielded = false
|
17
|
+
described_class.instrument(:foo, {:pay => :load}) { yielded = true }
|
18
|
+
yielded.should be_true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -212,7 +212,7 @@ describe Cassanity::Keyspace do
|
|
212
212
|
args = {something: 'else'}
|
213
213
|
executor.should_receive(:call).with({
|
214
214
|
command: :keyspace_create,
|
215
|
-
arguments: args.merge(
|
215
|
+
arguments: args.merge(keyspace_name: keyspace_name),
|
216
216
|
})
|
217
217
|
subject.create(args)
|
218
218
|
end
|
@@ -256,7 +256,7 @@ describe Cassanity::Keyspace do
|
|
256
256
|
args = {something: 'else'}
|
257
257
|
executor.should_receive(:call).with({
|
258
258
|
command: :keyspace_use,
|
259
|
-
arguments: args.merge(
|
259
|
+
arguments: args.merge(keyspace_name: keyspace_name),
|
260
260
|
})
|
261
261
|
subject.use(args)
|
262
262
|
end
|
@@ -267,9 +267,31 @@ describe Cassanity::Keyspace do
|
|
267
267
|
args = {something: 'else'}
|
268
268
|
executor.should_receive(:call).with({
|
269
269
|
command: :keyspace_drop,
|
270
|
-
arguments: args.merge(
|
270
|
+
arguments: args.merge(keyspace_name: keyspace_name),
|
271
271
|
})
|
272
272
|
subject.drop(args)
|
273
273
|
end
|
274
274
|
end
|
275
|
+
|
276
|
+
describe "#batch" do
|
277
|
+
it "sends command and arguments, including :keyspace_name, to executor" do
|
278
|
+
args = {
|
279
|
+
keyspace_name: subject.name,
|
280
|
+
modifications: [
|
281
|
+
[:insert, data: {id: '1', name: 'GitHub'}],
|
282
|
+
]
|
283
|
+
}
|
284
|
+
executor.should_receive(:call).with({
|
285
|
+
command: :batch,
|
286
|
+
arguments: args,
|
287
|
+
})
|
288
|
+
subject.batch(args)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
describe "#inspect" do
|
293
|
+
it "return representation" do
|
294
|
+
subject.inspect.should eq("#<Cassanity::Keyspace:#{subject.object_id} name=\"analytics\">")
|
295
|
+
end
|
296
|
+
end
|
275
297
|
end
|
@@ -2,6 +2,10 @@ require 'helper'
|
|
2
2
|
require 'cassanity/operator'
|
3
3
|
|
4
4
|
describe Cassanity::Operator do
|
5
|
+
subject {
|
6
|
+
described_class.new(:<, 5)
|
7
|
+
}
|
8
|
+
|
5
9
|
describe "self named helper method" do
|
6
10
|
it "returns instance" do
|
7
11
|
Cassanity::Operator(:<, 5).should eq(described_class.new(:<, 5))
|
@@ -55,4 +59,10 @@ describe Cassanity::Operator do
|
|
55
59
|
describe "#==" do
|
56
60
|
include_examples "operator equality", :==
|
57
61
|
end
|
62
|
+
|
63
|
+
describe "#inspect" do
|
64
|
+
it "return representation" do
|
65
|
+
subject.inspect.should eq("#<Cassanity::Operator:#{subject.object_id} symbol=:<, value=5>")
|
66
|
+
end
|
67
|
+
end
|
58
68
|
end
|
@@ -115,4 +115,10 @@ describe Cassanity::Schema do
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
118
|
+
|
119
|
+
describe "#inspect" do
|
120
|
+
it "return representation" do
|
121
|
+
subject.inspect.should eq("#<Cassanity::Schema:#{subject.object_id} primary_keys=[:id], columns={:id=>:text, :name=>:text}, with={}>")
|
122
|
+
end
|
123
|
+
end
|
118
124
|
end
|
data/spec/unit/cassanity_spec.rb
CHANGED
@@ -120,4 +120,10 @@ describe Cassanity do
|
|
120
120
|
Cassanity.decrement.should eq(Cassanity::Decrement.new(1))
|
121
121
|
end
|
122
122
|
end
|
123
|
+
|
124
|
+
describe ".range" do
|
125
|
+
it "returns increment instance" do
|
126
|
+
Cassanity.range(1, 5).should eq(Cassanity::Range.new(1, 5))
|
127
|
+
end
|
128
|
+
end
|
123
129
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassanity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cassandra-cql
|
@@ -74,12 +74,16 @@ files:
|
|
74
74
|
- lib/cassanity/argument_generators/using_clause.rb
|
75
75
|
- lib/cassanity/argument_generators/where_clause.rb
|
76
76
|
- lib/cassanity/argument_generators/with_clause.rb
|
77
|
+
- lib/cassanity/client.rb
|
77
78
|
- lib/cassanity/column_family.rb
|
78
79
|
- lib/cassanity/connection.rb
|
79
80
|
- lib/cassanity/decrement.rb
|
80
81
|
- lib/cassanity/error.rb
|
81
82
|
- lib/cassanity/executors/cassandra_cql.rb
|
82
83
|
- lib/cassanity/increment.rb
|
84
|
+
- lib/cassanity/instrumentation/log_subscriber.rb
|
85
|
+
- lib/cassanity/instrumenters/memory.rb
|
86
|
+
- lib/cassanity/instrumenters/noop.rb
|
83
87
|
- lib/cassanity/keyspace.rb
|
84
88
|
- lib/cassanity/operator.rb
|
85
89
|
- lib/cassanity/operators/eq.rb
|
@@ -87,6 +91,7 @@ files:
|
|
87
91
|
- lib/cassanity/operators/gte.rb
|
88
92
|
- lib/cassanity/operators/lt.rb
|
89
93
|
- lib/cassanity/operators/lte.rb
|
94
|
+
- lib/cassanity/range.rb
|
90
95
|
- lib/cassanity/result_transformers/mirror.rb
|
91
96
|
- lib/cassanity/result_transformers/result_to_array.rb
|
92
97
|
- lib/cassanity/schema.rb
|
@@ -118,12 +123,15 @@ files:
|
|
118
123
|
- spec/unit/cassanity/argument_generators/using_clause_spec.rb
|
119
124
|
- spec/unit/cassanity/argument_generators/where_clause_spec.rb
|
120
125
|
- spec/unit/cassanity/argument_generators/with_clause_spec.rb
|
126
|
+
- spec/unit/cassanity/client_spec.rb
|
121
127
|
- spec/unit/cassanity/column_family_spec.rb
|
122
128
|
- spec/unit/cassanity/connection_spec.rb
|
123
129
|
- spec/unit/cassanity/decrement_spec.rb
|
124
130
|
- spec/unit/cassanity/error_spec.rb
|
125
131
|
- spec/unit/cassanity/executors/cassandra_cql_spec.rb
|
126
132
|
- spec/unit/cassanity/increment_spec.rb
|
133
|
+
- spec/unit/cassanity/instrumentors/memory_spec.rb
|
134
|
+
- spec/unit/cassanity/instrumentors/noop_spec.rb
|
127
135
|
- spec/unit/cassanity/keyspace_spec.rb
|
128
136
|
- spec/unit/cassanity/operator_spec.rb
|
129
137
|
- spec/unit/cassanity/operators/eq_spec.rb
|
@@ -149,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
157
|
version: '0'
|
150
158
|
segments:
|
151
159
|
- 0
|
152
|
-
hash:
|
160
|
+
hash: 3992273312347222416
|
153
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
162
|
none: false
|
155
163
|
requirements:
|
@@ -158,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
166
|
version: '0'
|
159
167
|
segments:
|
160
168
|
- 0
|
161
|
-
hash:
|
169
|
+
hash: 3992273312347222416
|
162
170
|
requirements: []
|
163
171
|
rubyforge_project:
|
164
172
|
rubygems_version: 1.8.23
|
@@ -194,12 +202,15 @@ test_files:
|
|
194
202
|
- spec/unit/cassanity/argument_generators/using_clause_spec.rb
|
195
203
|
- spec/unit/cassanity/argument_generators/where_clause_spec.rb
|
196
204
|
- spec/unit/cassanity/argument_generators/with_clause_spec.rb
|
205
|
+
- spec/unit/cassanity/client_spec.rb
|
197
206
|
- spec/unit/cassanity/column_family_spec.rb
|
198
207
|
- spec/unit/cassanity/connection_spec.rb
|
199
208
|
- spec/unit/cassanity/decrement_spec.rb
|
200
209
|
- spec/unit/cassanity/error_spec.rb
|
201
210
|
- spec/unit/cassanity/executors/cassandra_cql_spec.rb
|
202
211
|
- spec/unit/cassanity/increment_spec.rb
|
212
|
+
- spec/unit/cassanity/instrumentors/memory_spec.rb
|
213
|
+
- spec/unit/cassanity/instrumentors/noop_spec.rb
|
203
214
|
- spec/unit/cassanity/keyspace_spec.rb
|
204
215
|
- spec/unit/cassanity/operator_spec.rb
|
205
216
|
- spec/unit/cassanity/operators/eq_spec.rb
|