rscript 0.1.24 → 0.1.25

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
  SHA1:
3
- metadata.gz: 4a8ff0f1d0923422e5a36d28481a2bbaa90d9832
4
- data.tar.gz: ab83af2f4cf9691684b8476793c2dff3ec170635
3
+ metadata.gz: caeb191238922359039b600544f93280c3890887
4
+ data.tar.gz: 44651ba935636ca58f731046554be5923d524065
5
5
  SHA512:
6
- metadata.gz: 54384fe869af78d610a3118baa98903203691299e2445396a10f24e09fcad340043c4d1cc10492c226bb36147853c2b9de130f6357f579ba8362b8af71eae2b2
7
- data.tar.gz: a36248e6534ce090b2c9e421628a5a606728460b78666a11a5ef52ff89295e427965769c51017339ab554aae4c1b1d5672b963964734730f197ff9ce9b00e64b
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
- ��}L�D��9��l�/��5|DCf�!��j95H��Ḙ�j��j��y FU���Je2�@�nH}�xM�N
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: 02-Nov-2013
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
- require 'rscript_base'
33
- require 'hashcache'
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.24
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-02 00:00:00.000000000 Z
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