File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
example_app_generator/spec Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ require_file_stub 'config/environment' do
65
65
Rails . application . initialize!
66
66
end
67
67
68
- exit if ENV [ 'NO_ACTION_MAILER' ]
68
+ exit ( 0 ) if ENV [ 'NO_ACTION_MAILER' ]
69
69
if ENV [ 'DEFAULT_URL' ]
70
70
puts ActionMailer ::Base . default_url_options [ :host ]
71
71
elsif defined? ( ::ActionMailer ::Preview )
79
79
# This will force the loading of ActionMailer settings to ensure we do not
80
80
# accidentally set something we should not
81
81
ActionMailer ::Base . smtp_settings
82
+ exit 0
Original file line number Diff line number Diff line change @@ -17,9 +17,17 @@ def as_commandline(ops)
17
17
18
18
def capture_exec ( *ops )
19
19
ops << { err : [ :child , :out ] }
20
- io = IO . popen ( ops )
20
+ lines = [ ]
21
+
22
+ _process =
23
+ IO . popen ( ops ) do |io |
24
+ while ( line = io . gets )
25
+ lines << line
26
+ end
27
+ end
28
+
21
29
# Necessary to ignore warnings from Rails code base
22
- out = io . readlines
30
+ out = lines
23
31
. reject { |line | line =~ /warning: circular argument reference/ }
24
32
. reject { |line | line =~ /Gem::Specification#rubyforge_project=/ }
25
33
. reject { |line | line =~ /DEPRECATION WARNING/ }
You can’t perform that action at this time.
0 commit comments