@@ -111,6 +111,8 @@ group :development, :test do |
||
| 111 | 111 |
gem 'delorean' |
| 112 | 112 |
gem 'webmock', '~> 1.17.4', require: false |
| 113 | 113 |
gem 'coveralls', require: false |
| 114 |
+ gem 'spring' |
|
| 115 |
+ gem 'spring-commands-rspec' |
|
| 114 | 116 |
end |
| 115 | 117 |
|
| 116 | 118 |
group :production do |
@@ -317,6 +317,9 @@ GEM |
||
| 317 | 317 |
slop (3.6.0) |
| 318 | 318 |
spectrum-rails (1.3.4) |
| 319 | 319 |
railties (>= 3.1) |
| 320 |
+ spring (1.1.3) |
|
| 321 |
+ spring-commands-rspec (1.0.2) |
|
| 322 |
+ spring (>= 0.9.1) |
|
| 320 | 323 |
sprockets (2.11.0) |
| 321 | 324 |
hike (~> 1.2) |
| 322 | 325 |
multi_json (~> 1.0) |
@@ -447,6 +450,8 @@ DEPENDENCIES |
||
| 447 | 450 |
shoulda-matchers |
| 448 | 451 |
slack-notifier (~> 0.5.0) |
| 449 | 452 |
spectrum-rails |
| 453 |
+ spring |
|
| 454 |
+ spring-commands-rspec |
|
| 450 | 455 |
therubyracer (~> 0.12.1) |
| 451 | 456 |
twilio-ruby (~> 3.11.5) |
| 452 | 457 |
twitter (~> 5.8.0) |
@@ -1,4 +1,8 @@ |
||
| 1 | 1 |
#!/usr/bin/env ruby |
| 2 |
+begin |
|
| 3 |
+ load File.expand_path("../spring", __FILE__)
|
|
| 4 |
+rescue LoadError |
|
| 5 |
+end |
|
| 2 | 6 |
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
| 3 | 7 |
require_relative '../config/boot' |
| 4 | 8 |
require 'rails/commands' |
@@ -1,4 +1,8 @@ |
||
| 1 | 1 |
#!/usr/bin/env ruby |
| 2 |
+begin |
|
| 3 |
+ load File.expand_path("../spring", __FILE__)
|
|
| 4 |
+rescue LoadError |
|
| 5 |
+end |
|
| 2 | 6 |
require_relative '../config/boot' |
| 3 | 7 |
require 'rake' |
| 4 | 8 |
Rake.application.run |
@@ -0,0 +1,7 @@ |
||
| 1 |
+#!/usr/bin/env ruby |
|
| 2 |
+begin |
|
| 3 |
+ load File.expand_path("../spring", __FILE__)
|
|
| 4 |
+rescue LoadError |
|
| 5 |
+end |
|
| 6 |
+require 'bundler/setup' |
|
| 7 |
+load Gem.bin_path('rspec-core', 'rspec')
|
@@ -0,0 +1,18 @@ |
||
| 1 |
+#!/usr/bin/env ruby |
|
| 2 |
+ |
|
| 3 |
+# This file loads spring without using Bundler, in order to be fast |
|
| 4 |
+# It gets overwritten when you run the `spring binstub` command |
|
| 5 |
+ |
|
| 6 |
+unless defined?(Spring) |
|
| 7 |
+ require "rubygems" |
|
| 8 |
+ require "bundler" |
|
| 9 |
+ |
|
| 10 |
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) |
|
| 11 |
+ ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) |
|
| 12 |
+ ENV["GEM_HOME"] = "" |
|
| 13 |
+ Gem.paths = ENV |
|
| 14 |
+ |
|
| 15 |
+ gem "spring", match[1] |
|
| 16 |
+ require "spring/binstub" |
|
| 17 |
+ end |
|
| 18 |
+end |