Skip to content

Commit

Permalink
Refactor some more Compiler helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrous26 committed Feb 12, 2012
1 parent aca58d8 commit 8089576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rubygems-compile/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def call gem
@spec = gem.is_a?(Gem::Specification) ? gem : gem.spec

return if trying_to_compile_self?
say compilation_message if verbose
say gem_compilation_message if verbose

gem_files.each do |file|
message = compile_file_msg(file)
Expand All @@ -47,7 +47,7 @@ def unsafe? file
e
end

def compilation_message
def gem_compilation_message
slash = really_verbose ? '/' : ''
"Compiling #{@spec.full_name}#{slash}"
end
Expand All @@ -71,7 +71,7 @@ def gem_files
# .select { |file| file.match /\.rb$/ }
end

def compile_file_msg file
def compile_file_message file
name = File.basename(file)
dirs = file.chomp(name).split(File::SEPARATOR)
tabs = "\t" * dirs.count
Expand Down

0 comments on commit 8089576

Please sign in to comment.