rxfhelper 1.4.0 → 1.4.1

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: ebb8a8524b0128715988cb60a6cbf51349bc00accaed990a9bd6b9b149762d27
4
- data.tar.gz: 90b21fc2c3b3f13fed66d03a0092e5142502bf474fce7aea4a6b7d35275fa440
3
+ metadata.gz: dcd17284d8b25c5e1f13822ac915ae2aea99f35d5f16a7d60e75de6a5375ec6f
4
+ data.tar.gz: 1219b2fa5db461da843aa8e34044ce233c0d5f4efe36fe06d065a97a4690f436
5
5
  SHA512:
6
- metadata.gz: c83ff90aea8d4c98f27e8c7f4c8f33a9492d0421d1c932f858a6b39b1016c886b47cc60570e253ede91c4a9b7632e2c14b637e2072a02bb3e40803662e29e761
7
- data.tar.gz: 347421d92512c46f4313489b36fd76e30befcefbdf541759592f5f65d4e4840f3da627baec4640eefcd7eeba361fe303df73a6dd6d9859b1886164dbf0a2364e
6
+ metadata.gz: 17dad46db34c4de8354b0a2e74081844e79b9e7ad60f3a494a4d1382f047892b35358077c2025b3efc69079ee8852a447a39238329e817a213700f719545556f
7
+ data.tar.gz: 1e40245b0342bc97eb8f3500f22c15113b0e57cd82e208f07f3d2af3d5d8cf758bfb55e9f0736a35024060ffc62e1d04ee415966e54552a1d46147014d6e5f77
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rxfhelper.rb CHANGED
@@ -15,10 +15,49 @@ require 'rxfileio'
15
15
  module RXFHelperModule
16
16
  include RXFileIOModule
17
17
 
18
+ def FileX.exists?(s) RXFHelper.exists?(s) end
19
+ def FileX.filetype(x) RXFHelper.filetype(s) end
18
20
 
19
- def FileX.exists?(filename)
21
+ end
22
+
23
+ =begin
24
+ # 20th February 2022 # JR
25
+ # the following code has been commented out because it appears to be redundant
26
+ class URL
27
+
28
+ def self.join(*a)
29
+ a.map {|x| x.sub(/(?:^\/|\/$)/,'') }.join '/'
30
+ end
31
+ end
32
+ =end
33
+
34
+ class RXFHelperException < Exception
35
+ end
36
+
37
+ # Read XML File Helper
38
+ #
39
+ class RXFHelper < RXFileIO
40
+ using ColouredText
41
+
42
+
43
+ def self.call(s)
44
+
45
+ if s =~ /=/ then
20
46
 
21
- type = FileX.filetype(filename)
47
+ uri, val = s.split(/=/)
48
+ self.set uri, val
49
+
50
+ else
51
+
52
+ self.get s
53
+
54
+ end
55
+
56
+ end
57
+
58
+ def self.exists?(filename)
59
+
60
+ type = self.filetype(filename)
22
61
 
23
62
  filex = case type
24
63
  when :file
@@ -38,8 +77,7 @@ module RXFHelperModule
38
77
 
39
78
  end
40
79
 
41
-
42
- def FileX.filetype(x)
80
+ def self.filetype(x)
43
81
 
44
82
  return :string if x.lines.length > 1
45
83
 
@@ -65,43 +103,6 @@ module RXFHelperModule
65
103
  end
66
104
  end
67
105
 
68
- end
69
-
70
- =begin
71
- # 20th February 2022 # JR
72
- # the following code has been commented out because it appears to be redundant
73
- class URL
74
-
75
- def self.join(*a)
76
- a.map {|x| x.sub(/(?:^\/|\/$)/,'') }.join '/'
77
- end
78
- end
79
- =end
80
-
81
- class RXFHelperException < Exception
82
- end
83
-
84
- # Read XML File Helper
85
- #
86
- class RXFHelper < RXFileIO
87
- using ColouredText
88
-
89
-
90
- def self.call(s)
91
-
92
- if s =~ /=/ then
93
-
94
- uri, val = s.split(/=/)
95
- self.set uri, val
96
-
97
- else
98
-
99
- self.get s
100
-
101
- end
102
-
103
- end
104
-
105
106
 
106
107
  def self.get(x)
107
108
 
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.4.0
4
+ version: 1.4.1
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-22 00:00:00.000000000 Z
38
+ date: 2022-03-02 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rsc
@@ -106,7 +106,7 @@ dependencies:
106
106
  version: '0.2'
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 0.2.0
109
+ version: 0.2.2
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  version: '0.2'
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 0.2.0
119
+ version: 0.2.2
120
120
  description:
121
121
  email: digital.robertson@gmail.com
122
122
  executables: []
metadata.gz.sig CHANGED
Binary file