micro_exiftool 0.1.1 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/micro_exiftool/file.rb +2 -0
- data/lib/micro_exiftool/version.rb +1 -1
- data/spec/file_spec.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e2e53e96c74e2d492e14fb192bb97fe3a65c5e0
|
|
4
|
+
data.tar.gz: 586971c4588b1829474ac56def1519238d270f13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b89c2ba3ccca0719737cdb1e53108394f534d1f1bd433fc89583e7e0b22a35b37525e285cc44beea3a86b9cf5fd08e79fc0398e86cd5b1ed2fcb4da1d17eddcc
|
|
7
|
+
data.tar.gz: d43c3b21979a482e2685e4a882863ff9a73a2ff4522f1d60ca176afbefab2c45652b23ae5bae969f8b4c69a3dc3d61b9f83b05802b92e1b7be030ec136b04507
|
data/Gemfile.lock
CHANGED
data/lib/micro_exiftool/file.rb
CHANGED
data/spec/file_spec.rb
CHANGED
|
@@ -133,6 +133,16 @@ describe MicroExiftool::File do
|
|
|
133
133
|
}.should raise_error(MicroExiftool::ExifToolError, "Error running exiftool:\nsome error")
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
+
it 'will give a useful error if exiftool is not installed' do
|
|
137
|
+
Open3.stub(:capture3).and_raise(Errno::ENOENT)
|
|
138
|
+
|
|
139
|
+
proc {
|
|
140
|
+
subject.update!(
|
|
141
|
+
'EXIF:Copyright' => 'The new EXIF Copyright',
|
|
142
|
+
)
|
|
143
|
+
}.should raise_error(MicroExiftool::ExifToolError, 'Exiftool not installed')
|
|
144
|
+
end
|
|
145
|
+
|
|
136
146
|
end
|
|
137
147
|
|
|
138
148
|
end
|