cassandra_mocks 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +2 -2
- data/lib/cassandra_mocks/table.rb +10 -10
- data/lib/cassandra_mocks.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c063a1f6bef33dc9148256cfd940ed22beac02d
|
4
|
+
data.tar.gz: c21076920e07c9eef84b5fb1bc27dbeae2e3f50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34614c002d291f058af84a5391bcfa779e2ede158e390da826feb63ee87bb658805e94d1751953e5b0c651ab74fe6a0384552447ae57e392d729cfb28c4d4e09
|
7
|
+
data.tar.gz: b07c0efd1a83aaf4e5c1ff8ad01342db29f5dea130d944ae3f94fa4738d86b4cadf7f3146daaefdf5cbffe6e13d2ad0ac1b2a841f608c83dabd5ac88e52b4e8f
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2015 Thomas RM Rogers
|
2
2
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
you may not use this file except in compliance with the License.
|
@@ -10,4 +10,4 @@ Unless required by applicable law or agreed to in writing, software
|
|
10
10
|
distributed under the License is distributed on an "AS IS" BASIS,
|
11
11
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
12
|
See the License for the specific language governing permissions and
|
13
|
-
limitations under the License.
|
13
|
+
limitations under the License.
|
@@ -88,24 +88,24 @@ module Cassandra
|
|
88
88
|
end
|
89
89
|
|
90
90
|
if value
|
91
|
-
case column.type
|
92
|
-
when
|
91
|
+
case column.type.to_sym
|
92
|
+
when :double
|
93
93
|
raise_unless_valid_type(column_name, Float, value)
|
94
|
-
when
|
94
|
+
when :string
|
95
95
|
raise_unless_valid_type(column_name, String, value)
|
96
|
-
when
|
96
|
+
when :text
|
97
97
|
raise_unless_valid_type(column_name, String, value)
|
98
|
-
when
|
98
|
+
when :varchar
|
99
99
|
raise_unless_valid_type(column_name, String, value)
|
100
|
-
when
|
100
|
+
when :blob
|
101
101
|
raise_unless_valid_type(column_name, String, value)
|
102
|
-
when
|
102
|
+
when :int
|
103
103
|
raise_unless_valid_type(column_name, Fixnum, value)
|
104
|
-
when
|
104
|
+
when :uuid
|
105
105
|
raise_unless_valid_type(column_name, Cassandra::Uuid, value)
|
106
|
-
when
|
106
|
+
when :timeuuid
|
107
107
|
raise_unless_valid_type(column_name, Cassandra::TimeUuid, value)
|
108
|
-
when
|
108
|
+
when :timestamp
|
109
109
|
raise_unless_valid_type(column_name, Time, value)
|
110
110
|
end
|
111
111
|
end
|
data/lib/cassandra_mocks.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassandra_mocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas RM Rogers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cassandra-driver
|