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.
Files changed (3) hide show
  1. data/bin/unigunkan +4 -4
  2. data/lib/unigunkan/version.rb +1 -1
  3. 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.rm default_png_path.realpath
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
@@ -1,3 +1,3 @@
1
1
  module Unigunkan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unigunkan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: