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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a70aab39d74094071bcbfcdd814a16f1e0beb293
4
- data.tar.gz: f04417481b8c091d7bd1ba10032b8a52a6a21396
3
+ metadata.gz: 96c695e53c52d0eb9f6425fa2fcd099c1a6167aa
4
+ data.tar.gz: f9959acabcbd5ca9c548cf4b59cb420339953952
5
5
  SHA512:
6
- metadata.gz: 9c5df3d336f5d19f32340432716afe39438809fdb83dcdf7c3baa3c73de9309cf9feed76cf7f89f7c6d4e18982c4692702c300c832a48a598e76464b9068eb27
7
- data.tar.gz: c4868e6be60bce02ad126892d46a9459a86923772f8dfcd0eaf1682cc262c3db40b4e2bf6ccd1160806646cdb2b815499526a13744695087a3a7b46126f6dade
6
+ metadata.gz: d960a6dc51b4bc4fb8a8b488b5d73f53c852cab6aa0c9b7341570739ebb5cc21626463e38401d18f26ff84d55d16c8db795ea3e58f83ddf7d2812f4a361b6ca0
7
+ data.tar.gz: d62b6950005fe35a516a987547e2e6dbca1d571c1867bf1d12aa83584ed4b4f2261dfe18bf50b55ce0ead81464c001fbdcf585cfbc4d68c502abb82cad604a6d
data/Rakefile CHANGED
@@ -25,4 +25,4 @@ task :generate_test_gem => ['engine_cart:setup'] do
25
25
  end
26
26
  end
27
27
 
28
- task :default => :ci
28
+ task :default => :ci
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")
@@ -1,8 +1,7 @@
1
1
  module EngineCart
2
- require 'rails'
3
2
  class Engine < Rails::Engine
4
3
  rake_tasks do
5
4
  load "engine_cart/tasks/engine_cart.rake"
6
5
  end
7
6
  end
8
- end
7
+ end
@@ -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."
@@ -1,3 +1,3 @@
1
1
  module EngineCart
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.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.1.3
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-01-13 00:00:00.000000000 Z
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.0
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: