我刚刚完成构建,尝试推送gem我遇到以下错误:保存宝石时出现问题:
主页似乎不是有效的网址。
这是我的gemspec:
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'upkeeper/version'
Gem::Specification.new do |spec|
spec.name = "upkeeper"
spec.version = Upkeeper::VERSION
spec.authors = ["andela-obogbare"]
spec.email = ["alexonozor@gmail.com"]
spec.summary = %q{File upload gem}
spec.description = %q{This is a file uploader gem that will be tied to you model and upload a file for you}
spec.homepage = ""
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0"
end
答案 0 :(得分:3)
我不确定这个错误,但将主页设置为github页面网址有什么问题?这就是我通常在宝石中看到的:
s.homepage = 'https://github.com/mdeering/attribute_normalizer'