Skip to content

Commit

Permalink
Merge pull request #98 from tenderlove/starts_with
Browse files Browse the repository at this point in the history
Use start_with? rather than testing index == 0
  • Loading branch information
zenspider committed Jun 15, 2011
2 parents 6eebc1d + 153f490 commit b5830fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def lib_dirs_glob
def lib_files
@files.select do |file|
require_paths.any? do |path|
file.index(path) == 0
file.start_with? path
end
end
end
Expand Down

0 comments on commit b5830fc

Please sign in to comment.