cassanity 0.6.0.beta4 → 0.6.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +2 -0
- data/lib/cassanity/executors/cql_rb.rb +7 -3
- data/lib/cassanity/version.rb +1 -1
- metadata +9 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7f0756deb7322a0613027e49cf30ec6d37f9643d
|
4
|
+
data.tar.gz: c7f1f8679988d87049daeb929e657223ea2747f0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d68305b3a2395732a858d158212234667b8b2cf16353dde999d6774e7e214ac6e0be240416eb9b9b649d46be53bba9f7bd89f7e6d7b7f5fa3b8d70af84ed5076
|
7
|
+
data.tar.gz: edf5a6e070675b6994f9f31e5a0c746e93216a584409ae0856f4a26266210b5122de97c81f473946ff17ae20f72e81f0f3bebf3e00dcb499f5993736ab1bbd85
|
data/.travis.yml
CHANGED
@@ -148,6 +148,7 @@ module Cassanity
|
|
148
148
|
|
149
149
|
arguments = args[:arguments]
|
150
150
|
|
151
|
+
send_use_command = false
|
151
152
|
if arguments
|
152
153
|
# TODO: As a temporary measure, we remove this deprecated option
|
153
154
|
# while we have time to update each gem (e.g., adapter-cassanity)
|
@@ -165,9 +166,9 @@ module Cassanity
|
|
165
166
|
payload[:column_family_name] = column_family_name
|
166
167
|
end
|
167
168
|
|
168
|
-
# Select keyspace before query
|
169
|
+
# Select the correct keyspace before executing the CQL query
|
169
170
|
if command != :keyspace_create && (keyspace_name = arguments[:keyspace_name])
|
170
|
-
|
171
|
+
send_use_command = true
|
171
172
|
end
|
172
173
|
end
|
173
174
|
|
@@ -177,7 +178,10 @@ module Cassanity
|
|
177
178
|
payload[:cql_variables] = variables
|
178
179
|
|
179
180
|
statement = Cassanity::Statement.new(cql)
|
180
|
-
result = @retry_strategy.execute(payload)
|
181
|
+
result = @retry_strategy.execute(payload) do
|
182
|
+
@driver.use(keyspace_name) if send_use_command
|
183
|
+
@driver.execute(statement.interpolate(variables))
|
184
|
+
end
|
181
185
|
|
182
186
|
transformer = @result_transformers.fetch(command, Mirror)
|
183
187
|
transformed_result = transformer.call(result, args[:transformer_arguments])
|
data/lib/cassanity/version.rb
CHANGED
metadata
CHANGED
@@ -1,42 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassanity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.6.0.beta5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Nunemaker
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: cql-rb
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.1'
|
22
|
-
- -
|
20
|
+
- - '>='
|
23
21
|
- !ruby/object:Gem::Version
|
24
22
|
version: 1.1.1
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
27
|
- - ~>
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: '1.1'
|
33
|
-
- -
|
30
|
+
- - '>='
|
34
31
|
- !ruby/object:Gem::Version
|
35
32
|
version: 1.1.1
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: simple_uuid
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
37
|
- - ~>
|
42
38
|
- !ruby/object:Gem::Version
|
@@ -44,7 +40,6 @@ dependencies:
|
|
44
40
|
type: :development
|
45
41
|
prerelease: false
|
46
42
|
version_requirements: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
43
|
requirements:
|
49
44
|
- - ~>
|
50
45
|
- !ruby/object:Gem::Version
|
@@ -205,30 +200,26 @@ files:
|
|
205
200
|
- spec/unit/cassanity_spec.rb
|
206
201
|
homepage: http://johnnunemaker.com/cassanity/
|
207
202
|
licenses: []
|
203
|
+
metadata: {}
|
208
204
|
post_install_message:
|
209
205
|
rdoc_options: []
|
210
206
|
require_paths:
|
211
207
|
- lib
|
212
208
|
required_ruby_version: !ruby/object:Gem::Requirement
|
213
|
-
none: false
|
214
209
|
requirements:
|
215
|
-
- -
|
210
|
+
- - '>='
|
216
211
|
- !ruby/object:Gem::Version
|
217
212
|
version: '0'
|
218
|
-
segments:
|
219
|
-
- 0
|
220
|
-
hash: -2788521586304756219
|
221
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
-
none: false
|
223
214
|
requirements:
|
224
|
-
- -
|
215
|
+
- - '>'
|
225
216
|
- !ruby/object:Gem::Version
|
226
217
|
version: 1.3.1
|
227
218
|
requirements: []
|
228
219
|
rubyforge_project:
|
229
|
-
rubygems_version:
|
220
|
+
rubygems_version: 2.0.14
|
230
221
|
signing_key:
|
231
|
-
specification_version:
|
222
|
+
specification_version: 4
|
232
223
|
summary: Layer of goodness on top of cassandra-cql so you do not have to write CQL
|
233
224
|
strings all over the place.
|
234
225
|
test_files:
|