Skip to content

Commit

Permalink
Fix verbose-mode warnings from jruby.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Sep 16, 2014
1 parent 43b4a25 commit ddc62c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby/shared/rubygems/defaults/jruby.rb
Expand Up @@ -89,11 +89,11 @@ def dirs
end

def add_dir dir
new_dirs = [ dir ] + (@@dirs||[]).collect { |d| d.sub /.specifications/, '' }
new_dirs = [ dir ] + (@@dirs||[]).collect { |d| d.sub(/.specifications/, '') }
self.reset

# ugh
@@dirs = new_dirs.map { |dir| File.join dir, "specifications" }
@@dirs = new_dirs.map { |d| File.join d, "specifications" }
end

# Replace existing dirs=
Expand Down

0 comments on commit ddc62c4

Please sign in to comment.