Skip to content

Commit

Permalink
Merge feec05f into 35ec37a
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Dec 6, 2014
2 parents 35ec37a + feec05f commit 5dc0a3b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ gemspec

gem 'refinerycms-i18n', git: 'https://github.com/refinery/refinerycms-i18n', branch: 'master'
gem 'quiet_assets'
gem 'spring'
gem 'spring-commands-rspec'

# Add support for refinerycms-acts-as-indexed
gem 'refinerycms-acts-as-indexed', ['~> 2.0', '>= 2.0.0']
Expand Down
6 changes: 6 additions & 0 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

begin
if Dir.exist?(File.expand_path('../../spec/dummy', __FILE__))
load File.expand_path("../spring", __FILE__)
end
rescue LoadError
end
ENGINE_PATH = File.expand_path('../..', __FILE__)
load File.expand_path('../../spec/dummy/bin/rails', __FILE__)
7 changes: 6 additions & 1 deletion bin/rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

begin
if Dir.exist?(File.expand_path('../../spec/dummy', __FILE__))
load File.expand_path("../spring", __FILE__)
end
rescue LoadError
end
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
Expand Down
6 changes: 6 additions & 0 deletions bin/rspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# this file is here to facilitate running it.
#

begin
if Dir.exist?(File.expand_path('../../spec/dummy', __FILE__))
load File.expand_path("../spring", __FILE__)
end
rescue LoadError
end
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
Expand Down
18 changes: 18 additions & 0 deletions bin/spring
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env ruby

# This file loads spring without using Bundler, in order to be fast
# It gets overwritten when you run the `spring binstub` command

unless defined?(Spring)
require "rubygems"
require "bundler"

if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = ""
Gem.paths = ENV

gem "spring", match[1]
require "spring/binstub"
end
end
1 change: 1 addition & 0 deletions config/spring.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Spring.application_root = File.expand_path('../../spec/dummy', __FILE__) if defined?(Spring)

0 comments on commit 5dc0a3b

Please sign in to comment.