2010-12-18 18 views
2

我正在本地開發一個gem。這是一個命令行實用程序,只有測試的依賴,和我的Gemfile看起來像這樣:Bundler的Gem開發:包含或排除Gemfile?

source :rubygems 
gemspec 

group :test do 
    gem "cucumber" 
    gem "aruba" 
    gem "rspec" 
end 

我gemspec看起來是這樣的:

Gem::Specification.new do |s| 
    # authorship stuff... 
    s.files = `git ls-files`.split("\n") 
end 

這是由捆紮機創建的默認gemspec。我知道我們應該將Gemfile和Gemfile.lock保存在源代碼控制中,但我想知道通過Gem::Specification#files屬性將它們包含在打包的gem中。在分佈式gem中包含Gemfile和Gemfile.lock是否存在爭論?這似乎很奇怪,或者至少對我來說沒有必要。

回答

1

耶胡達卡茨剛剛在這個話題上發表了博文! :Clarifying the Roles of the .gemspec and Gemfile

+0

這篇文章實際上提示了我的問題,但在添加TL之前我閱讀了它;澄清了創業板發展的條件。感謝您指點我。 – 2010-12-18 18:17:05

相關問題