rxfreadwrite 0.1.4 → 0.1.5

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: f590af109926771c33146cd9d67028c7265dc21b1325d73db1030ffe9b986c60
4
- data.tar.gz: 98b4786889d566036dd90f2fe2f742f88a9aca70bb1d2a90b494d932e9728bc9
3
+ metadata.gz: e4a5e0be2ab188873e5b66442a41c9323cb2cdc147479a4f345e0bf8f65a5169
4
+ data.tar.gz: 789b30722ba41958c2583339ae81517a6b9e15add206257962e46487cd30fafc
5
5
  SHA512:
6
- metadata.gz: c4fa55f10256f185dbf553ae60b089536481f35211ba69cfe78fed0242f79144c4dd3d31d5af969209e2eb9c8c3ba071ef263009977de7c1a97d4e825e31d1f5
7
- data.tar.gz: f79b56d926a4020edebfc687863d38e2ed7d92da233d6e0b36856a9d8d12df9f04e08e7933d9f99687112a26a5bf76e59d40ffa1c38515fd7cd18746cb34f3a2
6
+ metadata.gz: c4111afd84565a9548023a8986574548332d3f37f3d7fd09da6ac21df8163ff46feb71142694cd45c001878071d945662ebc29a8b7ba4c6f9976db35c3728c89
7
+ data.tar.gz: 401e36e30e4f859afa88ef3087a73299546431adb139bb8aef1b04b885d5d41a364784cfcc5c47708d6aeb79c597881ebdf5c864633006c5a3e7717fb5c57396
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfreadwrite.rb CHANGED
@@ -8,7 +8,6 @@ require 'rxfreader'
8
8
  module RXFReadWriteModule
9
9
  include RXFRead
10
10
 
11
-
12
11
  class DirX
13
12
 
14
13
  def self.glob(s) RXFReadWrite.glob(s) end
@@ -17,51 +16,8 @@ module RXFReadWriteModule
17
16
 
18
17
  end
19
18
 
20
- def FileX.exists?(filename)
21
-
22
- type = FileX.filetype(filename)
23
-
24
- filex = case type
25
- when :file
26
- File
27
- when :dfs
28
- DfsFile
29
- else
30
- nil
31
- end
32
-
33
- return nil unless filex
34
-
35
- filex.exists? filename
36
-
37
- end
38
-
39
-
40
- def FileX.filetype(x)
41
-
42
- return :string if x.lines.length > 1
43
-
44
- case x
45
- when /^https?:\/\//
46
- :http
47
- when /^dfs:\/\//
48
- :dfs
49
- when /^file:\/\//
50
- :file
51
- else
52
-
53
- if File.exists?(x) then
54
- :file
55
- else
56
- :text
57
- end
58
-
59
- end
60
- end
61
-
62
19
  def FileX.mkdir(s) RXFReadWrite.mkdir(s) end
63
20
  def FileX.mkdir_p(s) RXFReadWrite.mkdir_p(s) end
64
-
65
21
  def FileX.rm(s) RXFReadWrite.rm(s) end
66
22
 
67
23
  def FileX.rm_r(s, force: false)
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file