vera 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e86fe32c2e677bcbb2698233d57b5c5007974d2ec987f533604f053c6f129db
4
- data.tar.gz: 9fc1f1cc5d427a686eb67c5f43af0564a906776e6a26ced826e72403447e2c36
3
+ metadata.gz: 49ac4042e58861b59ed1173e956b2f4e7adf0476350c0d860a4c046f5480e2bb
4
+ data.tar.gz: 7d196399ffca78ce41b24f9768f473d3872f83d8b6797c68f23808a45706471e
5
5
  SHA512:
6
- metadata.gz: 956eef3b90af82883d70184024507d6fe4262c9aaee24eac6eb4d2036a264a691b3c9d84da6a08bd53072965e5282531e55281f603fe3dc05b05406092169398
7
- data.tar.gz: e1748beacb712484086ee161ac905b88f35ac8507c317e0384928e03de78a8fd8cf170ced48c9d29331833799e6f2ccd7ab9a1861f5e8dc834c2a82c0059c14a
6
+ metadata.gz: d8e66192bf76b411fae6d2d7848b64d5be2c3ce3452e41763eebbb8facd58dac401aff0a7b859ba6a7c0757e91e00dbe881c336df723d99890516cbbbbf1c6a1
7
+ data.tar.gz: cbe46919fb33f10861fda1139c7c480dae4023610d548925f4ae7f5d33b0395d9c218539e85b81af7e42f4d60c883cc8e99ec964acc77127ec54493e0332d58d
data/install.sh CHANGED
@@ -1,8 +1,7 @@
1
- # RESULT=$(which exiftool)
2
- # if [ "$RESULT" != "exiftool not found" ]; then
3
- # echo "Dependencies already installed and work correctly."
4
- # exit
5
- # fi
1
+ if which exiftool >/dev/null; then
2
+ echo "Dependencies already installed and work correctly."
3
+ exit
4
+ fi
6
5
 
7
6
  VERSION=Image-ExifTool-12.19
8
7
 
@@ -19,8 +18,7 @@ rm /tmp/$VERSION.tar.gz
19
18
  rm -rf /tmp/$VERSION
20
19
 
21
20
  echo "Testing dependencies..."
22
- RESULT=$(which exiftool)
23
- if [ "$RESULT" != "exiftool not found" ]; then
21
+ if which exiftool >/dev/null; then
24
22
  echo "Dependencies installed correctly."
25
23
  else
26
24
  echo "Error installing dependencies. Please install exiftool manually."
data/lib/vera/exiftool.rb CHANGED
@@ -7,7 +7,7 @@ module Vera
7
7
  end
8
8
 
9
9
  def self.is_installed?
10
- !`which exiftool 2>1`.include?("not found")
10
+ system("which exiftool >/dev/null")
11
11
  end
12
12
  end
13
13
  end
@@ -25,11 +25,11 @@ module Vera
25
25
 
26
26
  def self.rename_files_with_date(path, ext, date_property)
27
27
  files = Lister.all_files(path, ext)
28
+ puts "✅ Correcting timestamp for #{files.length} #{ext} files..."
28
29
  if files.empty?
29
30
  puts 'Nothing to do here'
30
31
  return
31
32
  end
32
- puts "✅ Correcting timestamp for #{files.length} #{ext} files..."
33
33
  files_string = files.map { |f| "\"#{f[:path]}\"" }.join(' ')
34
34
  Exiftool.change_timestamp date_property, files_string
35
35
  end
data/lib/vera/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vera
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/vera-0.1.0.gem CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cortés
@@ -75,7 +75,6 @@ executables:
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - "./1"
79
78
  - "./Gemfile"
80
79
  - "./Gemfile.lock"
81
80
  - "./LICENSE.txt"
data/1 DELETED
File without changes