doc_to_dash 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/doc_to_dash.rb +2 -1
- data/lib/doc_to_dash/version.rb +1 -1
- metadata +1 -1
data/lib/doc_to_dash.rb
CHANGED
@@ -96,7 +96,8 @@ module DocToDash
|
|
96
96
|
|
97
97
|
unless @options[:icon_path].nil?
|
98
98
|
FileUtils.cp @options[:icon_path], @docset_path + '/'
|
99
|
-
|
99
|
+
filename = File.basename(@options[:icon_path])
|
100
|
+
FileUtils.mv @docset_path + '/' + filename, @docset_path + '/icon.png' if filename != 'icon.png'
|
100
101
|
end
|
101
102
|
|
102
103
|
File.open(@docset_path + '/Contents/Info.plist', 'w+') { |file| file.write(default_plist.gsub('{DOCSET_NAME}', @options[:docset_name])) }
|
data/lib/doc_to_dash/version.rb
CHANGED