File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
example_app_generator/spec Expand file tree Collapse file tree 2 files changed +13
-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,18 @@ 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
+ line . chomp!
26
+ lines << line
27
+ end
28
+ end
29
+
21
30
# Necessary to ignore warnings from Rails code base
22
- out = io . readlines
31
+ out = lines
23
32
. reject { |line | line =~ /warning: circular argument reference/ }
24
33
. reject { |line | line =~ /Gem::Specification#rubyforge_project=/ }
25
34
. reject { |line | line =~ /DEPRECATION WARNING/ }
You can’t perform that action at this time.
0 commit comments