omah-plugin-sqlite 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/lib/omah-plugin-sqlite.rb +3 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e088282cfe6e579d120636241466fc9caf29f74
|
4
|
+
data.tar.gz: b15e921f29ac29c60f3ea8caf767931e17383de2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a5c2235cdf1ca198ebb26fe04c9a894b7d6207277d3140a70f9b19091d2e52e162fbff1cbad2923a23864b99c184f7fd82dfcaed113237df61b07bbcce371b2
|
7
|
+
data.tar.gz: 47aac044a152d521af22a0220b121e4890d1b89e6dfe8096cfe46848e5b9697e9e7b94f47b779c4fcf8cecf13844680587a91fc70d61b27607bd184908bafa1e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
data/lib/omah-plugin-sqlite.rb
CHANGED
@@ -21,7 +21,7 @@ class OmahPluginSqlite
|
|
21
21
|
# Create a database
|
22
22
|
rows = @db.execute <<-SQL
|
23
23
|
create table headers (
|
24
|
-
|
24
|
+
id integer primary key autoincrement,
|
25
25
|
from_x varchar(50),
|
26
26
|
to_x varchar(50),
|
27
27
|
subject varchar(140),
|
@@ -37,9 +37,8 @@ SQL
|
|
37
37
|
|
38
38
|
def on_newmessage(h)
|
39
39
|
|
40
|
-
@db.execute("INSERT INTO headers (
|
41
|
-
VALUES (?, ?, ?,
|
42
|
-
h[:uid].to_s)] + %i(from to subject date).map{|x| h[x]} )
|
40
|
+
@db.execute("INSERT INTO headers (from_x, to_x, subject, date)
|
41
|
+
VALUES (?, ?, ?, ?)", %i(from to subject date).map{|x| h[x]} )
|
43
42
|
end
|
44
43
|
|
45
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omah-plugin-sqlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
XLd73plHKkyDpP+udBZAVx4he+NB84YuuwUrP5sBpAPI3xJR3D5h6+Xn1LUSv1hE
|
32
32
|
TKYUpNlSwLyuTg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-11-
|
34
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
metadata.gz.sig
CHANGED
Binary file
|