snailgun-rr 1.1.1.3 → 1.1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +4 -1
- data/bin/snailgun +6 -4
- metadata +2 -2
data/README.markdown
CHANGED
@@ -9,7 +9,6 @@ command-line Ruby interpreter is required.
|
|
9
9
|
Installation
|
10
10
|
------------
|
11
11
|
|
12
|
-
sudo gem install mysql_retry_lost_connection
|
13
12
|
sudo gem install snailgun-rr
|
14
13
|
|
15
14
|
Case 1: standalone
|
@@ -76,6 +75,10 @@ Note that any attempt by `fruby` or `frake` to perform an action in an
|
|
76
75
|
environment other than 'test' will fail. See below for how to run multiple
|
77
76
|
snailgun environments.
|
78
77
|
|
78
|
+
Note that snailgun relies on the mysql_retry_lost_connection gem. Tests and the
|
79
|
+
like tha expect broken SQL connections will not work as expected as the
|
80
|
+
connection will be retried. This is necessary because forking breaks the connection.
|
81
|
+
|
79
82
|
Merb support has been contributed (using MERB_ENV), but it is untested by
|
80
83
|
me.
|
81
84
|
|
data/bin/snailgun
CHANGED
@@ -84,12 +84,14 @@ when :rails
|
|
84
84
|
load conf
|
85
85
|
# We can get some drastic test speedups by preloading test frameworks
|
86
86
|
# (although user could do that in config/environments/test.rb)
|
87
|
+
environment_path = Pathname.new( './config/environment.rb' ).realpath
|
88
|
+
test_helper_path = Pathname.new( './test/test_helper.rb' ).realpath
|
87
89
|
if env != 'test'
|
88
|
-
if
|
89
|
-
require
|
90
|
+
if environment_path.exist?
|
91
|
+
require environment_path
|
90
92
|
end
|
91
|
-
elsif
|
92
|
-
require
|
93
|
+
elsif test_helper_path.exist?
|
94
|
+
require test_helper_path
|
93
95
|
elsif File.exist?('spec/spec_helper.rb')
|
94
96
|
require 'spec'
|
95
97
|
require 'spec/rails'
|