voltron-upload 0.2.2 → 0.2.3

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: 1284c3d9a0ddb198796c3c5fbb5721fc4abf24cf6926e519429f7f5146752c14
4
- data.tar.gz: 0e1991a8271c3efe2c8429078ef47a7a6b7c07d9757872cbc1cc2ce6bf040efc
3
+ metadata.gz: 9b87ed9751e6018b0698d41d49545367cbdbbe99e84a44f4cfb5590441f703b9
4
+ data.tar.gz: 7fa550a62cd45b7df0fdc2b7a835b9bf8b1cf80ebaf31996a337aaa62d202d6e
5
5
  SHA512:
6
- metadata.gz: 7bcb7a998a32adf0c489fefc3d3f657b8a271e466e16928c6d11889a4b7378f59205ed4837e561462ced3cd9672ee3e8756cbf113828b32276ff208bbd526553
7
- data.tar.gz: ddd79faf9f837c855d224d88496c44c852638af19a32bde763e41cda845d61369eb3d721ce0fdd054d35fe567adbc299f399eff112bdf4e69bdfa7dcc1d267c8
6
+ metadata.gz: fb4683f1ebdd417c7f435cc5f47aafa8b57207203702b42e486efa0994b41bda8a8ab4ded5cc94d9070e356eb4ca2e54340e9f14fe3108a8d1ca8b94d0d13922
7
+ data.tar.gz: 25602ebae2f6d9574296982f6fa8c116b24ed433dbc71df0ecdd6671551f67983556e845c8925faad04590f573479e152f5b93d3393d3022eb6afd96314ae827
@@ -56,7 +56,9 @@ module Voltron
56
56
  # as it will be part of the generated id
57
57
  def apply_timestamp(*args)
58
58
  @offset ||= rand(1..1000)
59
- FileUtils.touch file.path, mtime: Time.now + @offset.seconds
59
+ if File.exist?(file.path)
60
+ FileUtils.touch file.path, mtime: Time.now + @offset.seconds
61
+ end
60
62
  end
61
63
 
62
64
  end
@@ -1,5 +1,5 @@
1
1
  module Voltron
2
2
  module Upload
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.2.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voltron-upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hainer