sessionm-cassandra_object 4.0.21 → 4.0.22

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: 7e6411a0d7497fefb496558862cb496f5b93b195
4
- data.tar.gz: 8d912bcda3fd2d3ce6d7c221b93fd45658911001
3
+ metadata.gz: 4c6b1adc45f37b9169f14ed31f81c709ce12a554
4
+ data.tar.gz: 6fda0cf21694e605f856ed623bd52b47562e5015
5
5
  SHA512:
6
- metadata.gz: fabe4712b9f7bb4b7e0d20b2391712d1dc853d25a3ad8de2780aca83ebc787cd36caadb0012b50e56a28f48f8917fe46861e30def68d53fcc8681557472d1fc2
7
- data.tar.gz: d2524d3ba3915594147c974ae6bd1352dcc90389a5ec96940b0d2dbd5bbf2a6ed18d35deb22dd42f16146ad35420946fdbcdd9ad3468d17252fe4e4b81154685
6
+ metadata.gz: 6f8bed11092790fb5652bcf796cf52cd9aee39d14aa700ab1dbabeae69dd3ed36535d0e2fc9598f9d24b4cbd380906584850b227c98d5e78e4898cc36cc2f90d
7
+ data.tar.gz: f734123a6a49d94544e63b671f025293bec77a988feafd8a6117fe588cf1220e73144c5088ac6ce9c1a3f50a0acae0d9a895f0d15d510a9097a85449ce8eb711
@@ -81,12 +81,16 @@ module CassandraObject
81
81
  session.close
82
82
  end
83
83
 
84
- def execute(*args)
85
- session.execute *args
84
+ def execute(query, options={})
85
+ ActiveSupport::Notifications.instrument('query.cassandra', query: query, options: options, async: false) do
86
+ session.execute query, options
87
+ end
86
88
  end
87
89
 
88
- def execute_async(*args)
89
- session.execute_async *args
90
+ def execute_async(query, options={})
91
+ ActiveSupport::Notifications.instrument('query.cassandra', query: query, options: options, async: true) do
92
+ session.execute_async query, options
93
+ end
90
94
  end
91
95
 
92
96
  def insert(column_family, key, values, opts=nil)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '4.0.21'
5
+ s.version = '4.0.22'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sessionm-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.21
4
+ version: 4.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-13 00:00:00.000000000 Z
12
+ date: 2017-04-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Cassandra ActiveModel
15
15
  email: doug@sessionm.com