vmail 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,12 @@
1
1
  require 'sequel'
2
2
 
3
- DB = Sequel.connect 'sqlite://vmail.db'
4
-
5
-
6
- if !File.exists?("vmail.db")
7
- create_table_script = File.expand_path("../db/create.sql", __FILE__)
8
- DB.run create_table_script
3
+ if !File.size?('vmail.db')
4
+ create_table_script = File.expand_path("../../../db/create.sql", __FILE__)
5
+ puts `sqlite3 vmail.db < #{create_table_script}`
9
6
  end
10
7
 
8
+ DB = Sequel.connect 'sqlite://vmail.db'
9
+
11
10
  if DB[:version].count == 0
12
11
  DB[:version].insert(:vmail_version => Vmail::VERSION)
13
12
  end
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.0
5
+ version: 1.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi