xcmv 1.3.0 → 1.3.1

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xcmv.rb +2 -2
  3. data/lib/xcmv/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b1211a94c5f7daff4383d3aa05a5c20a65c66da
4
- data.tar.gz: add87d0f05d8d163d14543b75fc131b0f49f9995
3
+ metadata.gz: bc09271870332998bfdeb24f3b435837730355c1
4
+ data.tar.gz: 8bbf62a2c345fbf158d0bcc36348adea4990f2af
5
5
  SHA512:
6
- metadata.gz: 786a56f236c0f476ca80987dba5da88ca67a420e22fa614fe03a6599d8edc95f9a1b6b71eb77e1d2a62c82d49ccadd4b8f1e9014b317101fd2dc70dec4972292
7
- data.tar.gz: 5042a1ac63777486ee675d0f8e1439636c8a0fc255c847e85579638d9c4a4180cf020b32d49302d1121f84a2f22e6150d1373a370c5fb74558b7f56fd468e143
6
+ metadata.gz: 39f946096131dbbe9952bffff7eac7331a93cf7fe576cee68ab0c56b09cd8ff29a323d2888e8b02b837c0aee54d5bc343227a15c2e319df2f9ca5c374612222a
7
+ data.tar.gz: 3e7f0df5ee8a41f75703948424a026af5d854c5ba318d83026bdb5b0b8ee2af7ada043a1bf1db0e52baae0e5a4e1e86382030e03e755517bd3e26fb2ebefaf56
data/lib/xcmv.rb CHANGED
@@ -10,7 +10,7 @@ module XcodeMove
10
10
  # Moves from one `Pathname` to another
11
11
  def self.mv(src, dst, options)
12
12
  src_file = src.directory? ? Group.new(src) : File.new(src)
13
- dst_file = src_file.with_dirname(dst.dirname)
13
+ dst_file = dst.directory? ? src_file.with_dirname(dst) : File.new(dst)
14
14
 
15
15
  puts("#{src_file.path} => #{dst_file.path}")
16
16
 
@@ -45,7 +45,7 @@ module XcodeMove
45
45
  if src_file.pbx_file
46
46
  src_file.remove_from_project
47
47
  else
48
- warn("⚠️ Warning: #{src.path.basename} not found in #{src.project.path.basename}, moving anyway...")
48
+ warn("⚠️ Warning: #{src_file.path.basename} not found in #{src_file.project.path.basename}, moving anyway...")
49
49
  end
50
50
  end
51
51
 
data/lib/xcmv/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module XcodeMove
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcmv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliott Williams