cequel-migrations-rails 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Cequel
3
3
  attr_reader :db
4
4
 
5
5
  def initialize
6
- @db = CassandraCQL::Database.new(servers, { :keyspace => self.class.cequel_env_conf['keyspace'] })
6
+ @db = CassandraCQL::Database.new(servers, { :keyspace => self.class.cequel_env_conf['keyspace'] }, thrift_options)
7
7
  end
8
8
 
9
9
  def execute(cql_string)
@@ -18,5 +18,13 @@ module Cequel
18
18
  def servers
19
19
  self.class.cequel_env_conf['hosts'] || self.class.cequel_env_conf['host']
20
20
  end
21
+
22
+ def thrift_options
23
+ if self.class.cequel_env_conf['thrift']
24
+ return self.class.cequel_env_conf['thrift'].inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
25
+ else
26
+ return {}
27
+ end
28
+ end
21
29
  end
22
30
  end
@@ -1,7 +1,7 @@
1
1
  module Cequel
2
2
  module Migrations
3
3
  module Rails
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cequel-migrations-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-10 00:00:00.000000000 Z
12
+ date: 2013-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shearwater