Permalink
Browse files

code format

  • Loading branch information...
1 parent 5bcfa9c commit 2c54fab282a68b9b4bad6c4b49b56421541cce4b @xprayc xprayc committed Sep 26, 2013
Showing with 3 additions and 5 deletions.
  1. +1 −1 install.rb
  2. +1 −1 lib/rake/application.rb
  3. +1 −3 lib/rake/rake_module.rb
View
2 install.rb
@@ -68,7 +68,7 @@ def installBIN(from, opfile)
for fn in files
fn_dir = File.dirname(fn)
target_dir = File.join($sitedir, fn_dir)
- if ! File.exist?(target_dir)
+ if !File.exist?(target_dir)
FileUtils.mkdir_p(target_dir)
end
FileUtils.install(File.join('lib', fn), File.join($sitedir, fn),
View
2 lib/rake/application.rb
@@ -629,7 +629,7 @@ def print_rakefile_directory(location)
def raw_load_rakefile # :nodoc:
rakefile, location = find_rakefile_location
- if (! options.ignore_system) &&
+ if (!options.ignore_system) &&
(options.load_system || rakefile.nil?) &&
system_dir && File.directory?(system_dir)
print_rakefile_directory(location)
View
4 lib/rake/rake_module.rb
@@ -33,9 +33,7 @@ def load_rakefile(path)
# Add files to the rakelib list
def add_rakelib(*files)
application.options.rakelib ||= []
- files.each do |file|
- application.options.rakelib << file
- end
+ application.options.rakelib.concat(files)
end
end

0 comments on commit 2c54fab

Please sign in to comment.