unigunkan 0.0.2 → 0.0.3
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.
- data/bin/unigunkan +4 -4
- data/lib/unigunkan/version.rb +1 -1
- metadata +1 -1
data/bin/unigunkan
CHANGED
@@ -19,7 +19,7 @@ input = "#{input}/project.pbxproj" if !File.exists?(input) || File::ftype(input)
|
|
19
19
|
|
20
20
|
if !File.exists?(input)
|
21
21
|
STDERR.puts "Xcode project file not found in #{ARGV[0]}."
|
22
|
-
exit
|
22
|
+
exit false
|
23
23
|
end
|
24
24
|
|
25
25
|
if backup_confirmed != true
|
@@ -28,7 +28,7 @@ if backup_confirmed != true
|
|
28
28
|
STDERR.puts "If the project was broken, delete project.pbxproj and restore from a backup."
|
29
29
|
STDERR.puts " "
|
30
30
|
STDERR.puts "OK? Then append '-y' and run again. `unigunkan #{ARGV.join(' ')} -y`"
|
31
|
-
exit
|
31
|
+
exit false
|
32
32
|
end
|
33
33
|
|
34
34
|
# create a backup
|
@@ -63,9 +63,9 @@ if disable_retina_4inch_support
|
|
63
63
|
STDOUT.puts "Default-568h@2x.png not found in this project. No lines removed."
|
64
64
|
end
|
65
65
|
|
66
|
-
default_png_path = Pathname.new(input + "/../../Default-568h@2x.png")
|
66
|
+
default_png_path = Pathname.new(input + "/../../Default-568h@2x.png").realpath
|
67
67
|
|
68
|
-
FileUtils.
|
68
|
+
FileUtils.mv default_png_path, default_png_path + ".backup" + Time.now.strftime("%Y%m%d%H%M%S")
|
69
69
|
end
|
70
70
|
|
71
71
|
# delete the original
|
data/lib/unigunkan/version.rb
CHANGED