vx-builder 0.5.18 → 0.5.19

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: f062e5c24a5dec60c57e45ba1e1cc47a28e2c1ca
4
- data.tar.gz: 1a7f892cf80a8904e3c07d779ad5a830c946df9a
3
+ metadata.gz: 0bfa3dad412e205dc7652efe10a53201e045d3dd
4
+ data.tar.gz: 9e9539f98154708819b0c36c4aa87f13fd6b42b1
5
5
  SHA512:
6
- metadata.gz: 76575828985c636aabd907ba78e6e0f2b1e2504996bada37f741b51f3651e9159fd8d5159df38b60696660c44cdbb46cc21c28c3940d000d85f2c85605bfdc46
7
- data.tar.gz: 9607432cf0291574a655dbd8fec7139e8c9dec7fe64a84dc54d198ef35aea8b9af5155569b2c86f2ebf99646e4c2e37b4c7e521daeea5e45693a4578a64c69d5
6
+ metadata.gz: 8b1c095e1b56f29b0058264a5efbd0c9e55c29a822f92fdfdd12387140c60c095263521ef58cf530c88c0c0735b90b9ec8c2d1cec0b461510de12d10392f3873
7
+ data.tar.gz: 0181d6f657e4a1b9ec5d0720c23e137ff50756c99ea9c0f14eb0ae4f47ae2f89f315de3c40c5730b70ef06e57ba96f47b7e0b58d3ea72b8b242bfc8fabe4bbfc
@@ -46,6 +46,17 @@ EOL
46
46
  )
47
47
  }
48
48
 
49
+ rails_gen_database_spec_for_sqlite () {
50
+ bundle show sqlite3 > /dev/null && (
51
+ notice 'create config/database.yml for sqlite3'
52
+ cat > config/database.yml <<EOL
53
+ test:
54
+ adapter: sqlite3
55
+ database: db/test.sqlite3
56
+ EOL
57
+ )
58
+ }
59
+
49
60
  rails_db_create () {
50
61
  echo $ bundle exec rake db:create
51
62
  bundle exec rake db:create
@@ -65,7 +76,8 @@ rails_setup_database () {
65
76
  rails_detect && (
66
77
  (
67
78
  rails_gen_database_spec_for_pg ||
68
- rails_gen_database_spec_for_mysql
79
+ rails_gen_database_spec_for_mysql ||
80
+ rails_gen_database_spec_for_sqlite
69
81
  ) &&
70
82
  rails_db_create
71
83
  )
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.5.18"
3
+ VERSION = "0.5.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.18
4
+ version: 0.5.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky