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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f1bd81029e27fa80f5613b9e417c5ac8556c8a4
4
- data.tar.gz: ce7731a06e05205d4113694b497b12e5546edca9
3
+ metadata.gz: 9e088282cfe6e579d120636241466fc9caf29f74
4
+ data.tar.gz: b15e921f29ac29c60f3ea8caf767931e17383de2
5
5
  SHA512:
6
- metadata.gz: d101a9c82426de8803b0c3eb2901164e4f7dbe3617ef558a369f48301e88fde2929fda7b5e35c96c9c31c5ebca40dc555e0c7b3e05841302c62700bfbf83c498
7
- data.tar.gz: 0d0c10e56d07468d886b9360c46c45336151c179597cf196a67f07075c575488bcce126695c14e9836bbc3fc4ea96120fa752942e240e3cdffc348a244b4feb4
6
+ metadata.gz: 3a5c2235cdf1ca198ebb26fe04c9a894b7d6207277d3140a70f9b19091d2e52e162fbff1cbad2923a23864b99c184f7fd82dfcaed113237df61b07bbcce371b2
7
+ data.tar.gz: 47aac044a152d521af22a0220b121e4890d1b89e6dfe8096cfe46848e5b9697e9e7b94f47b779c4fcf8cecf13844680587a91fc70d61b27607bd184908bafa1e
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- oFd[e��k�@���.Aմ�0�#��'fi'cYP�ON6@�SG��֙�-{s�������X"��� �� /t޳T��ng>�7$�Qי���ڭ���1;)��{y���*���Ⰴ��딱wҐ� ;�P
2
- 8�� ڹ� kJ{;
3
- �#+E-:��|΅�HLUhz��|9Ƌ�����T�>K4�F�A^�;�rI��.�=�vi��#��F�a�_���Њ�߆�se�Hv���@l�/�ޅjՂ�����j
1
+ |!� i�/%��q�Pl�߳����
@@ -21,7 +21,7 @@ class OmahPluginSqlite
21
21
  # Create a database
22
22
  rows = @db.execute <<-SQL
23
23
  create table headers (
24
- uid integer primary key,
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 (uid, from_x, to_x, subject, date)
41
- VALUES (?, ?, ?, ?, ?)", [(Time.now.strftime("%y%m%d") + \
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
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-21 00:00:00.000000000 Z
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