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 +4 -4
- data/install.sh +5 -7
- data/lib/vera/exiftool.rb +1 -1
- data/lib/vera/timestamp.rb +1 -1
- data/lib/vera/version.rb +1 -1
- data/vera-0.1.0.gem +0 -0
- metadata +1 -2
- data/1 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49ac4042e58861b59ed1173e956b2f4e7adf0476350c0d860a4c046f5480e2bb
|
4
|
+
data.tar.gz: 7d196399ffca78ce41b24f9768f473d3872f83d8b6797c68f23808a45706471e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e66192bf76b411fae6d2d7848b64d5be2c3ce3452e41763eebbb8facd58dac401aff0a7b859ba6a7c0757e91e00dbe881c336df723d99890516cbbbbf1c6a1
|
7
|
+
data.tar.gz: cbe46919fb33f10861fda1139c7c480dae4023610d548925f4ae7f5d33b0395d9c218539e85b81af7e42f4d60c883cc8e99ec964acc77127ec54493e0332d58d
|
data/install.sh
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
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
data/lib/vera/timestamp.rb
CHANGED
@@ -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
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.
|
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
|