cassandra_mocks 0.0.9 → 0.0.11

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: 8e2d95f2fb8187c3115ac8fd3f59323d313ecc68
4
- data.tar.gz: 1e8626d1efa66a8dca995fbd96baa43bbedbb08a
3
+ metadata.gz: 8cb523dc3b2869ceefd46de81df08a5d365973e6
4
+ data.tar.gz: 82f0c845610d71441cc384c67707d18f2bc852a9
5
5
  SHA512:
6
- metadata.gz: aff5b44d199bbb4541ac9bcf415a4161e65be9ac21daeac50967d05c28ca07846de6b73f07ab534ed2dbf17037146f936c53cb90374c30f975676700498ea73a
7
- data.tar.gz: 4ea6949e26cc0d4ef665288ed2a0bbf0f0ceaa37afdc153aaca55902848738ad925f0301ea1745f751d718d7c21476af87558f8b79c48bc05645fa4a49f8c6e6
6
+ metadata.gz: 2a3068c7b8d64745076d5d868e30f5943ed09c48d51f1f7cff8184de3f41eaea6b48c5f0c12bdb86b2f7ddda7ed1a78b83eabd64d1d6e9d868b87572a41de22e
7
+ data.tar.gz: f15557480a35b6434e3793b387ec952abbe291ccc34e11d65e584a3580e742c4e30bd68a0801f64cd3dd896859ed47c60f642ec910984d20adad2315069c058e
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -135,7 +135,7 @@ module Cassandra
135
135
 
136
136
  next_token
137
137
  column_name = next_token.value
138
- column_type = next_token.value
138
+ column_type = next_token.value.to_sym
139
139
  primary_key = nil
140
140
  if next_token.primary?
141
141
  primary_key = [[column_name]]
@@ -146,6 +146,7 @@ module Cassandra
146
146
  {}
147
147
  else
148
148
  parenthesis_values(:rparen, :primary).each_slice(2).inject({}) do |memo, (name, type)|
149
+ type = type.to_sym if type
149
150
  memo.merge!(name => type)
150
151
  end
151
152
  end
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra_mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
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-28 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cassandra-driver
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  description: |-
@@ -62,7 +62,6 @@ files:
62
62
  - lib/cassandra_mocks/statement/tokenizer.rb
63
63
  - lib/cassandra_mocks/table.rb
64
64
  - lib/cassandra_mocks/uuid.rb
65
- - lib/cassandra_model/mock_connection.rb
66
65
  homepage: https://www.github.com/thomasrogers03/cassandra_mocks
67
66
  licenses:
68
67
  - Apache License 2.0
@@ -73,12 +72,12 @@ require_paths:
73
72
  - lib
74
73
  required_ruby_version: !ruby/object:Gem::Requirement
75
74
  requirements:
76
- - - ">="
75
+ - - '>='
77
76
  - !ruby/object:Gem::Version
78
77
  version: '0'
79
78
  required_rubygems_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
- - - ">="
80
+ - - '>='
82
81
  - !ruby/object:Gem::Version
83
82
  version: '0'
84
83
  requirements: []
@@ -1,15 +0,0 @@
1
- module CassandraModel
2
- class RawConnection
3
- def cluster
4
- @cluster ||= begin
5
- Cassandra::Mocks::Cluster.new.tap do |cluster|
6
- cluster.add_keyspace(config[:keyspace])
7
- end
8
- end
9
- end
10
-
11
- def session
12
- @session ||= Cassandra::Mocks::Session.new(config[:keyspace], cluster)
13
- end
14
- end
15
- end