Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
more spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed May 13, 2014
1 parent b2f26c6 commit d462eae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion active_event/spec/lib/event_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TestEvent
end

it 'updates the replay server if its running' do
@server.instance_variable_set(:@replay_server_thread, Thread.new {sleep 1})
@server.instance_variable_set(:@replay_server_thread, Thread.new { sleep 1 })
expect(ActiveEvent::ReplayServer).to receive(:update)
@server.resend_events_after 1
end
Expand Down
2 changes: 1 addition & 1 deletion disco-railties/Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Dir.glob('lib/tasks/*.rake').each {|r| import r}
Dir.glob('lib/tasks/*.rake').each { |r| import r }
4 changes: 2 additions & 2 deletions disco-railties/lib/disco/commands/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
else
ARGV.shift
unless ARGV.delete('--no-rc')
customrc = ARGV.index{ |x| x.include?('--rc=') }
customrc = ARGV.index { |x| x.include?('--rc=') }
railsrc = if customrc
File.expand_path(ARGV.delete_at(customrc).gsub(/--rc=/, ''))
else
File.join(File.expand_path('~'), '.railsrc')
end
if File.exist?(railsrc)
extra_args_string = File.read(railsrc)
extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten
extra_args = extra_args_string.split(/\n+/).map { |l| l.split }.flatten
puts "Using #{extra_args.join(' ')} from #{railsrc}"
ARGV.insert(1, *extra_args)
end
Expand Down
2 changes: 1 addition & 1 deletion disco-railties/lib/generators/disco/app/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def module_namespacing(&block)

def indent(content, multiplier = 2)
spaces = ' ' * multiplier
content.each_line.map {|line| line.blank? ? line : "#{spaces}#{line}" }.join
content.each_line.map { |line| line.blank? ? line : "#{spaces}#{line}" }.join
end

def wrap_with_namespace(content)
Expand Down
2 changes: 1 addition & 1 deletion disco-railties/lib/generators/disco/event_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def event_name
end

def event_class_name
(event_class_path + [event_file_name]).map!{ |m| m.camelize }.join('::')
(event_class_path + [event_file_name]).map! { |m| m.camelize }.join('::')
end

def event_file_path
Expand Down

0 comments on commit d462eae

Please sign in to comment.