engine_cart 0.1.3 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/engine_cart.rb +1 -1
- data/lib/engine_cart/engine.rb +1 -2
- data/lib/engine_cart/tasks/engine_cart.rake +5 -1
- data/lib/engine_cart/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96c695e53c52d0eb9f6425fa2fcd099c1a6167aa
|
4
|
+
data.tar.gz: f9959acabcbd5ca9c548cf4b59cb420339953952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d960a6dc51b4bc4fb8a8b488b5d73f53c852cab6aa0c9b7341570739ebb5cc21626463e38401d18f26ff84d55d16c8db795ea3e58f83ddf7d2812f4a361b6ca0
|
7
|
+
data.tar.gz: d62b6950005fe35a516a987547e2e6dbca1d571c1867bf1d12aa83584ed4b4f2261dfe18bf50b55ce0ead81464c001fbdcf585cfbc4d68c502abb82cad604a6d
|
data/Rakefile
CHANGED
data/lib/engine_cart.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "engine_cart/version"
|
2
2
|
module EngineCart
|
3
|
-
require "engine_cart/engine"
|
3
|
+
require "engine_cart/engine" if defined? Rails
|
4
4
|
|
5
5
|
def self.load_application! path = nil
|
6
6
|
require File.expand_path("config/environment", path || ENV['RAILS_ROOT'] || "./spec/internal")
|
data/lib/engine_cart/engine.rb
CHANGED
@@ -23,8 +23,12 @@ namespace :engine_cart do
|
|
23
23
|
require 'fileutils'
|
24
24
|
Dir.mktmpdir do |dir|
|
25
25
|
Dir.chdir dir do
|
26
|
+
version = if Gem.loaded_specs["rails"]
|
27
|
+
"_#{Gem.loaded_specs["rails"].version}_"
|
28
|
+
end
|
29
|
+
|
26
30
|
Bundler.with_clean_env do
|
27
|
-
`rails new internal`
|
31
|
+
`rails #{version} new internal`
|
28
32
|
end
|
29
33
|
unless $?
|
30
34
|
raise "Error generating new rails app. Aborting."
|
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.
|
4
|
+
version: 0.2.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: 2014-
|
11
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.2.
|
112
|
+
rubygems_version: 2.2.1
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Helper for testing Rails Engines sanely
|
@@ -118,3 +118,4 @@ test_files:
|
|
118
118
|
- spec/spec_helper.rb
|
119
119
|
- spec/test_app_templates/Gemfile.extra
|
120
120
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
121
|
+
has_rdoc:
|