engine_cart 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/engine_cart/tasks/engine_cart.rake +17 -16
- data/lib/engine_cart/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe14a882225a28b6533ca5bd1566bec5fdb32759
|
4
|
+
data.tar.gz: f676aaaeea369227e67caecc6233c3b9972bacc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
58
|
+
unless File.exists? File.expand_path('.generated_engine_cart', EngineCart.destination)
|
59
59
|
|
60
|
-
|
61
|
-
|
60
|
+
# Create a new test rails app
|
61
|
+
Rake::Task['engine_cart:create_test_rails_app'].invoke
|
62
62
|
|
63
|
-
|
63
|
+
system "bundle install"
|
64
64
|
|
65
|
-
|
65
|
+
Rake::Task['engine_cart:inject_gemfile_extras'].invoke
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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
|
-
|
78
|
+
File.open(File.expand_path('.generated_engine_cart', EngineCart.destination), 'w') { |f| f.puts true }
|
79
79
|
|
80
|
-
|
80
|
+
puts "Done generating test app"
|
81
|
+
end
|
81
82
|
end
|
82
83
|
end
|
83
84
|
|
data/lib/engine_cart/version.rb
CHANGED