cassandro 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gems +1 -1
- data/.gems-test +1 -0
- data/cassandro.gemspec +3 -3
- data/lib/cassandro/model.rb +3 -1
- metadata +26 -15
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MzliYzM5ODRjMDBhYzI0MGM2MWM2M2IxZGMzNDNkMmM2MWJhODg4OQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5b61ff491ab8fe4f4f3615342578f344a34023e4
|
4
|
+
data.tar.gz: cd1e2566aa833deb3ea6f3b7c722e3c2bb926b5b
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZWVkOGQ2YzhiYWFkMWJlODZkZDNmMjllYjlkYjY5ZDEzMWUxOTQwMTIxMmUw
|
11
|
-
ZmI3ZDgwNTAyYjA4Yjc3NjM1Mjk4OWU2OTc5YTY0MDA4YjVmYzE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
M2JjMTAzY2UzMGFjMmFlODA5NDk1N2I2MjQ1MzY2ZTNjYjFhMTE0MjExZWFj
|
14
|
-
N2M0OGQ4ZjQ3NzUwNThlMzliZWU3MmJmYTdlMDUwNTk4Yzk0NjVhOWQ3ZjZh
|
15
|
-
NDZlMzBlNGQ2MDM4ZTg0ODRjNWQyMTExYmVjNWQ1NzA1OGQ5MTA=
|
6
|
+
metadata.gz: 138f7d8766eaf823a08ed2afc1493be70f9f61ca124e5872dc012d424e3fdb185cdc91d5d2ddccc449021a7121e9b66038850549bef6677b6bdf321ee618530c
|
7
|
+
data.tar.gz: 16e22610344aa1e047a9431fdb176248a670a077398f454c731e9d839599e07637f5921f8aa23fbccd54683dcdf22d0d339e65e0b4db324d4f4a89607adb9395
|
data/.gems
CHANGED
@@ -1 +1 @@
|
|
1
|
-
cassandra-driver -v 1.0.0
|
1
|
+
cassandra-driver -v 1.0.0
|
data/.gems-test
CHANGED
data/cassandro.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "cassandro"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.2"
|
6
6
|
s.summary = "Ruby ORM for Apache Cassandra"
|
7
7
|
s.license = "MIT"
|
8
8
|
s.description = "Lightweight Apache Cassandra ORM for Ruby"
|
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["orazile@gmail.com", "leonardomateo@gmail.com"]
|
11
11
|
s.homepage = "https://github.com/tarolandia/cassandro"
|
12
12
|
s.require_paths = ["lib"]
|
13
|
-
s.add_dependency "cassandra-driver", '>= 1.0.0
|
14
|
-
s.add_development_dependency "protest", '~> 0.5.3'
|
13
|
+
s.add_dependency "cassandra-driver", '~> 1.0', '>= 1.0.0'
|
14
|
+
s.add_development_dependency "protest", '~> 0.5', '>= 0.5.3'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
end
|
data/lib/cassandro/model.rb
CHANGED
@@ -15,6 +15,8 @@ module Cassandro
|
|
15
15
|
send(:"#{att}=", val.to_a)
|
16
16
|
when "Cassandra::Uuid"
|
17
17
|
send(:"#{att}=", val.to_s)
|
18
|
+
when "Time"
|
19
|
+
send(:"#{att}=", DateTime.parse(val.to_s))
|
18
20
|
else
|
19
21
|
send(:"#{att}=", val)
|
20
22
|
end
|
@@ -307,7 +309,7 @@ module Cassandro
|
|
307
309
|
when :float
|
308
310
|
n_attrs << attrs[k].to_f
|
309
311
|
when :datetime
|
310
|
-
n_attrs << attrs[k].to_time
|
312
|
+
n_attrs << attrs[k].to_time
|
311
313
|
else
|
312
314
|
n_attrs << attrs[k]
|
313
315
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassandro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lautaro Orazi
|
@@ -9,34 +9,46 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cassandra-driver
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.0
|
20
|
+
version: '1.0'
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.0.0
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '1.0'
|
31
|
+
- - ">="
|
26
32
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.0.0
|
33
|
+
version: 1.0.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: protest
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.5'
|
41
|
+
- - ">="
|
33
42
|
- !ruby/object:Gem::Version
|
34
43
|
version: 0.5.3
|
35
44
|
type: :development
|
36
45
|
prerelease: false
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
38
47
|
requirements:
|
39
|
-
- - ~>
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.5'
|
51
|
+
- - ">="
|
40
52
|
- !ruby/object:Gem::Version
|
41
53
|
version: 0.5.3
|
42
54
|
description: Lightweight Apache Cassandra ORM for Ruby
|
@@ -47,9 +59,9 @@ executables: []
|
|
47
59
|
extensions: []
|
48
60
|
extra_rdoc_files: []
|
49
61
|
files:
|
50
|
-
- .gems
|
51
|
-
- .gems-test
|
52
|
-
- .gitignore
|
62
|
+
- ".gems"
|
63
|
+
- ".gems-test"
|
64
|
+
- ".gitignore"
|
53
65
|
- LICENSE
|
54
66
|
- README.md
|
55
67
|
- cassandro.gemspec
|
@@ -81,19 +93,18 @@ require_paths:
|
|
81
93
|
- lib
|
82
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
95
|
requirements:
|
84
|
-
- -
|
96
|
+
- - ">="
|
85
97
|
- !ruby/object:Gem::Version
|
86
98
|
version: '0'
|
87
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
100
|
requirements:
|
89
|
-
- -
|
101
|
+
- - ">="
|
90
102
|
- !ruby/object:Gem::Version
|
91
103
|
version: '0'
|
92
104
|
requirements: []
|
93
105
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.2.2
|
95
107
|
signing_key:
|
96
108
|
specification_version: 4
|
97
109
|
summary: Ruby ORM for Apache Cassandra
|
98
110
|
test_files: []
|
99
|
-
has_rdoc:
|