Skip to content

Commit 2b229a1

Browse files
committed
Fixed issue with test logging going to stdout
* Ensure rails_12factor only used in production * Added gem spring-commands-rspec
1 parent dbb9e3c commit 2b229a1

File tree

4 files changed

+65
-76
lines changed

4 files changed

+65
-76
lines changed

Gemfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
source 'https://rubygems.org'
22
ruby "2.1.5"
33

4-
4+
#
55
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
66
gem 'rails', '~>4.2'
77
# Use sqlite3 as the database for Active Record
88
gem 'sqlite3', group: :development
99
gem 'pg', group: :production
1010

11-
gem 'rails_12factor'
12-
1311
# Use SCSS for stylesheets
1412
gem 'sass-rails'
1513
gem 'bootstrap-sass', '~> 3.3.1'
@@ -42,6 +40,10 @@ gem 'autoprefixer-rails'
4240

4341
# Use Capistrano for deployment
4442
# gem 'capistrano-rails', group: :development
43+
group :production do
44+
gem 'rails_12factor'
45+
end
46+
4547

4648
group :development, :test do
4749
# Call 'debugger' anywhere in the code to stop execution and get a debugger console
@@ -56,11 +58,13 @@ group :development, :test do
5658
# Manage application processes
5759
gem 'foreman'
5860

59-
gem 'rspec-rails'
6061
gem 'factory_girl_rails'
6162
end
6263

64+
gem 'spring-commands-rspec', group: :development
65+
6366
group :test do
67+
gem 'rspec-rails'
6468
gem 'capybara'
6569
gem 'capybara-screenshot'
6670
gem 'capybara-webkit'

Gemfile.lock

+49-52
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,54 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailer (4.2.0)
5-
actionpack (= 4.2.0)
6-
actionview (= 4.2.0)
7-
activejob (= 4.2.0)
4+
actionmailer (4.2.1)
5+
actionpack (= 4.2.1)
6+
actionview (= 4.2.1)
7+
activejob (= 4.2.1)
88
mail (~> 2.5, >= 2.5.4)
99
rails-dom-testing (~> 1.0, >= 1.0.5)
10-
actionpack (4.2.0)
11-
actionview (= 4.2.0)
12-
activesupport (= 4.2.0)
13-
rack (~> 1.6.0)
10+
actionpack (4.2.1)
11+
actionview (= 4.2.1)
12+
activesupport (= 4.2.1)
13+
rack (~> 1.6)
1414
rack-test (~> 0.6.2)
1515
rails-dom-testing (~> 1.0, >= 1.0.5)
1616
rails-html-sanitizer (~> 1.0, >= 1.0.1)
17-
actionview (4.2.0)
18-
activesupport (= 4.2.0)
17+
actionview (4.2.1)
18+
activesupport (= 4.2.1)
1919
builder (~> 3.1)
2020
erubis (~> 2.7.0)
2121
rails-dom-testing (~> 1.0, >= 1.0.5)
2222
rails-html-sanitizer (~> 1.0, >= 1.0.1)
23-
activejob (4.2.0)
24-
activesupport (= 4.2.0)
23+
activejob (4.2.1)
24+
activesupport (= 4.2.1)
2525
globalid (>= 0.3.0)
26-
activemodel (4.2.0)
27-
activesupport (= 4.2.0)
26+
activemodel (4.2.1)
27+
activesupport (= 4.2.1)
2828
builder (~> 3.1)
29-
activerecord (4.2.0)
30-
activemodel (= 4.2.0)
31-
activesupport (= 4.2.0)
29+
activerecord (4.2.1)
30+
activemodel (= 4.2.1)
31+
activesupport (= 4.2.1)
3232
arel (~> 6.0)
33-
activesupport (4.2.0)
33+
activesupport (4.2.1)
3434
i18n (~> 0.7)
3535
json (~> 1.7, >= 1.7.7)
3636
minitest (~> 5.1)
3737
thread_safe (~> 0.3, >= 0.3.4)
3838
tzinfo (~> 1.1)
3939
addressable (2.3.7)
4040
arel (6.0.0)
41-
autoprefixer-rails (5.1.3)
41+
autoprefixer-rails (5.1.8)
4242
execjs
4343
json
4444
binding_of_caller (0.7.2)
4545
debug_inspector (>= 0.0.1)
46-
bootstrap-sass (3.3.3)
46+
bootstrap-sass (3.3.4.1)
4747
autoprefixer-rails (>= 5.0.0.1)
4848
sass (>= 3.2.19)
4949
builder (3.2.2)
50-
byebug (3.5.1)
51-
columnize (~> 0.8)
52-
debugger-linecache (~> 1.2)
53-
slop (~> 3.6)
50+
byebug (4.0.3)
51+
columnize (= 0.9.0)
5452
capybara (2.4.4)
5553
mime-types (>= 1.16)
5654
nokogiri (>= 1.3.3)
@@ -69,28 +67,25 @@ GEM
6967
coffee-script (2.3.0)
7068
coffee-script-source
7169
execjs
72-
coffee-script-source (1.9.0)
70+
coffee-script-source (1.9.1)
7371
columnize (0.9.0)
7472
database_cleaner (1.4.1)
7573
debug_inspector (0.0.2)
76-
debugger-linecache (1.2.0)
7774
diff-lcs (1.2.5)
78-
dotenv (1.0.2)
7975
erubis (2.7.0)
80-
execjs (2.3.0)
76+
execjs (2.4.0)
8177
factory_girl (4.5.0)
8278
activesupport (>= 3.0.0)
8379
factory_girl_rails (4.5.0)
8480
factory_girl (~> 4.5.0)
8581
railties (>= 3.0.0)
86-
foreman (0.77.0)
87-
dotenv (~> 1.0.2)
82+
foreman (0.78.0)
8883
thor (~> 0.19.1)
89-
globalid (0.3.0)
84+
globalid (0.3.3)
9085
activesupport (>= 4.1.0)
9186
hike (1.2.3)
9287
i18n (0.7.0)
93-
jbuilder (2.2.6)
88+
jbuilder (2.2.12)
9489
activesupport (>= 3.0.0, < 5)
9590
multi_json (~> 1.2)
9691
jquery-rails (4.0.3)
@@ -108,40 +103,40 @@ GEM
108103
mime-types (2.4.3)
109104
mini_portile (0.6.2)
110105
minitest (5.5.1)
111-
multi_json (1.10.1)
106+
multi_json (1.11.0)
112107
nokogiri (1.6.6.2)
113108
mini_portile (~> 0.6.0)
114109
pg (0.18.1)
115110
rack (1.6.0)
116111
rack-test (0.6.3)
117112
rack (>= 1.0)
118-
rails (4.2.0)
119-
actionmailer (= 4.2.0)
120-
actionpack (= 4.2.0)
121-
actionview (= 4.2.0)
122-
activejob (= 4.2.0)
123-
activemodel (= 4.2.0)
124-
activerecord (= 4.2.0)
125-
activesupport (= 4.2.0)
113+
rails (4.2.1)
114+
actionmailer (= 4.2.1)
115+
actionpack (= 4.2.1)
116+
actionview (= 4.2.1)
117+
activejob (= 4.2.1)
118+
activemodel (= 4.2.1)
119+
activerecord (= 4.2.1)
120+
activesupport (= 4.2.1)
126121
bundler (>= 1.3.0, < 2.0)
127-
railties (= 4.2.0)
122+
railties (= 4.2.1)
128123
sprockets-rails
129124
rails-deprecated_sanitizer (1.0.3)
130125
activesupport (>= 4.2.0.alpha)
131-
rails-dom-testing (1.0.5)
126+
rails-dom-testing (1.0.6)
132127
activesupport (>= 4.2.0.beta, < 5.0)
133128
nokogiri (~> 1.6.0)
134129
rails-deprecated_sanitizer (>= 1.0.1)
135-
rails-html-sanitizer (1.0.1)
130+
rails-html-sanitizer (1.0.2)
136131
loofah (~> 2.0)
137132
rails_12factor (0.0.3)
138133
rails_serve_static_assets
139134
rails_stdout_logging
140135
rails_serve_static_assets (0.0.4)
141136
rails_stdout_logging (0.0.3)
142-
railties (4.2.0)
143-
actionpack (= 4.2.0)
144-
activesupport (= 4.2.0)
137+
railties (4.2.1)
138+
actionpack (= 4.2.1)
139+
activesupport (= 4.2.1)
145140
rake (>= 0.8.7)
146141
thor (>= 0.18.1, < 2.0)
147142
raindrops (0.13.0)
@@ -165,7 +160,7 @@ GEM
165160
rspec-mocks (~> 3.2.0)
166161
rspec-support (~> 3.2.0)
167162
rspec-support (3.2.2)
168-
sass (3.4.11)
163+
sass (3.4.13)
169164
sass-rails (5.0.1)
170165
railties (>= 4.0.0, < 5.0)
171166
sass (~> 3.1)
@@ -175,8 +170,9 @@ GEM
175170
sdoc (0.4.1)
176171
json (~> 1.7, >= 1.7.7)
177172
rdoc (~> 4.0)
178-
slop (3.6.0)
179-
spring (1.2.0)
173+
spring (1.3.3)
174+
spring-commands-rspec (1.0.4)
175+
spring (>= 0.9.1)
180176
sprockets (2.12.3)
181177
hike (~> 1.2)
182178
multi_json (~> 1.0)
@@ -188,13 +184,13 @@ GEM
188184
sprockets (>= 2.8, < 4.0)
189185
sqlite3 (1.3.10)
190186
thor (0.19.1)
191-
thread_safe (0.3.4)
187+
thread_safe (0.3.5)
192188
tilt (1.4.1)
193189
turbolinks (2.5.3)
194190
coffee-rails
195191
tzinfo (1.2.2)
196192
thread_safe (~> 0.1)
197-
uglifier (2.7.0)
193+
uglifier (2.7.1)
198194
execjs (>= 0.3.0)
199195
json (>= 1.8.0)
200196
unicorn (4.8.3)
@@ -234,6 +230,7 @@ DEPENDENCIES
234230
sass-rails
235231
sdoc
236232
spring
233+
spring-commands-rspec
237234
sqlite3
238235
turbolinks
239236
uglifier

bin/rspec

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#!/usr/bin/env ruby
2-
#
3-
# This file was generated by Bundler.
4-
#
5-
# The application 'rspec' is installed as part of a gem, and
6-
# this file is here to facilitate running it.
7-
#
8-
9-
require 'pathname'
10-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11-
Pathname.new(__FILE__).realpath)
12-
13-
require 'rubygems'
2+
begin
3+
load File.expand_path("../spring", __FILE__)
4+
rescue LoadError
5+
end
146
require 'bundler/setup'
15-
167
load Gem.bin_path('rspec-core', 'rspec')

bin/spring

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
#!/usr/bin/env ruby
22

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

66
unless defined?(Spring)
77
require "rubygems"
88
require "bundler"
99

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-
10+
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
11+
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
1512
gem "spring", match[1]
1613
require "spring/binstub"
1714
end

0 commit comments

Comments
 (0)