osx-copy-tags 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66c3f36db65206c5edd937635960a389fb45fa6a
4
- data.tar.gz: cfad7b8cd4a5e566d27ee9a7f333ef9134c380ec
3
+ metadata.gz: c45fa02e8c0f6d58eb4e59c1d3b674db476097d3
4
+ data.tar.gz: f01c1da6d23b3f64c6a25a80355e1d429200aa9c
5
5
  SHA512:
6
- metadata.gz: 3297b46cfe430c37fcd1027348bc9784508972f348dc8aea8d07297359830461f318590a94432947cd6e7d731d4e5e54f13e3792e0bf79aa2c483e02cc0afa4a
7
- data.tar.gz: 4341f5ddf9f9c334d9fb25efef2a966bb744ab242071aa33685b5e4572b2824da37155b959eb40edbcfa6afa0178a0a515404362224d20db7f41062ce464d3d5
6
+ metadata.gz: 40570c45b6c51658f8cc57d673aca899d1beff8ff70caea47cadae86cd7ea1cd16bab9bd64271d697d499d1d98c5eb87d92d122bbe4ec227314472dec3cf9c90
7
+ data.tar.gz: 3db3c28eaf4a96a545e46bb9b0ae893e6c064e6d885a97b2098dc89c9d07c65bb3e25ed1eaa5a9902f4c929757aa41fef21a1340d81174e96edd386427e7553f
data/bin/copy-tags CHANGED
@@ -7,18 +7,6 @@ if ARGV.count != 2
7
7
  usage: copy-tags [sourcefolder] [targetfolder]
8
8
  EOM
9
9
 
10
- # Dir.foreach(ARGV[0]) do |file|
11
-
12
- # fullpath = ARGV[0]+"/"+file
13
-
14
- # next if file.chr == "."
15
-
16
-
17
- # system "tag -r #{fullpath}"
18
-
19
- # puts fullpath
20
- # end
21
-
22
10
  if ARGV.count != 0
23
11
  puts "You haven't given the correct argument number!\n".red
24
12
  end
@@ -49,14 +49,16 @@ module CopyTags
49
49
  sourceFilePath = @source_folder+"/#{file}"
50
50
  targetFilePath = @target_folder+"/#{file}"
51
51
 
52
- tagString = `tag #{sourceFilePath} --no-name`.delete!("\n")
53
- if tagString.include? " "
52
+ tagString = `tag #{sourceFilePath} --no-name`
53
+ tagString = tagString.delete!("\n")
54
+
55
+ if tagString and tagString.include? " "
54
56
  tagString[" "] = "\\ "
57
+ puts tagString.yellow
55
58
  end
56
59
 
57
60
  matching = File.exists?(targetFilePath)
58
61
 
59
- puts tagString.yellow
60
62
 
61
63
  # #if file is found
62
64
  if matching
@@ -1,3 +1,3 @@
1
1
  module OsxCopyTags
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osx-copy-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Renner