cequel 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -0
- data/Rakefile +1 -1
- data/Vagrantfile +3 -3
- data/lib/cequel/type.rb +4 -4
- data/lib/cequel/version.rb +1 -1
- data/spec/examples/type_spec.rb +1 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a43ac7eabfd0c08bc6351877501405dc45a0f0ee
|
4
|
+
data.tar.gz: 9e926cb705192f68bfe3fb47cdb406de9c6829ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef9d853eab6fa701d06560fb903d410b7539434b0823fca9077db8e74c13301c86dded17fafd148c43c0825e74c89ff0578a833c17f5ab7ff29a9ee7b40b2f3e
|
7
|
+
data.tar.gz: 1d979817ae7d022a2ea0fa96a7f64c232cf602a62f4561a66edd5aa17829b664f758bc5414da66abc0586a3228c440c9a58348bf1bc14501ac1b73a3a185f67a
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -564,6 +564,11 @@ Cequel was written by:
|
|
564
564
|
* Kei Kusakari
|
565
565
|
* Oleh Novosad
|
566
566
|
* John Smart
|
567
|
+
* Angelo Lakra
|
568
|
+
* Olivier Lance
|
569
|
+
* Tomohiro Nishimura
|
570
|
+
* Masaki Takahashi
|
571
|
+
* G Gordon Worley III
|
567
572
|
|
568
573
|
Special thanks to [Brewster](https://www.brewster.com), which supported the 0.x
|
569
574
|
releases of Cequel.
|
data/Rakefile
CHANGED
data/Vagrantfile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- mode: ruby -*-
|
2
2
|
# vi: set ft=ruby :
|
3
|
+
require 'net/http'
|
3
4
|
|
4
5
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
6
|
VAGRANTFILE_API_VERSION = "2"
|
@@ -136,9 +137,8 @@ exec /opt/apache-cassandra-$1/bin/cassandra" > /etc/init/cassandra.conf
|
|
136
137
|
service cassandra start
|
137
138
|
SH
|
138
139
|
|
139
|
-
|
140
|
-
|
141
|
-
(0..19).map { |p| "1.2.#{p}" }
|
140
|
+
listing = Net::HTTP.get(URI.parse("http://archive.apache.org/dist/cassandra/"))
|
141
|
+
versions = listing.scan(%r(href="(\d+\.\d+\.\d+)/")).map(&:first).grep(/^(1\.2\.|2\.)/)
|
142
142
|
versions.each do |version|
|
143
143
|
java_version = version =~ /^1/ ? '6' : '7'
|
144
144
|
config.vm.define version do |machine|
|
data/lib/cequel/type.rb
CHANGED
@@ -84,10 +84,10 @@ module Cequel
|
|
84
84
|
return value.map { |element| quote(element) }.join(',')
|
85
85
|
end
|
86
86
|
case value
|
87
|
-
when ::
|
88
|
-
|
89
|
-
when
|
90
|
-
value.
|
87
|
+
when Time, ActiveSupport::TimeWithZone
|
88
|
+
(value.to_r * 1000).round.to_s
|
89
|
+
when DateTime
|
90
|
+
quote(value.utc.to_time)
|
91
91
|
when Date
|
92
92
|
quote(Time.gm(value.year, value.month, value.day))
|
93
93
|
when Numeric, true, false, Cql::Uuid
|
data/lib/cequel/version.rb
CHANGED
data/spec/examples/type_spec.rb
CHANGED
@@ -216,6 +216,7 @@ describe Cequel::Type do
|
|
216
216
|
[true, 'true'],
|
217
217
|
[false, 'false'],
|
218
218
|
[Time.at(1401323181, 381000), '1401323181381'],
|
219
|
+
[Time.at(1401323181, 381999), '1401323181382'],
|
219
220
|
[Time.at(1401323181, 381000).in_time_zone, '1401323181381'],
|
220
221
|
[Date.parse('2014-05-28'), "1401235200000"],
|
221
222
|
[Time.at(1401323181, 381000).to_datetime, '1401323181381'],
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mat Brown
|
@@ -17,10 +17,15 @@ authors:
|
|
17
17
|
- Kei Kusakari
|
18
18
|
- Oleh Novosad
|
19
19
|
- John Smart
|
20
|
+
- Angelo Lakra
|
21
|
+
- Olivier Lance
|
22
|
+
- Tomohiro Nishimura
|
23
|
+
- Masaki Takahashi
|
24
|
+
- G Gordon Worley III
|
20
25
|
autorequire:
|
21
26
|
bindir: bin
|
22
27
|
cert_chain: []
|
23
|
-
date: 2014-10-
|
28
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
24
29
|
dependencies:
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: activemodel
|