cassie 1.1.2 → 1.1.4

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: 2dec8906d195a23051dc2070c00d3828386822ea
4
- data.tar.gz: 3e266d1a536b315377d42e8cb4ce182e37e56348
3
+ metadata.gz: bdd35bea404c01174b5739820be2ee47a1de1169
4
+ data.tar.gz: ba97bb6f99455c2dddee38da5a4eac5cd712193f
5
5
  SHA512:
6
- metadata.gz: 6f8ae6ddfe99989ee0a5eaef5522314e70445d47180fb848fb45389919590472d236183cec548eaa8b0fca01c23ed4dd35dcb8a319b093bbba801b3715b255a9
7
- data.tar.gz: 86c0154c8915532481d97a4518f1474364a021e9e3b4de2cfcc82633008003de497e3f5f48ef1d324b09fdd05b47708d39ecfb1b6635a102617924b92ccdd03f
6
+ metadata.gz: 7db6b00ef94fb93a629ab2ec43b715056ba783bfd2227e7ef28a421b5414cf8613f323ea9ce8cde4638e756eeb96ff42d36317e8fcfea3a7d7d456902889264a
7
+ data.tar.gz: 013c2a8b413991c91bfd9ef9fe45445088a4ed470f7611f40ab5b0890bbe2fa5115ec93c7a4474828c48432eda620113365ce5ef11154d68cf0178a7d5682acd
@@ -10,5 +10,10 @@ module Cassie::Schema
10
10
  DROP KEYSPACE IF EXISTS #{keyspace};
11
11
  )
12
12
  end
13
+
14
+ def execute(opts={})
15
+ opts[:timeout] ||= 10
16
+ super(opts)
17
+ end
13
18
  end
14
19
  end
@@ -54,16 +54,18 @@ module Cassie::Statements
54
54
  end
55
55
 
56
56
  # Executes the statment and populates result
57
+ # @param [Hash{Symbol => Object}] cassandra_driver execution options
57
58
  # @return [Boolean] indicating a successful execution or not
58
- def execute
59
- @result = result_class.new(session.execute(statement, execution_options), result_opts)
59
+ def execute(opts={})
60
+ @result = result_class.new(session.execute(statement, execution_options.merge(opts)), result_opts)
60
61
  result.success?
61
62
  end
62
63
 
63
64
  # Same as {#execute}. Raises if not succesfull.
65
+ # @param [Hash{Symbol => Object}] cassandra_driver execution options
64
66
  # @return [Boolean] true if sucessful
65
67
  # @raise [Cassie::Statements::ExecutionError] if the result was not sucessful, see {Cassie::Statements::Results::Core#success?}
66
- def execute!
68
+ def execute!(opts={})
67
69
  execute || (raise Cassie::Statements::ExecutionError.new(result))
68
70
  end
69
71
 
@@ -13,7 +13,7 @@ module Cassie::Statements::Execution
13
13
  end
14
14
  end
15
15
 
16
- def execute
16
+ def execute(*args)
17
17
  super || run_callbacks(:failure)
18
18
  end
19
19
  end
@@ -1,7 +1,7 @@
1
1
  module Cassie::Statements::Execution
2
2
  module Instrumentation
3
3
 
4
- def execute
4
+ def execute(*args)
5
5
  Cassie.instrumenter.instrument("cassie.cql.execution") do |payload|
6
6
  execution_val = super #execution populates #result
7
7
 
@@ -29,7 +29,7 @@ module Cassie::Statements::Execution
29
29
  end
30
30
  end
31
31
 
32
- def execute
32
+ def execute(*args)
33
33
  success = super
34
34
  if success && partition_linker?
35
35
  @result = build_partition_linker.link
@@ -6,14 +6,14 @@ module Cassie::Statements::Execution
6
6
  @result_class = Cassie::Statements::Results::PeekingResult
7
7
  end
8
8
 
9
- def execute
9
+ def execute(*args)
10
10
  assert_limit
11
11
  @unpeeked_limit = limit
12
12
  with_limit(limit + 1) do
13
13
  super
14
14
  end
15
15
  end
16
-
16
+
17
17
  def unpeeked_limit
18
18
  @unpeeked_limit if defined?(@unpeeked_limit)
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Cassie
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
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.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Prothro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cassandra-driver