rxfhelper 1.2.3 → 1.2.4

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: 28e436ed54b4585bc6386e61934df9ef818720c3bda4948df520c44c9d0671bc
4
- data.tar.gz: bed423faffffcee3e793eb0e2c739302a65f8e4d36241a4902c337bb07bb455f
3
+ metadata.gz: 0b78603e8153b7dea1846f2eb4d0ea043f57b57482884427b6aace2084bbaf3e
4
+ data.tar.gz: 587c9eaacf707615a39dbad35b2710e90a1ca4210e9b9ec0fa10ccaddb32f23c
5
5
  SHA512:
6
- metadata.gz: c13aa7cd67307d6b551fe77d56e326f077f47ab84f1ca1343ec60891b94545957d8d858884296d7c19118bda9d343bbad890deb97b245d58bcfc62f36e4ca74c
7
- data.tar.gz: 8369514628a2a8993ea66fb7fb8623ed0771818df78dad09b6bc1c3ea7bfd4b7b230a39504c762d18c6aca4537f0b7af4c56499ee7c578b1445aec59d2c06e28
6
+ metadata.gz: 1dda34bd5be25db3997aad0e216c16f96de4634079d595b58a0856b64d731040e51aae82eaa159b43f27980170dcb99244ca3a90e487141e1963858a54f458d7
7
+ data.tar.gz: 40e54dc7853bd4bbe6745ede8dd815aa8eb5f2f41be39f265d4e47ee1a9cdf55664abf8ea30deb86325487b2f2c1b408842f873053f7ffdc025fc02e4b8c99f3
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -110,7 +110,11 @@ module RXFHelperModule
110
110
  def self.pwd() RXFHelper.pwd() end
111
111
  def self.read(x) RXFHelper.read(x).first end
112
112
  def self.rm(s) RXFHelper.rm(s) end
113
- def self.touch(s) RXFHelper.touch(s) end
113
+
114
+ def self.touch(s, mtime: Time.now)
115
+ RXFHelper.touch(s, mtime: mtime)
116
+ end
117
+
114
118
  def self.write(x, s) RXFHelper.write(x, s) end
115
119
  def self.zip(s, a) RXFHelper.zip(s, a) end
116
120
 
@@ -404,19 +408,19 @@ class RXFHelper
404
408
 
405
409
  end
406
410
 
407
- def self.touch(filename)
411
+ def self.touch(filename, mtime: Time.now)
408
412
 
409
413
  if @fs[0..2] == 'dfs' then
410
- return DfsFile.touch(@fs + pwd + '/' + filename)
414
+ return DfsFile.touch(@fs + pwd + '/' + filename, mtime: mtime)
411
415
  end
412
416
 
413
417
  case filename[/^\w+(?=:\/\/)/]
414
418
  when 'dfs'
415
- DfsFile.touch filename
416
- when 'ftp'
417
- MyMediaFTP.touch filename
419
+ DfsFile.touch filename, mtime: mtime
420
+ #when 'ftp'
421
+ # MyMediaFTP.touch filename
418
422
  else
419
- FileUtils.touch filename
423
+ FileUtils.touch filename, mtime: mtime
420
424
  end
421
425
 
422
426
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  MrrH8cS6bqJRPQqEL1FsPmXfQpp86RvPSr0WqNSRnYEUCmqL0l2pYrXdPAyBLcji
36
36
  X1jPyhH0sl/QdPdaUnsigze+
37
37
  -----END CERTIFICATE-----
38
- date: 2022-02-07 00:00:00.000000000 Z
38
+ date: 2022-02-08 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rsc
metadata.gz.sig CHANGED
Binary file