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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rscript.rb +2 -1
- data/lib/rscript_base.rb +24 -21
- data.tar.gz.sig +3 -4
- metadata +37 -38
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4790f50f6b960f81bb273f841ec59e8e6bdc0553d651a6ff0d4ceeb7d8a7bece
|
4
|
+
data.tar.gz: 7ae85febaa15bd76547e2402398df203ff2675021686be3672b101ffdbf68b28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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 '
|
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
|
-
|
40
|
-
|
41
|
-
|
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, _ =
|
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
|
-
|
2
|
-
|
3
|
-
|
4
|
-
��)�SûO�p��օ�(
|
1
|
+
c�.�F[�/���,�×��L+�'��ŮIQ9�y�?|�Ӳ竹Fv�A���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�!FY�4�ѝ���f�\�ef������RQ��A�w�����LB��K�b�"eq6zW����V��ɅB\�i1�8��dž<�%��x\��L|rp3�U�i�*4�2�CG����=�g�� @pؘۤ}��[��;r��̘x�k���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.
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjIwMjIxMTUxNjIyWhcN
|
15
|
+
MjMwMjIxMTUxNjIyWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwgg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/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:
|
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:
|
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
|
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
|
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.
|
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.
|
99
|
+
version: 1.5.14
|
100
100
|
description:
|
101
|
-
email:
|
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
|
-
|
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
|