summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximport/rubygems.to_chunk3
1 files changed, 2 insertions, 1 deletions
diff --git a/import/rubygems.to_chunk b/import/rubygems.to_chunk
index 9bef05ec..63c9cd26 100755
--- a/import/rubygems.to_chunk
+++ b/import/rubygems.to_chunk
@@ -30,7 +30,7 @@ end
def spec_is_from_current_source_tree(spec, source_dir)
spec.source.instance_of? Bundler::Source::Path and
- spec.source.path.fnmatch?(source_dir)
+ File.identical?(spec.source.path, source_dir)
end
BANNER = "Usage: rubygems.to_chunk SOURCE_DIR GEM_NAME [VERSION]"
@@ -62,6 +62,7 @@ class RubyGemChunkMorphologyGenerator < Importer::Base
end
source_dir, gem_name, expected_version = parsed_arguments
+ source_dir = File.absolute_path(source_dir)
if expected_version != nil
expected_version = Gem::Version.new(expected_version.dup)
end