diff --git a/active_event/spec/lib/event_server_spec.rb b/active_event/spec/lib/event_server_spec.rb index 7e76bb2..79f1f59 100644 --- a/active_event/spec/lib/event_server_spec.rb +++ b/active_event/spec/lib/event_server_spec.rb @@ -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 diff --git a/disco-railties/Rakefile b/disco-railties/Rakefile index b8b42c4..89468dc 100644 --- a/disco-railties/Rakefile +++ b/disco-railties/Rakefile @@ -1 +1 @@ -Dir.glob('lib/tasks/*.rake').each {|r| import r} +Dir.glob('lib/tasks/*.rake').each { |r| import r } diff --git a/disco-railties/lib/disco/commands/application.rb b/disco-railties/lib/disco/commands/application.rb index 471e668..8bbfa31 100644 --- a/disco-railties/lib/disco/commands/application.rb +++ b/disco-railties/lib/disco/commands/application.rb @@ -10,7 +10,7 @@ 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 @@ -18,7 +18,7 @@ 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 diff --git a/disco-railties/lib/generators/disco/app/app_generator.rb b/disco-railties/lib/generators/disco/app/app_generator.rb index 23e732c..a1d97ff 100644 --- a/disco-railties/lib/generators/disco/app/app_generator.rb +++ b/disco-railties/lib/generators/disco/app/app_generator.rb @@ -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) diff --git a/disco-railties/lib/generators/disco/event_name.rb b/disco-railties/lib/generators/disco/event_name.rb index 7372892..8c75006 100644 --- a/disco-railties/lib/generators/disco/event_name.rb +++ b/disco-railties/lib/generators/disco/event_name.rb @@ -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