engine_cart 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Rakefile +4 -2
- data/lib/engine_cart/tasks/engine_cart.rake +2 -1
- data/lib/engine_cart/version.rb +1 -1
- data/lib/generators/engine_cart/install_generator.rb +2 -1
- data/spec/integration/engine_cart_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0994697ed5bfad63b99e1a93b0cc903d6ba3a0e
|
4
|
+
data.tar.gz: 0443a2b371d08b2719c5415e4b1adec53d4b55ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32182f93a0915d9ca8e52f274275b0652dc62d8aa940fe1af66f2eb33ccc22fd8dcc0a9320e0a2515e00f4065802612b634e880fcb7b8113b814d51ad597e76
|
7
|
+
data.tar.gz: 907857f8a929e3aeafb5b9f9d08067c9b164b81cf83a24063ab4f80f2cb6b4f8886a845a9cca4c415f6323daaa8d3c23833f96fe2069c4e22ce5fc88c220f778
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -32,11 +32,13 @@ task :generate_test_gem => ['engine_cart:setup'] do
|
|
32
32
|
EOF
|
33
33
|
end
|
34
34
|
|
35
|
-
system "
|
35
|
+
system "echo '\ngem \"rspec-rails\"\n' >> Gemfile"
|
36
|
+
system %Q{echo '\ngem "sass", "~> 3.2.15"\n' >> Gemfile}
|
37
|
+
system %Q{echo '\ngem "sprockets", "~> 2.11.0"\n' >> Gemfile}
|
38
|
+
system "bundle update"
|
36
39
|
system "echo 'require \"engine_cart/rake_task\"\n' >> Rakefile"
|
37
40
|
|
38
41
|
system("rake engine_cart:prepare")
|
39
|
-
system "echo '\ngem \"rspec-rails\"\n' >> Gemfile"
|
40
42
|
system "bundle install"
|
41
43
|
end
|
42
44
|
end
|
@@ -21,6 +21,7 @@ namespace :engine_cart do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
task :create_test_rails_app => [:setup] do
|
24
|
+
require 'tmpdir'
|
24
25
|
require 'fileutils'
|
25
26
|
Dir.mktmpdir do |dir|
|
26
27
|
Dir.chdir dir do
|
@@ -29,7 +30,7 @@ namespace :engine_cart do
|
|
29
30
|
end
|
30
31
|
|
31
32
|
Bundler.with_clean_env do
|
32
|
-
`rails #{version} new internal #{EngineCart.rails_options} #{"-m #{EngineCart.template}" if EngineCart.template}`
|
33
|
+
`rails #{version} new internal --skip-spring #{EngineCart.rails_options} #{"-m #{EngineCart.template}" if EngineCart.template}`
|
33
34
|
end
|
34
35
|
|
35
36
|
unless $?
|
data/lib/engine_cart/version.rb
CHANGED
@@ -41,13 +41,14 @@ module EngineCart
|
|
41
41
|
return if (system('git', 'check-ignore', TEST_APP, '-q') rescue false)
|
42
42
|
|
43
43
|
append_file File.expand_path('.gitignore', git_root) do
|
44
|
-
"#{EngineCart.destination}\n"
|
44
|
+
"\n#{EngineCart.destination}\n"
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
48
|
def add_gemfile_include
|
49
49
|
append_file "Gemfile" do
|
50
50
|
<<-EOF
|
51
|
+
|
51
52
|
file = File.expand_path("Gemfile", ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path("../spec/internal", __FILE__))
|
52
53
|
if File.exists?(file)
|
53
54
|
puts "Loading \#{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
@@ -54,7 +54,7 @@ describe "EngineCart powered application" do
|
|
54
54
|
|
55
55
|
describe ApplicationController do
|
56
56
|
it "should be able to run specs that reference gems provided by the test app" do
|
57
|
-
expect(true).to
|
57
|
+
expect(true).to be_truthy
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -65,4 +65,4 @@ describe "EngineCart powered application" do
|
|
65
65
|
expect($?).to eq 0
|
66
66
|
end
|
67
67
|
end
|
68
|
-
end
|
68
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engine_cart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|