omah-plugin-sqlite 0.1.2 → 0.1.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: f9f679a533bf88c8e14a12cf2fce3fc00688f95a
4
- data.tar.gz: bcb6cb73545ce693fc3e77b74088d4e14d02e14d
3
+ metadata.gz: 3f1bd81029e27fa80f5613b9e417c5ac8556c8a4
4
+ data.tar.gz: ce7731a06e05205d4113694b497b12e5546edca9
5
5
  SHA512:
6
- metadata.gz: 1e07c5df4703063ba00e10fd39c496bfed1bab620343dda611784934ad0fdd5d5f647ca256d149ea334ad56f612283204d492c3ef5bf26ccb3636f5fd3e51baa
7
- data.tar.gz: 931fe3172df95da991703c37abb01588c4d3d0b8cd5649a138d9c6af49bd4fd572339e4d09b4685ddeceadc4812b2f0889b046fb48bf0fe1299b06191a2cae33
6
+ metadata.gz: d101a9c82426de8803b0c3eb2901164e4f7dbe3617ef558a369f48301e88fde2929fda7b5e35c96c9c31c5ebca40dc555e0c7b3e05841302c62700bfbf83c498
7
+ data.tar.gz: 0d0c10e56d07468d886b9360c46c45336151c179597cf196a67f07075c575488bcce126695c14e9836bbc3fc4ea96120fa752942e240e3cdffc348a244b4feb4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -10,7 +10,11 @@ class OmahPluginSqlite
10
10
 
11
11
  dbfile = settings[:dbfile]
12
12
 
13
- unless File.exists? dbfile then
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]).to_i] + %i(from to subject date).map{|x| h[x]} )
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.2
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-20 00:00:00.000000000 Z
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