engine_cart 0.8.1 → 0.8.2
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/.travis.yml +3 -3
- data/Rakefile +0 -1
- data/lib/engine_cart/gemfile_stanza.rb +11 -2
- data/lib/engine_cart/tasks/engine_cart.rake +5 -7
- data/lib/engine_cart/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c04d95e36edb84b7dea3b5681a416df82d6505a
|
4
|
+
data.tar.gz: 7bbbf882051a2d7286add6d53a7988a61a74e6db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19a1cf6d4787639f2b0b47ecfb1ff8c64c63c76e690ea3bfecff32025e9c951befd50a82bde24d70d360a355765f6a0076aef2a89d5ee0fdd7f401e0cb978763
|
7
|
+
data.tar.gz: 842f1c6f32a57188b0acb8c00b36eb726ed79826a6997dd5acaa0ab99a220a1417242d9c71d2683d0bfdee64f16be2257d53bd0e171174105617b497023b5269
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -22,11 +22,20 @@ module EngineCart
|
|
22
22
|
else
|
23
23
|
Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in \#{file}, using placeholder dependencies"
|
24
24
|
|
25
|
-
|
25
|
+
if ENV['RAILS_VERSION']
|
26
|
+
if ENV['RAILS_VERSION'] == 'edge'
|
27
|
+
gem 'rails', github: 'rails/rails'
|
28
|
+
ENV['ENGINE_CART_RAILS_OPTIONS']= "--edge --skip-turbolinks"
|
29
|
+
else
|
30
|
+
gem 'rails', ENV['RAILS_VERSION']
|
31
|
+
end
|
32
|
+
end
|
26
33
|
|
27
|
-
if ENV['RAILS_VERSION'].nil? || ENV['RAILS_VERSION'] =~ /^4
|
34
|
+
if ENV['RAILS_VERSION'].nil? || ENV['RAILS_VERSION'] =~ /^4\.2/
|
28
35
|
gem 'responders', "~> 2.0"
|
29
36
|
gem 'sass-rails', ">= 5.0"
|
37
|
+
elsif ENV['RAILS_VERSION'] =~ /^5\.0/ || ENV['RAILS_VERSION'] == 'edge'
|
38
|
+
# nop
|
30
39
|
else
|
31
40
|
gem 'sass-rails', "< 5.0"
|
32
41
|
end
|
@@ -29,11 +29,11 @@ namespace :engine_cart do
|
|
29
29
|
require 'fileutils'
|
30
30
|
Dir.mktmpdir do |dir|
|
31
31
|
Dir.chdir dir do
|
32
|
-
|
32
|
+
version = ENV.fetch('RAILS_VERSION', ">= 0")
|
33
|
+
rails_path = Gem.bin_path('railties', 'rails', version)
|
33
34
|
|
34
35
|
Bundler.with_clean_env do
|
35
|
-
|
36
|
-
`#{rails_path} #{rails_version} new internal --skip-spring #{EngineCart.rails_options} #{"-m #{EngineCart.template}" if EngineCart.template}`
|
36
|
+
`#{rails_path} new internal --skip-spring #{EngineCart.rails_options} #{"-m #{EngineCart.template}" if EngineCart.template}`
|
37
37
|
end
|
38
38
|
|
39
39
|
unless $?
|
@@ -67,10 +67,8 @@ namespace :engine_cart do
|
|
67
67
|
open(File.expand_path('Gemfile', EngineCart.destination), 'a') do |f|
|
68
68
|
gemfile_extras_path = File.expand_path("Gemfile.extra", EngineCart.templates_path)
|
69
69
|
|
70
|
-
f.write
|
71
|
-
|
72
|
-
gem '#{EngineCart.current_engine_name}', :path => '#{File.expand_path('.')}'
|
73
|
-
EOF
|
70
|
+
f.write File.read(gemfile_extras_path) if File.exist?(gemfile_extras_path)
|
71
|
+
f.write "gem '#{EngineCart.current_engine_name}', path: '#{File.expand_path('.')}'"
|
74
72
|
end
|
75
73
|
end
|
76
74
|
|
data/lib/engine_cart/version.rb
CHANGED
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.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -117,3 +117,4 @@ summary: Helper for testing Rails Engines sanely
|
|
117
117
|
test_files:
|
118
118
|
- spec/integration/engine_cart_spec.rb
|
119
119
|
- spec/spec_helper.rb
|
120
|
+
has_rdoc:
|