file_pipeline 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/file_pipeline/versioned_file.rb +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 626e9aa686a528bc8bbcf08ba8a238cdfbae8d8b56918654cded4156964f831e
|
4
|
+
data.tar.gz: ffa0eeb52c3af6789362d0886b6f90c1ae03e647f9a94e7323bfe8b9ae71149b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577eeca6ca8df866f7521a534219290c3827208d28909c5b2cf1bab4f9dcaa33a5ac4cdd64860365eb4f49105208e95ce73951c24677b1f36563b3b9c8ef98d5
|
7
|
+
data.tar.gz: a5ce5a25f0be6ee92f2afde5a7b37d52de0ede4063be0b0c1cbb919ba1a3a0bf81b2cdb05dfcde50f875ba9d16afa79865cbc3f69b552df72cf2d73207a324df
|
@@ -144,6 +144,8 @@ module FilePipeline
|
|
144
144
|
# * +true+ - The finalized version will replace the #original.
|
145
145
|
def finalize(overwrite: false)
|
146
146
|
yield(self) if block_given?
|
147
|
+
return original unless changed?
|
148
|
+
|
147
149
|
filename = overwrite ? replacing_trarget : preserving_taget
|
148
150
|
FileUtils.rm original if overwrite
|
149
151
|
@original = Versions.copy(current, original_dir, filename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file_pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Stein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_exiftool
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.14.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.14.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-vips
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|