doc_to_dash 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- FileUtils.mv @docset_path + '/' + File.basename(@options[:icon_path]), @docset_path + '/icon.png'
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])) }
@@ -1,3 +1,3 @@
1
1
  module DocToDash
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc_to_dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: