sessionm-cassandra_object 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,11 +23,13 @@ module CassandraObject
23
23
  replication_opts = {
24
24
  :strategy => 'org.apache.cassandra.locator.SimpleStrategy',
25
25
  :factor => 1,
26
- }.merge(options[:replication].symbolize_keys || {})
26
+ }.merge((options[:replication] || {}).symbolize_keys || {})
27
27
 
28
28
  opts = { :name => name.to_s,
29
29
  :strategy_class => replication_opts[:strategy],
30
- :replication_factor => replication_opts[:factor],
30
+ :strategy_options => {
31
+ 'replication_factor' => replication_opts[:factor].to_s,
32
+ },
31
33
  :cf_defs => [] }.merge(options)
32
34
 
33
35
  ks = Cassandra::Keyspace.new.with_fields(opts)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sessionm-cassandra_object'
5
- s.version = '2.3.0'
5
+ s.version = '2.3.1'
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: 2.3.0
4
+ version: 2.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-11-01 00:00:00.000000000 Z
14
+ date: 2012-11-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails