Skip to content

Commit 18e089d

Browse files
committed
Updated gemspec
1 parent 91dabf2 commit 18e089d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ rescue LoadError
3838
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
3939
end
4040

41+
extra_files = %w[LICENSE.txt THANKS.txt CHANGES.txt ]
4142
RDoc::Task.new do |rdoc|
4243
rdoc.rdoc_dir = "rdoc"
4344
rdoc.title = "#{name} #{version}"
4445
rdoc.generator = 'hanna' # gem install hanna-nouveau
4546
rdoc.main = 'README.rdoc'
4647
rdoc.rdoc_files.include("README*")
47-
rdoc.rdoc_files.include("LICENSE.txt")
48-
rdoc.rdoc_files.include("THANKS.txt")
49-
rdoc.rdoc_files.include("CHANGES.txt")
5048
rdoc.rdoc_files.include("bin/*.rb")
5149
rdoc.rdoc_files.include("lib/**/*.rb")
50+
extra_files.each { |file|
51+
rdoc.rdoc_files.include(file) if File.exists?(file)
52+
}
5253
end
5354

net-sftp.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ Gem::Specification.new do |s|
1414
s.description = "A pure Ruby implementation of the SFTP client protocol"
1515
s.email = "[email protected]"
1616
s.extra_rdoc_files = [
17+
"LICENSE.txt",
1718
"README.rdoc"
1819
]
1920
s.files = [
2021
"CHANGES.txt",
22+
"LICENSE.txt",
2123
"Manifest",
2224
"README.rdoc",
2325
"Rakefile",

0 commit comments

Comments
 (0)