mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Introduce Spring for faster development.
This commit is contained in:
parent
10ecc8b7d2
commit
8d3159a9f7
6 changed files with 40 additions and 0 deletions
2
Gemfile
2
Gemfile
|
@ -111,6 +111,8 @@ group :development, :test do
|
|||
gem 'delorean'
|
||||
gem 'webmock', '~> 1.17.4', require: false
|
||||
gem 'coveralls', require: false
|
||||
gem 'spring'
|
||||
gem 'spring-commands-rspec'
|
||||
end
|
||||
|
||||
group :production do
|
||||
|
|
|
@ -317,6 +317,9 @@ GEM
|
|||
slop (3.6.0)
|
||||
spectrum-rails (1.3.4)
|
||||
railties (>= 3.1)
|
||||
spring (1.1.3)
|
||||
spring-commands-rspec (1.0.2)
|
||||
spring (>= 0.9.1)
|
||||
sprockets (2.11.0)
|
||||
hike (~> 1.2)
|
||||
multi_json (~> 1.0)
|
||||
|
@ -447,6 +450,8 @@ DEPENDENCIES
|
|||
shoulda-matchers
|
||||
slack-notifier (~> 0.5.0)
|
||||
spectrum-rails
|
||||
spring
|
||||
spring-commands-rspec
|
||||
therubyracer (~> 0.12.1)
|
||||
twilio-ruby (~> 3.11.5)
|
||||
twitter (~> 5.8.0)
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
load File.expand_path("../spring", __FILE__)
|
||||
rescue LoadError
|
||||
end
|
||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
||||
require_relative '../config/boot'
|
||||
require 'rails/commands'
|
||||
|
|
4
bin/rake
4
bin/rake
|
@ -1,4 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
load File.expand_path("../spring", __FILE__)
|
||||
rescue LoadError
|
||||
end
|
||||
require_relative '../config/boot'
|
||||
require 'rake'
|
||||
Rake.application.run
|
||||
|
|
7
bin/rspec
Executable file
7
bin/rspec
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
load File.expand_path("../spring", __FILE__)
|
||||
rescue LoadError
|
||||
end
|
||||
require 'bundler/setup'
|
||||
load Gem.bin_path('rspec-core', 'rspec')
|
18
bin/spring
Executable file
18
bin/spring
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue