shoestring 0.0.4 → 0.0.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: fb6d2c02af399a4f6b30c4c5f84d45a7c2200828
4
- data.tar.gz: 57666bb9eb94c388acb57e4d8b263f14d028fe56
3
+ metadata.gz: 949f2b79060b65c943945085af1980871b57a4d4
4
+ data.tar.gz: b9aa3a18e812180ea7e5092e38cf2c3b1f9b81a1
5
5
  SHA512:
6
- metadata.gz: b686a7d0df6ef97f07debd52a9d02be675ecaae6dc27027020960fb2e5de07e014f1386e628fc297d034b0cfd9baff02e7e9db923579189630868880948966f0
7
- data.tar.gz: 34618e1ed354669281997ef94fe5d456ce1f57bb6039772a45c3b3cc0bc80fec7fb4b0fc5f55ce7f34b6d4be60095a9309dcf65d599ebdfdac5bf553f64e7e9f
6
+ metadata.gz: 55d15870a984daea28801ee67843cb9fb17a8209fcd2842e3db56ed65d80e0592575cd4c26650fcb8249a3ca1893d8f47b884eeb7e520c1d1c22a07fdf98ecca
7
+ data.tar.gz: 27e59e7bd96d312c1825c17e0e9d17dcd4128846b735d8f473849193e193a2fc4ce573f9bbc7f1877cc0f85f31c49165ce721d4abb6890e8d2d0fc8e908d544c
@@ -22,6 +22,7 @@ module Shoestring
22
22
  Shoestring::Cache.check(:bundle) do |old_version|
23
23
  version = File.read('Gemfile') + File.read('Gemfile.lock')
24
24
  if old_version != version
25
+ puts "Bundle out of date. Updating..."
25
26
  system('bundle install --quiet') || abort('Failed to bundle install')
26
27
  end
27
28
  version
@@ -20,7 +20,11 @@ module Shoestring
20
20
 
21
21
  def check_schema
22
22
  Shoestring::Cache.check(:schema) do |old_version|
23
- version = File.readlines("db/schema.rb").find { |line| line.include?("define(:version") }
23
+ if File.exist?("db/schema.rb")
24
+ version = File.readlines("db/schema.rb").find { |line| line.include?("define(:version") }
25
+ else
26
+ version = File.readlines("db/structure.sql").last
27
+ end
24
28
  if old_version != version
25
29
  system("bundle exec rake db:migrate") || abort("bundle exec rake db:migrate failed")
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Shoestring
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoestring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Woods