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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 578cedb046fe63f5a03a1d05b085afb77ab8cded
4
- data.tar.gz: b4a39e45ef3fccc86ae16c37ea30414c8f92e4c3
3
+ metadata.gz: b0994697ed5bfad63b99e1a93b0cc903d6ba3a0e
4
+ data.tar.gz: 0443a2b371d08b2719c5415e4b1adec53d4b55ab
5
5
  SHA512:
6
- metadata.gz: a69150baccad2255e77ffe433195281fe7a7df208e86deef764a466acca04d99fd1248de9c717fff3df08629076df4bb233073176ef3119022191d8d05e8af13
7
- data.tar.gz: 47702c16ecae730647ec56b13a1182e568259db64feb8ab0293ffe35c83458400aca85e9c744696617289db1c5dddeb0afa7c5bf8dabe21100d6bd4b6a6b66a5
6
+ metadata.gz: c32182f93a0915d9ca8e52f274275b0652dc62d8aa940fe1af66f2eb33ccc22fd8dcc0a9320e0a2515e00f4065802612b634e880fcb7b8113b814d51ad597e76
7
+ data.tar.gz: 907857f8a929e3aeafb5b9f9d08067c9b164b81cf83a24063ab4f80f2cb6b4f8886a845a9cca4c415f6323daaa8d3c23833f96fe2069c4e22ce5fc88c220f778
data/Gemfile CHANGED
@@ -3,4 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in engine_cart.gemspec
4
4
  gemspec
5
5
 
6
- gem 'rails'
6
+ gem 'rails'
7
+ gem 'sass', '~> 3.2.15'
8
+ gem 'sprockets', '~> 2.11.0'
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 "bundle install"
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 $?
@@ -1,3 +1,3 @@
1
1
  module EngineCart
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -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 be_true
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.3.4
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-03-03 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails