quandl_cassandra 1.1.3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fbb24fa9c17d9297a69788b91e16f2bfe5d04ef
4
- data.tar.gz: fbd7d1d238a56ebcdecb6d520b30cc0dcbf5b011
3
+ metadata.gz: d0ea7008c85dfdf613b3c4a832caebb39612d9e5
4
+ data.tar.gz: 601fd551e63a0fe03f81717860856234e1de5ae5
5
5
  SHA512:
6
- metadata.gz: 53675199c920cb9fa40749cfcbb62bd5be28e53e2eb157ea748a8caab81e55371b4e89508263f792659c5048b068e6e1f424d25babd0b06de2256ebfb3d547c6
7
- data.tar.gz: d886dcb2fc3ae6517cd82366f6a33f405887cad03cf816d408c8e3496193670a9e419873b3c7d51af026b12c5ccf2a478d39db91fec3fe6470c99cc6e44f1f09
6
+ metadata.gz: 12f33f521644c7c2d46e407b7d9de0066b4c420a755bcf932b5e911f85fd0bed72124d91bd3c4c54d8120a597141464c878727aeea02a8c2600405f4ffe6366d
7
+ data.tar.gz: fee4eecf940a3eeceb6b82409a8c11f473b3822f9c30585188292991a3893839166d5118937ed93bc1a7771257ba7752db165d7ea77bd6a8878930ef46b45688
@@ -26,6 +26,8 @@ module Quandl::Cassandra::Base::Connection
26
26
  with_connection do |c|
27
27
  c.async.execute( statement, query_consistency )
28
28
  end
29
+ rescue Cql::QueryError => e
30
+ raise "#{e.class} #{e.message} '#{statement}'"
29
31
  end
30
32
 
31
33
  def execute(statement, qconsistency = nil)
@@ -33,6 +35,8 @@ module Quandl::Cassandra::Base::Connection
33
35
  with_connection do |c|
34
36
  c.execute( statement, qconsistency )
35
37
  end
38
+ rescue Cql::QueryError => e
39
+ raise "#{e.class} #{e.message} '#{statement}'"
36
40
  end
37
41
 
38
42
  def with_connection(&block)
@@ -9,6 +9,8 @@ module Quandl::Cassandra::Batch::Execute
9
9
  # end
10
10
  def execute(rows, &block)
11
11
  execute_in_batches(rows, &block)
12
+ rescue => e
13
+ raise "#{e.class} #{e.message} '#{block.call(*rows.first)}'"
12
14
  end
13
15
 
14
16
  def batch_size
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Cassandra
3
- VERSION = '1.1.3'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
 
29
29
  s.add_runtime_dependency "facter", "~> 1.7.3"
30
30
  s.add_runtime_dependency "scope_composer", "~> 0.4"
31
- s.add_runtime_dependency "quandl_data", "~> 1.1"
31
+ s.add_runtime_dependency "quandl_data", "~> 1.2"
32
32
  s.add_runtime_dependency 'cql-rb', '~> 1.1'
33
33
 
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_cassandra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: '1.1'
145
+ version: '1.2'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ~>
151
151
  - !ruby/object:Gem::Version
152
- version: '1.1'
152
+ version: '1.2'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: cql-rb
155
155
  requirement: !ruby/object:Gem::Requirement