cassanova 0.0.5 → 0.0.6
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/VERSION +1 -1
- data/cassanova.gemspec +3 -3
- data/lib/cassanova.rb +9 -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: de7b8f8d8481ccde380284109b3dd21a3df81d9e
|
|
4
|
+
data.tar.gz: 76f5ed0c05db616a4a1c724651f8094c322f1676
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f396482b551c118bf2a7fb2a6e72045f797bd521c0b0920ade6ee7641448d64607ec5cf23ac88af6eae8c53499335efbbe569300f285c1b9691bd85affc6e04
|
|
7
|
+
data.tar.gz: 1908aa3537d9f4bcf7b89e054d6a7bbadd85c1e60a0f1fa753ca398ba4efcd2b3b90b67dd4046bfee97cfefbb4f16f25e25decb5a9af67248e6553b84d566c2e
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
data/cassanova.gemspec
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: cassanova 0.0.
|
|
5
|
+
# stub: cassanova 0.0.6 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "cassanova"
|
|
9
|
-
s.version = "0.0.
|
|
9
|
+
s.version = "0.0.6"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.authors = ["Jagdeep Singh"]
|
|
13
|
-
s.date = "2014-12-
|
|
13
|
+
s.date = "2014-12-04"
|
|
14
14
|
s.description = "Use cassandra with rails by adding active record style methods using active model."
|
|
15
15
|
s.email = "jagdeepkh@gmail.com"
|
|
16
16
|
s.extra_rdoc_files = [
|
data/lib/cassanova.rb
CHANGED
|
@@ -159,7 +159,14 @@ module Cassanova
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
def all
|
|
162
|
-
|
|
162
|
+
results = Cassanova::Model.session.execute(compiled_query)
|
|
163
|
+
objs = Cassanova::Query.parse(results, table_name)
|
|
164
|
+
while results.last_page? == false
|
|
165
|
+
results = results.next_page
|
|
166
|
+
objs += Cassanova::Query.parse(results, table_name)
|
|
167
|
+
print "."
|
|
168
|
+
end
|
|
169
|
+
return objs
|
|
163
170
|
end
|
|
164
171
|
|
|
165
172
|
def count
|
|
@@ -168,6 +175,7 @@ module Cassanova
|
|
|
168
175
|
cq = cq.gsub(selects, "COUNT(*)")
|
|
169
176
|
Cassanova::Model.session.execute(cq).rows.first['count']
|
|
170
177
|
end
|
|
178
|
+
alias_method :length, :count
|
|
171
179
|
|
|
172
180
|
def destroy
|
|
173
181
|
cq = compiled_query
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cassanova
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jagdeep Singh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|