cassandra_migrations 0.2.1 → 0.2.2

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: 176ea1fc4dd207d821e6e128a4753582187eb49b
4
- data.tar.gz: ac4409ef8ccf0290e55c73c034991964ba47c2aa
3
+ metadata.gz: d089b09a2a03caa0cb2787d2de0e8d2f2db278bc
4
+ data.tar.gz: a1f2fbc186ff690aa33c58306f6d193c19fb3643
5
5
  SHA512:
6
- metadata.gz: 7b37cf578a202b2d26ee5e97de8b3ea6775792311d93f8b5baa8ccf39af98d17c3d6aae1dcb56d228c4ed27578898c03dabefa46db7596d0616d629a7ea210f8
7
- data.tar.gz: 150fb7344b9c8eb6eae4049fa502c230de30d30df13a73492e99b99084a76f1df210f28715610046ff3772c9ed5bc5a3e8a45b3c0d4d747e3578ecbdd6b0c150
6
+ metadata.gz: c2606317f233f502898569d15903ad5816b106e69cd1d29831677a8215bf38cc0d20bffe8fe4bb76df13619e2728ae796751b9b0246acd3039f469b7c9411ee3
7
+ data.tar.gz: 36bae513a0ae96563a2c989148baaa24c9d6bde62baba44fa0fcb03cd2f9a12f286dd37bfb3ba30b1b44c99e40059a6e34870a185faf171a99acbc7797ee42a9
@@ -109,7 +109,12 @@ module CassandraMigrations
109
109
  elsif value.is_a?(Hash)
110
110
  hash_to_cql(value, operation)
111
111
  else
112
- value.to_s
112
+ value = value.to_s
113
+ if value == ""
114
+ value = 'null'
115
+ else
116
+ value = value
117
+ end
113
118
  end
114
119
  end
115
120
 
@@ -34,7 +34,13 @@ end
34
34
 
35
35
  class Client
36
36
  def self.connect(options)
37
- @cluster = Cassandra.cluster(options)
37
+ if defined?(Spring)
38
+ Spring.after_fork do
39
+ @cluster = Cassandra.cluster(options)
40
+ end
41
+ else
42
+ @cluster = Cassandra.cluster(options)
43
+ end
38
44
  self.new(@cluster)
39
45
  end
40
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Gubert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-23 00:00:00.000000000 Z
12
+ date: 2015-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cassandra-driver
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.1
20
+ version: 2.1.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.1
27
+ version: 2.1.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement