cassandra_mocks 0.0.12 → 0.0.13

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: 623443785dfffb8a20250c09068ea3b80c8d1c00
4
- data.tar.gz: e0d116e27c72bf7cb4908f48f54140885e6da765
3
+ metadata.gz: 7c063a1f6bef33dc9148256cfd940ed22beac02d
4
+ data.tar.gz: c21076920e07c9eef84b5fb1bc27dbeae2e3f50a
5
5
  SHA512:
6
- metadata.gz: 2a50d7e3a7fa27076eb478be32e485219b50b50625208d499ad5c1212ff9d09c4988e84408acedf4152efcbb304785562de82fd059107de71bf7a7fa79beb08f
7
- data.tar.gz: 93c13f748a7c60267604ac6beb2a38b379a64e8c91050f1c581a977408d22995625c1a32cc0d6b3387aca8de7c855c3f67a6f13713ce3f9028cfabcb832fd644
6
+ metadata.gz: 34614c002d291f058af84a5391bcfa779e2ede158e390da826feb63ee87bb658805e94d1751953e5b0c651ab74fe6a0384552447ae57e392d729cfb28c4d4e09
7
+ data.tar.gz: b07c0efd1a83aaf4e5c1ff8ad01342db29f5dea130d944ae3f94fa4738d86b4cadf7f3146daaefdf5cbffe6e13d2ad0ac1b2a841f608c83dabd5ac88e52b4e8f
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014-2015 Thomas RM Rogers
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 'double'
91
+ case column.type.to_sym
92
+ when :double
93
93
  raise_unless_valid_type(column_name, Float, value)
94
- when 'string'
94
+ when :string
95
95
  raise_unless_valid_type(column_name, String, value)
96
- when 'text'
96
+ when :text
97
97
  raise_unless_valid_type(column_name, String, value)
98
- when 'varchar'
98
+ when :varchar
99
99
  raise_unless_valid_type(column_name, String, value)
100
- when 'blob'
100
+ when :blob
101
101
  raise_unless_valid_type(column_name, String, value)
102
- when 'int'
102
+ when :int
103
103
  raise_unless_valid_type(column_name, Fixnum, value)
104
- when 'uuid'
104
+ when :uuid
105
105
  raise_unless_valid_type(column_name, Cassandra::Uuid, value)
106
- when 'timeuuid'
106
+ when :timeuuid
107
107
  raise_unless_valid_type(column_name, Cassandra::TimeUuid, value)
108
- when 'timestamp'
108
+ when :timestamp
109
109
  raise_unless_valid_type(column_name, Time, value)
110
110
  end
111
111
  end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright 2014-2015 Thomas RM Rogers
2
+ # Copyright 2015 Thomas RM Rogers
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
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.12
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: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cassandra-driver