rxfreadwrite 0.1.2 → 0.1.3

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: 62d72dbfd84621d305b00946635142609412712280a7599af53ef4842cec1a77
4
- data.tar.gz: 5b12835da2134372f6264dbc10a0ccb450da111a31d3379d1bd5f1d30f944ba9
3
+ metadata.gz: 95295c82220fac32aad607d93eb02499e847e50b10241c5988e501cfbe47836e
4
+ data.tar.gz: 321f4eb44aced8e168d4569794a729a2b0988ac84919692c4a62a9844c0205c9
5
5
  SHA512:
6
- metadata.gz: '09fa98a6465a9ca7b63b7318732212d6eb0452571db8d66e5c726d5aade15b87c823710eae87074f328a31f2d0bf98209fd5e19fc4ae5f2fe821a71677fd2d83'
7
- data.tar.gz: 67f699c23379f6a72ddd8884ebc06a312cf4365798b511344501b25403699e3bf8a30017830d6d226689b28f9539dd1db128c9260ebc75afbfb1137a2de2ae89
6
+ metadata.gz: 3fe0e6d2836ac67e079630480e8fda469f042621c66312e67d8e766b2396235834befe0ccedfb8aeac57a7aec78cc31abb6e0ba6b33cab17f826d86bd8f4fa47
7
+ data.tar.gz: 7204f4795f43b7d45a82d1d5b99f948d355e8687e2428731ae143942228ce2db75f845a0b763079ad9acb8c453ff839793091266f8e6eee31f7436615462c58c
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfreadwrite.rb CHANGED
@@ -57,6 +57,10 @@ module RXFReadWriteModule
57
57
  end
58
58
  end
59
59
 
60
+ def FileX.touch(s, mtime: Time.now)
61
+ RXFReadWrite.touch(s, mtime: mtime)
62
+ end
63
+
60
64
  def FileX.write(x, s)
61
65
  RXFReadWrite.write(x, s)
62
66
  end
@@ -78,6 +82,18 @@ class RXFReadWrite < RXFReader
78
82
  end
79
83
 
80
84
  end
85
+
86
+ def self.touch(filename, mtime: Time.now)
87
+
88
+ case filename[/^\w+(?=:\/\/)/]
89
+ when 'dfs'
90
+ DfsFile.touch filename, mtime: mtime
91
+ else
92
+ FileUtils.touch filename, mtime: mtime
93
+ end
94
+
95
+ end
96
+
81
97
  def self.write(location, s=nil)
82
98
 
83
99
  case location
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxfreadwrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  gnYmJHVhKvNaFwL4ryulhkA+n8o3Ve6Kzo/AGlO2+Ge6H0bqIUbS8UisqDa7IwlY
36
36
  tvleW582+lzMrpAfWdGb4VFX
37
37
  -----END CERTIFICATE-----
38
- date: 2022-02-20 00:00:00.000000000 Z
38
+ date: 2022-02-21 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rxfreader
metadata.gz.sig CHANGED
Binary file