omah-plugin-sqlite 0.1.2 → 0.1.4
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 +0 -0
- data/lib/omah-plugin-sqlite.rb +7 -2
- 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: 3f1bd81029e27fa80f5613b9e417c5ac8556c8a4
|
4
|
+
data.tar.gz: ce7731a06e05205d4113694b497b12e5546edca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d101a9c82426de8803b0c3eb2901164e4f7dbe3617ef558a369f48301e88fde2929fda7b5e35c96c9c31c5ebca40dc555e0c7b3e05841302c62700bfbf83c498
|
7
|
+
data.tar.gz: 0d0c10e56d07468d886b9360c46c45336151c179597cf196a67f07075c575488bcce126695c14e9836bbc3fc4ea96120fa752942e240e3cdffc348a244b4feb4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/omah-plugin-sqlite.rb
CHANGED
@@ -10,7 +10,11 @@ class OmahPluginSqlite
|
|
10
10
|
|
11
11
|
dbfile = settings[:dbfile]
|
12
12
|
|
13
|
-
|
13
|
+
if File.exists? dbfile then
|
14
|
+
|
15
|
+
@db = SQLite3::Database.new dbfile
|
16
|
+
|
17
|
+
else
|
14
18
|
|
15
19
|
@db = SQLite3::Database.new dbfile
|
16
20
|
|
@@ -25,6 +29,7 @@ class OmahPluginSqlite
|
|
25
29
|
|
26
30
|
);
|
27
31
|
SQL
|
32
|
+
|
28
33
|
end
|
29
34
|
|
30
35
|
|
@@ -34,7 +39,7 @@ SQL
|
|
34
39
|
|
35
40
|
@db.execute("INSERT INTO headers (uid, from_x, to_x, subject, date)
|
36
41
|
VALUES (?, ?, ?, ?, ?)", [(Time.now.strftime("%y%m%d") + \
|
37
|
-
h[:uid])
|
42
|
+
h[:uid].to_s)] + %i(from to subject date).map{|x| h[x]} )
|
38
43
|
end
|
39
44
|
|
40
45
|
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.4
|
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-21 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
metadata.gz.sig
CHANGED
Binary file
|