File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,17 @@ rescue LoadError
38
38
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
39
39
end
40
40
41
+ extra_files = %w[ LICENSE.txt THANKS.txt CHANGES.txt ]
41
42
RDoc ::Task . new do |rdoc |
42
43
rdoc . rdoc_dir = "rdoc"
43
44
rdoc . title = "#{ name } #{ version } "
44
45
rdoc . generator = 'hanna' # gem install hanna-nouveau
45
46
rdoc . main = 'README.rdoc'
46
47
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" )
50
48
rdoc . rdoc_files . include ( "bin/*.rb" )
51
49
rdoc . rdoc_files . include ( "lib/**/*.rb" )
50
+ extra_files . each { |file |
51
+ rdoc . rdoc_files . include ( file ) if File . exists? ( file )
52
+ }
52
53
end
53
54
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ Gem::Specification.new do |s|
14
14
s . description = "A pure Ruby implementation of the SFTP client protocol"
15
15
16
16
s . extra_rdoc_files = [
17
+ "LICENSE.txt" ,
17
18
"README.rdoc"
18
19
]
19
20
s . files = [
20
21
"CHANGES.txt" ,
22
+ "LICENSE.txt" ,
21
23
"Manifest" ,
22
24
"README.rdoc" ,
23
25
"Rakefile" ,
You can’t perform that action at this time.
0 commit comments