rscript 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/rscript.rb +13 -5
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caeb191238922359039b600544f93280c3890887
|
|
4
|
+
data.tar.gz: 44651ba935636ca58f731046554be5923d524065
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fd397c7de6ee78ca65197660039f125da771b52764629e8d850a4fdd0f452f8fa933d1705e8a425ed69b3e18e1e49c02e8b0f06bec53a9438ba72d8cba9fc2d
|
|
7
|
+
data.tar.gz: 566fba334c1ceca1b8e2d60cfb1e7701a49bc24b8e1397da86e69ccb89cebb24869d68dc4a28d95fe069610527d01f3694118bc1b0754becf5636eb82559bb51
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
�bc�A0� �@�����P�5"��ҋk�Բ5����D�'-]�b�� �1 �4�oC�X@β7|�%�]z%^ə�Y��jw�A��S�Y�ڽ�����zݧ�]LD*���9@9_�������[�0�D�`���O��a�l�;�+�ӆE5�-� ^XZB��}RB�W(
|
|
1
|
+
k:��R��`��,zG��-�*��X��L>�y9��g0x�.R/<e"��b|hHyC�_� �]�H;\r�e��.��#(�N0僓�Lm�]Q�X�+;�"b*ÿ]��:���������7~k�enM@�f6����I����<�[x�ǧ?\�+N!%�������2+$藿����
|
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: 06-Nov-2013
|
|
7
7
|
|
|
8
8
|
# modification:
|
|
9
9
|
|
|
10
|
+
# 06-Nov-2013: An error is now raised if the job doesn't exist
|
|
10
11
|
# 02-Nov-2013: Replaced XThreads with a simle thread
|
|
11
12
|
# 01-Nov-2013: XThreads now handles the execution of eval statements;
|
|
12
13
|
# 08-Aug-2013: re-enabled the hashcache;
|
|
@@ -28,11 +29,15 @@
|
|
|
28
29
|
# MIT license - basically you can do anything you like with the script.
|
|
29
30
|
# http://www.opensource.org/licenses/mit-license.php
|
|
30
31
|
|
|
32
|
+
#=begin
|
|
33
|
+
require 'requestor'
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
require '
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
code = Requestor.read('http://rorbuilder.info/r/ruby/') do |x|
|
|
36
|
+
x.require 'rscript_base'
|
|
37
|
+
x.require 'hashcache'
|
|
38
|
+
end
|
|
39
|
+
eval code
|
|
40
|
+
#=end
|
|
36
41
|
class RScript < RScriptBase
|
|
37
42
|
|
|
38
43
|
def initialize(opt={})
|
|
@@ -58,6 +63,9 @@ class RScript < RScriptBase
|
|
|
58
63
|
job.elements.to_a('script').map {|s| read_script(s)}.join("\n")
|
|
59
64
|
end.join("\n")
|
|
60
65
|
end
|
|
66
|
+
|
|
67
|
+
raise "job not found" unless out.length > 0
|
|
68
|
+
out
|
|
61
69
|
|
|
62
70
|
else
|
|
63
71
|
out = read_rsf(args) {|doc| doc.root.elements.to_a('//script').map {|s| read_script(s)}}
|
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.1.
|
|
4
|
+
version: 0.1.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
2tHFESql9unw2f1cmqvD6DMfA2vVH7UJJoxEbkE1ECWj9QoYqYpgDvaSp0Z0WYD1
|
|
30
30
|
Xj5QxdIHOcsEDKdkQpPw4y7x8lNM2Bww
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2013-11-
|
|
32
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: hashcache
|
metadata.gz.sig
CHANGED
|
Binary file
|