cassie 1.2.0.pre1 → 1.2.1.pre.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9acec88b271d7fa02336217e72cb362093533263
|
4
|
+
data.tar.gz: c9e6a5ea2b56c4bc3c014ce30b759dbd14ea7e97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ae6281ee475557eeb4b6f27d4e18910264926072cb0a08848d8c2e5edefc0bf35b4281ba8e686022267e071a4925bddfea46bf7dec7e11916b22edb47f4675
|
7
|
+
data.tar.gz: cc4b4db0f492cd005223caceedd1efd62d7e9fa1c1bfb575be9716cf1e4c5cc3998ace86d453bc96bec90520bf48bdf05c6a170d75b66d8619fe418e8d9a0ff8
|
@@ -56,8 +56,14 @@ module Cassie::ConnectionHandler
|
|
56
56
|
# initialized the cluster while
|
57
57
|
# we waited on lock to be available
|
58
58
|
# e.g. this ||= is critical
|
59
|
-
@cluster ||= Cassandra.cluster(configuration.try(:symbolize_keys))
|
59
|
+
@cluster ||= Cassandra.cluster(default_configuration.merge(configuration.try(:symbolize_keys) || {}))
|
60
60
|
end
|
61
61
|
end
|
62
|
+
|
63
|
+
def default_configuration
|
64
|
+
{
|
65
|
+
logger: Cassie.logger
|
66
|
+
}
|
67
|
+
end
|
62
68
|
end
|
63
69
|
end
|
@@ -3,8 +3,12 @@ module Cassie::Statements::Execution
|
|
3
3
|
|
4
4
|
def execute(*args)
|
5
5
|
Cassie.instrumenter.instrument("cassie.cql.execution") do |payload|
|
6
|
+
# If an exception happens during instrumentation
|
7
|
+
# the payload will have a key :exception with an
|
8
|
+
# array of two elements as value: a string with
|
9
|
+
# the name of the exception class, and the exception message.
|
10
|
+
# The :exception_object key of the payload will have the exception itself as the value.
|
6
11
|
execution_val = super #execution populates #result
|
7
|
-
|
8
12
|
payload[:execution_info] = result.execution_info if result.respond_to?(:execution_info)
|
9
13
|
execution_val
|
10
14
|
end
|
@@ -13,18 +13,22 @@ module Cassie::Statements::Statement
|
|
13
13
|
@data[key] = value
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
16
17
|
def read(key)
|
17
18
|
synchronize do
|
18
19
|
data[key]
|
19
20
|
end
|
20
21
|
end
|
22
|
+
|
21
23
|
def fetch(key)
|
22
24
|
return read(key) if data.has_key?(key)
|
23
25
|
write(key, yield) if block_given?
|
24
26
|
end
|
27
|
+
|
25
28
|
def clear
|
26
29
|
@data = {}
|
27
30
|
end
|
31
|
+
|
28
32
|
def close
|
29
33
|
clear
|
30
34
|
end
|
data/lib/cassie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Prothro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cassandra-driver
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
version: 1.3.1
|
275
275
|
requirements: []
|
276
276
|
rubyforge_project:
|
277
|
-
rubygems_version: 2.
|
277
|
+
rubygems_version: 2.6.12
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Apache Cassandra application support
|