cassanova 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01b79bf99809eaff945b6f717811aa4d5fa499e4
4
- data.tar.gz: 48022928ff895fcc16126a97e008e96d618422ad
3
+ metadata.gz: 3807c49429cc3a92a05750b7f6680bd54d06a738
4
+ data.tar.gz: 882b653f076c088938d26276d57ad115821a4187
5
5
  SHA512:
6
- metadata.gz: 1ce2ee1eb03a9502e19e6caf566dfbd73a621550c3e3536ef548a4d4650fb45eb1575fde8fcb3ddc7e46ae22df6a5d5ae44ad19f06e5984324e30a17f678e9d5
7
- data.tar.gz: a8b6e498e6d041419cbb8e2adf212eb4bd5440b872367904d2da96c9040dcb28ca5446571f4fcb6e8bb04558c15e91c347a3cc258983894ba260c1f802472a3b
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.3
1
+ 0.0.4
@@ -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.3 ruby lib
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.3"
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",
@@ -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 campaign_sends (#{cols.join(', ')}) VALUES (#{vals.map{'?'}.join(', ')})"
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.3
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 active
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: []