engine_cart 0.3.0 → 0.3.1

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: cfba3a7001960007e707eeb273a884ea0660d53e
4
- data.tar.gz: 85c1f0df4dd3264fd0aecf3927b5c61cace587f5
3
+ metadata.gz: fe14a882225a28b6533ca5bd1566bec5fdb32759
4
+ data.tar.gz: f676aaaeea369227e67caecc6233c3b9972bacc1
5
5
  SHA512:
6
- metadata.gz: b245365eed9f9bb511641d9f543e48281e6e406b3a6394be326892294933fe7515b699d83fefaead2c8e9dd57d8073bf1205ef4319e8840dca0bc2eff6f8fef4
7
- data.tar.gz: e28e5f5c22d33c4805fb01b0d9ef378d8c9255da47f25f4b772de4786937268df63ba426924ef58a3e16dea76fad26d897499602001d9f5558e33a6978d7e08b
6
+ metadata.gz: 512a12ff8115272cad760e335631001c6a5c9dbbff5063ff998d8c32d94ffe10b0c351f8c2d920e26177389eed4632fc53c2ff95643a0af9958befab7d6d7d6d
7
+ data.tar.gz: 1597e3928c57fee574334ced7995d837b7d784d6ccd9004db7ab2b5d4bae185c79848611c5ace06e8b6367336c7f5d54bc42e7d4f3d639fe416a892cccdcbb0c
@@ -55,29 +55,30 @@ EOF
55
55
 
56
56
  desc "Create the test rails app"
57
57
  task :generate => [:setup] do
58
- return if File.exists? File.expand_path('.generated_engine_cart', EngineCart.destination)
58
+ unless File.exists? File.expand_path('.generated_engine_cart', EngineCart.destination)
59
59
 
60
- # Create a new test rails app
61
- Rake::Task['engine_cart:create_test_rails_app'].invoke
60
+ # Create a new test rails app
61
+ Rake::Task['engine_cart:create_test_rails_app'].invoke
62
62
 
63
- system "bundle install"
63
+ system "bundle install"
64
64
 
65
- Rake::Task['engine_cart:inject_gemfile_extras'].invoke
65
+ Rake::Task['engine_cart:inject_gemfile_extras'].invoke
66
66
 
67
- # Copy our test app generators into the app and prepare it
68
- if File.exists? "#{EngineCart.templates_path}/lib/generators"
69
- system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib"
70
- end
67
+ # Copy our test app generators into the app and prepare it
68
+ if File.exists? "#{EngineCart.templates_path}/lib/generators"
69
+ system "cp -r #{EngineCart.templates_path}/lib/generators #{EngineCart.destination}/lib"
70
+ end
71
71
 
72
- within_test_app do
73
- system "bundle install"
74
- system "(rails g | grep test_app) && rails generate test_app"
75
- system "rake db:migrate db:test:prepare"
76
- end
72
+ within_test_app do
73
+ system "bundle install"
74
+ system "(rails g | grep test_app) && rails generate test_app"
75
+ system "rake db:migrate db:test:prepare"
76
+ end
77
77
 
78
- File.open(File.expand_path('.generated_engine_cart', EngineCart.destination), 'w') { |f| f.puts true }
78
+ File.open(File.expand_path('.generated_engine_cart', EngineCart.destination), 'w') { |f| f.puts true }
79
79
 
80
- puts "Done generating test app"
80
+ puts "Done generating test app"
81
+ end
81
82
  end
82
83
  end
83
84
 
@@ -1,3 +1,3 @@
1
1
  module EngineCart
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engine_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer