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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 583865c648b39d4179a2bd3b6e42bdc9b725ab42
4
- data.tar.gz: 3a4fffb4e7070305d601e068eea163ada0fcd5fc
3
+ metadata.gz: 9c04d95e36edb84b7dea3b5681a416df82d6505a
4
+ data.tar.gz: 7bbbf882051a2d7286add6d53a7988a61a74e6db
5
5
  SHA512:
6
- metadata.gz: 205f8c42d5ccd3a251a4248ae6cb5995e1ac0af8b474277b7c53044d7387a2e846eacfdce87b7416f967143d2244b1caedf00904575ea954b8109771966b1e21
7
- data.tar.gz: 890223b703fe8e535b30a274902ebcd8b511914d5e4497c4a1f5f049eabab62027416216075fd0c5e852117f191c689ada0567740c814ccc399268710855d782
6
+ metadata.gz: 19a1cf6d4787639f2b0b47ecfb1ff8c64c63c76e690ea3bfecff32025e9c951befd50a82bde24d70d360a355765f6a0076aef2a89d5ee0fdd7f401e0cb978763
7
+ data.tar.gz: 842f1c6f32a57188b0acb8c00b36eb726ed79826a6997dd5acaa0ab99a220a1417242d9c71d2683d0bfdee64f16be2257d53bd0e171174105617b497023b5269
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.2.2
4
+ - 2.3.0
5
5
 
6
6
  matrix:
7
7
  include:
8
- - rvm: '2.2.2'
9
- env: "RAILS_VERSION=4.1.13"
8
+ - rvm: '2.2.4'
9
+ env: "RAILS_VERSION=4.1.14"
data/Rakefile CHANGED
@@ -36,7 +36,6 @@ task :generate_test_gem => ['engine_cart:setup'] do
36
36
  EngineCart.load_application!
37
37
 
38
38
  require 'rspec/rails'
39
- require 'rspec/autorun'
40
39
 
41
40
  require 'internal_test_gem'
42
41
  RSpec.configure do |config|
@@ -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
- gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
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.2/
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
- rails_path = Gem.bin_path('railties', 'rails')
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
- rails_version = "_#{ENV['RAILS_VERSION']}_" if ENV['RAILS_VERSION']
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 <<-EOF
71
- #{File.read(gemfile_extras_path) if File.exist?(gemfile_extras_path)}
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
 
@@ -1,3 +1,3 @@
1
1
  module EngineCart
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  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.8.1
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-06 00:00:00.000000000 Z
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: