lib/cocoapods-tdfire-binary/command/push.rb in cocoapods-tdfire-binary-1.3.7 vs lib/cocoapods-tdfire-binary/command/push.rb in cocoapods-tdfire-binary-1.3.8
- old
+ new
@@ -39,14 +39,16 @@
spec = Specification.from_file(Pathname.new(first_podspec))
version = spec.version if version.nil?
name = spec.name
end
- path += ZIP_SUBFFIX unless path.end_with?(ZIP_SUBFFIX)
+ if path
+ path += ZIP_SUBFFIX unless path.end_with?(ZIP_SUBFFIX)
+ end
@path = path
- @name = name || path.split('/').last.sub(ZIP_SUBFFIX, '')
+ @name = name || path.split('/').last.sub(ZIP_SUBFFIX, '') if path
@version = version
@commit = commit
super
end
\ No newline at end of file