rscript 0.8.0 → 0.9.0

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: b07cead05d35529f8891fe210ec1c0b1d49c8cdf153ea67dff5f1e4c1f8e3175
4
- data.tar.gz: ab3b6d8d7b72609adb786be4fdc46cc4d867c78a4bbebc1a993a7df8fbad6a8c
3
+ metadata.gz: 4790f50f6b960f81bb273f841ec59e8e6bdc0553d651a6ff0d4ceeb7d8a7bece
4
+ data.tar.gz: 7ae85febaa15bd76547e2402398df203ff2675021686be3672b101ffdbf68b28
5
5
  SHA512:
6
- metadata.gz: 1d6380efacb9670cf49a7be6ec261b3769d1b813d639365952923b1d47dab024251e5d8050fdde69085d5206f98e0c40ba513a17de6f70cdfa9004414407dcf5
7
- data.tar.gz: a880349b7f95b215cdb3589b4915cf39cc562cc22b6f86f0c28e1da84d05bd539dabf825a4121c4c0d44845221634067269e9eac7fdedd56efe57e138323abfd
6
+ metadata.gz: 94de2eb3ee1fe8ce0817c3edd5ef2829ff23efb379ce23292ba738fd5dfb019be34b636bc044b01dd6b2858cc6474ec1390050579fe8a7b660d5fe327a3a64ca
7
+ data.tar.gz: 1a0493e7665bf829b0f251e92bc226af8a33cd0021050c29942884c8254a89dade8e97950e7cc091c8633578db0613fa2289fb4d994d483b1530d5457c53d618
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rscript.rb CHANGED
@@ -3,10 +3,11 @@
3
3
  # file: rscript.rb
4
4
 
5
5
  # created: 1-Jul-2009
6
- # updated: 00-Mar-2019
6
+ # updated: 22-Feb-2022
7
7
 
8
8
  # modification:
9
9
 
10
+ # 21-Feb-2022: minor improvement: Replaced RXFHelper with RXFReader
10
11
  # 00-Mar-2019: feature: An explicit path or implicit path now can be
11
12
  # specified in the src attribute
12
13
  # 05-Mar-2019: feature: Added the class RScriptRW for :get, :post typed jobs
data/lib/rscript_base.rb CHANGED
@@ -3,26 +3,25 @@
3
3
  # file: rscript_base.rb
4
4
 
5
5
  require 'cgi'
6
- require 'open-uri'
7
- require 'rxfhelper'
6
+ require 'rxfreader'
8
7
 
9
8
  class RScriptBase
10
9
  using ColouredText
11
-
10
+
12
11
  def initialize(debug: false)
13
12
  @debug = debug
14
13
  end
15
-
14
+
16
15
  def read(doc)
17
16
  doc.root.xpath('//script').map {|s| run_script(s)}.join(';')
18
17
  end
19
-
18
+
20
19
  protected
21
-
20
+
22
21
  def read_script(script)
23
22
  puts 'inside read_script'.info if @debug
24
23
  out_buffer = ''
25
-
24
+
26
25
  src = script.attributes[:src]
27
26
 
28
27
  out_buffer = if src then
@@ -30,26 +29,30 @@ class RScriptBase
30
29
  else
31
30
  script.texts.join("\n")
32
31
  end
33
-
32
+
34
33
  out_buffer
35
34
  end
36
-
35
+
37
36
  def read_sourcecode(rsf)
38
-
39
- puts 'inside read_sourcecode'.info if @debug
40
- #@log.debug 'rsf: ' + rsf.inspect if @log
41
- #@log.debug 'url_base: ' + @url_base.inspect if @log
42
-
37
+
38
+ if @debug then
39
+ puts 'inside read_sourcecode'.info
40
+ puts 'detail: ' + [@url_base, @url_dir, rsf].inspect
41
+ end
42
+
43
+ @log.debug 'rsf: ' + rsf.inspect if @log
44
+ @log.debug 'url_base: ' + @url_base.inspect if @log
45
+
43
46
  path = case rsf
44
- when /^\//
45
- @url_base =~ /^\// ? rsf : File.join(@url_base, rsf)
46
- when /\w+:/ then rsf
47
+ when /^\//
48
+ @url_base =~ /^\// ? rsf : File.join(@url_base, rsf)
49
+ when /\w+:/ then rsf
47
50
  else
48
51
  File.join(@url_base, @url_dir, rsf)
49
52
  end
50
-
51
- buffer, _ = RXFHelper.read path, auto: false
53
+ puts 'rsf: ' + rsf.inspect
54
+ buffer, _ = RXFReader.read path
52
55
  return buffer
53
- end
54
-
56
+ end
57
+
55
58
  end
data.tar.gz.sig CHANGED
@@ -1,4 +1,3 @@
1
- �q&���W�ܒ���� <�FYP������� m8��F�e�z��d�xY�,�0'r�\hu���M�ו�՜\+5��'j1��^��R�4G+��}�?9���֞��<cb����ؘ�m�s�M0��3�9�P�1N��ʱO�靈 ����8�{��v�5�Ѱ�JW�&������IJ#��ZEw����~d�C�����x�=M�yWi*�q��2ŧ���8��`"�m�⭱P�&�P����v�Z͉,Js%�!4�!ޚ�^l��zW,%�=����*,� ]���
2
- 9�.�K���5@�KC��
3
- ��< Q����h���4L'�_H�/�!I�G�8(�����
4
- ��)�SûO�p��օ�(
1
+ c�. �F[�/���,�×��L+�'��ŮIQ9y�?|�Ӳ竹FvA���P�ͲM�[�#���;L*Z��;�2����¸yw�^�Jé*�=��B
2
+ H���nؙ�t�U�]���3*�5kM�}��Fw��
3
+ j1LK/;Y��JO9zd4�w���嶨L�o�}E 7t��RS�>��'�^L��r�!FY4�ѝ���f׿�\�ef������RQ��Aw�����LB��K�b�"eq6zW����V��ɅB\�i1�8��dž<�%��x\��L|rp3�U�i�*4�2�CG����=�g�� @pؘۤ}��[��;r��̘xk���4@'��R�Rq!4��ؚ?k��\�vH\;x��81M��
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -11,31 +11,31 @@ cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjAwNjExMTk1ODQ5WhcN
15
- MjEwNjExMTk1ODQ5WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCr9LE7
17
- DfF2g/RJM4/NLacFBrB8XPH+P4qIJaMFS70S+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sgtksSmBAw0g5bWydgHUgly8WES
36
- tOpPd7kzbjjcuqoPnHSqclFI
28
+ BgkqhkiG9w0BAQsFAAOCAYEADh1tlIEJCQbDp52DcuI4VtlGxLopLBx5+RR48O2k
29
+ rC7TS4iN96skEVEuddtdUwR/GV/bY9RN5XUKq6cv7V3dX4UHAZ/V7qVKRGDWtLeR
30
+ LeG/35jDMWmxZx/BfPwDHburtDVKN3rDls8Ms3udVTEgmGNjejZpUSOOR2NIF7dj
31
+ i6a6w57f7kwG0pMIMqKD0IohECFc+3mvzQmTX5sOm1o5ITxtBOoWeqWk/SB3uJf3
32
+ T2Vv48vVRO4SHki9XRZUnuzzpTPEGIXgs/u7IiXy7WwUMKe0A3A9r3MM2/ooOJgZ
33
+ OYYvbCRN0NfVMAvdW/q5tHioydGQUKrVl7VoJuYaw2KYiLSkRpP09E1cgI4N4Lso
34
+ Z+jP6eKXREq7KG102Al+w798XKl8ODIo1///pbYPQztK+in5U1BmGTIHaBWghvNU
35
+ NVWX/OCQ9q6PFpdhMmSrfvWwCgVWyBrDS2VtD1ywkwcKvaWXd5xZDUIirRuvoDRt
36
+ JVO4YXQhPNQq3usjz6cW4O+B
37
37
  -----END CERTIFICATE-----
38
- date: 2020-06-11 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: hashcache
@@ -58,25 +58,25 @@ dependencies:
58
58
  - !ruby/object:Gem::Version
59
59
  version: 0.2.10
60
60
  - !ruby/object:Gem::Dependency
61
- name: rxfhelper
61
+ name: rxfreader
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: 1.0.0
67
64
  - - "~>"
68
65
  - !ruby/object:Gem::Version
69
- version: '1.0'
66
+ version: '0.1'
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 0.1.2
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 1.0.0
77
74
  - - "~>"
78
75
  - !ruby/object:Gem::Version
79
- version: '1.0'
76
+ version: '0.1'
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 0.1.2
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rexle
82
82
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,7 @@ dependencies:
86
86
  version: '1.5'
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 1.5.6
89
+ version: 1.5.14
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
@@ -96,9 +96,9 @@ dependencies:
96
96
  version: '1.5'
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 1.5.6
99
+ version: 1.5.14
100
100
  description:
101
- email: james@jamesrobertson.eu
101
+ email: digital.robertson@gmail.com
102
102
  executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
@@ -124,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.7.10
127
+ rubygems_version: 3.2.22
129
128
  signing_key:
130
129
  specification_version: 4
131
130
  summary: Reads or executes a job contained within a package (XML document), whereby
metadata.gz.sig CHANGED
Binary file