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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3f6b6e99dc8156e49b60208f23adb7f3d32a22df01f91bdbb9165f6faebaf5e
4
- data.tar.gz: 9fe9fb46bb93632d0468228d5cf7ade776ca77ee0e9d5e5a2ee988b695f3b8d5
3
+ metadata.gz: 626e9aa686a528bc8bbcf08ba8a238cdfbae8d8b56918654cded4156964f831e
4
+ data.tar.gz: ffa0eeb52c3af6789362d0886b6f90c1ae03e647f9a94e7323bfe8b9ae71149b
5
5
  SHA512:
6
- metadata.gz: 891ba99532a1d81bc8af613e02daba79d20e7591cd82461b26230da57293c78101c96a6a9fb57472e41b09b076327c8088c22bd22a4ba2f6d1eded1e017b2ff3
7
- data.tar.gz: a08cf5f620a820cc2149c2807f9f8bea8177307d9d674d6edbd0817ae8ab8d05a5fad8b51eff6f4d4dc12d164f1892d01ae3d623e3ca610e015807570f8ba14a
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.9
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-01 00:00:00.000000000 Z
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.12.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.12.0
26
+ version: 0.14.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-vips
29
29
  requirement: !ruby/object:Gem::Requirement