sessionm-cassandra_object 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,13 +21,15 @@ module CassandraObject
21
21
 
22
22
  Cassandra.new(spec[:keyspace], spec[:servers], spec[:thrift]).tap do |conn|
23
23
  conn.disable_node_auto_discovery! if spec[:disable_node_auto_discovery]
24
- if @@schema
25
- conn.instance_variable_set '@schema', @@schema
26
- else
27
- begin
28
- @@schema = conn.schema
29
- rescue CassandraThrift::InvalidRequestException => e
30
- # initially the schema doesn't exists
24
+ if spec[:cache_schema]
25
+ if @@schema
26
+ conn.instance_variable_set '@schema', @@schema
27
+ else
28
+ begin
29
+ @@schema = conn.schema
30
+ rescue CassandraThrift::InvalidRequestException => e
31
+ # initially the schema doesn't exists
32
+ end
31
33
  end
32
34
  end
33
35
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '2.4.4'
5
+ s.version = '2.4.5'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 4
8
- - 4
9
- version: 2.4.4
8
+ - 5
9
+ version: 2.4.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Koziarski