cassanova 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/cassanova.gemspec +3 -3
- data/lib/cassanova.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3807c49429cc3a92a05750b7f6680bd54d06a738
|
4
|
+
data.tar.gz: 882b653f076c088938d26276d57ad115821a4187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7470d643ba26dbc172a1f4ab252bd642a897f13de40fac634a4febcf0e70b04a8e3a7c822a4206d837214405524ffb89ef5864c85050a609ba6a073acee40879
|
7
|
+
data.tar.gz: 4d9f8c7f93240b56940229fda55c31cb2712dd610a424ed9d5d176504c67d4130042b75a6da59a3a2deded8f719d11a14e64581da916ced3c8079670a4e2c09f
|
data/Rakefile
CHANGED
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.homepage = "http://github.com/jagdeep/cassanova"
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = %Q{Get cassandra to play nice with rails.}
|
21
|
-
gem.description = %Q{Use cassandra with rails adding active record style methods using active model.}
|
21
|
+
gem.description = %Q{Use cassandra with rails by adding active record style methods using active model.}
|
22
22
|
gem.email = "jagdeepkh@gmail.com"
|
23
23
|
gem.authors = ["Jagdeep Singh"]
|
24
24
|
# dependencies defined in Gemfile
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/cassanova.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.4 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.4"
|
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
13
|
s.date = "2014-12-01"
|
14
|
-
s.description = "Use cassandra with rails adding active record style methods using active model."
|
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 = [
|
17
17
|
"LICENSE.txt",
|
data/lib/cassanova.rb
CHANGED
@@ -68,7 +68,7 @@ module Cassanova
|
|
68
68
|
obj = self.new(data)
|
69
69
|
cols = obj.attributes.keys
|
70
70
|
vals = cols.map{|k| obj.send(k) }
|
71
|
-
query = "INSERT INTO
|
71
|
+
query = "INSERT INTO #{self.name.underscore.pluralize} (#{cols.join(', ')}) VALUES (#{vals.map{'?'}.join(', ')})"
|
72
72
|
query = Cassanova::Model.session.prepare(query)
|
73
73
|
Cassanova::Model.session.execute(*[query, vals].flatten)
|
74
74
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jagdeep Singh
|
@@ -108,8 +108,8 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: Use cassandra with rails adding active record style methods using
|
112
|
-
model.
|
111
|
+
description: Use cassandra with rails by adding active record style methods using
|
112
|
+
active model.
|
113
113
|
email: jagdeepkh@gmail.com
|
114
114
|
executables: []
|
115
115
|
extensions: []
|