2015-07-11 120 views
0

我正在嘗試創建我的第一個ruby Gem。運行bundle gem familysearch2後,我開始得到這個當我運行bundle install/bundle install'運行後給出錯誤'bundle gem [gemname]'

The gemspec at 
/code/familysearch2-rb/familysearch2/familysearch2.gemspec is not 
valid. The validation error was '"FIXME" or "TODO" is not a description' 

我gemspec文件看起來像這樣:

Gem::Specification.new do |s| 
    s.name  = "familysearch2" 
    s.version  = "0.0.1" 
    s.platform = Gem::Platform::RUBY 
    s.authors  = ["kinezu"] 
    s.homepage = "https://github.com/kinezu/familysearch2-rb" 
    s.summary  = %q{Ruby gem for access the familysearch api.} 
    s.description = %q{Ruby gem for access the familysearch api} 

    s.files   = `git ls-files`.split("\n") 
    s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") 
    s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } 
    s.require_paths = ["lib"] 

    s.add_dependency 'json' 
    s.add_dependency 'faraday' 

    s.add_development_dependency 'rspec' 
end 

回答

0

好吧,我回答我自己的noob問題:

新gemspec文件:

# coding: utf-8 
lib = File.expand_path('../lib', __FILE__) 
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 
require 'familysearch2/version' 

Gem::Specification.new do |spec| 
    spec.name   = "familysearch2" 
    spec.version  = Familysearch2git::VERSION 
    spec.authors  = ["kinezu"] 
    spec.email   = ["[email protected]"] 

    spec.summary  = "Familysearch api tool" 
    spec.description = "Familysearch api tool" 
    spec.homepage  = "https://github.com/kinezu/familysearch2-rb" 
    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_dependency 'json' 
    spec.add_dependency 'faraday' 

    spec.add_development_dependency 'rspec' 
    spec.add_development_dependency "bundler", "~> 1.10" 
    spec.add_development_dependency "rake", "~> 10.0" 
end 

在此之後,我跑了:

gem build familysearch2.gemspec 
rake build 
gem push pkg/familysearch2-0.1.0.gem 
0

你的總結和說明現在看起來罰款。也許你需要進行軟件包更新。

請記住,在你的Gemfile中使用了寶石的應用程序,你可以這樣做:

gem 'familysearch2', path: '/your/path/to/gem' 
+0

'bundl e更新「沒有解決問題。 – kinezu

相關問題