rscript 0.3.2 → 0.3.3

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: 5981f41622e3d6b2a2f6e84add6500f37f1e17ac
4
- data.tar.gz: c13563f763131e758cedc0ac267fafabe23c5e3b
3
+ metadata.gz: 3e2a4eea07b4e93a9e33c5035bc9d2c84a0a321c
4
+ data.tar.gz: e60871b48818f90363d0eb5a1c750a0805bcd5ca
5
5
  SHA512:
6
- metadata.gz: bc2b072ba77b6fea7b1908f99e9ca5530753eab7b15c941a12fc3d490cbd298aaf470a39320fa33995e058e1e6bfce13c031a95cd6ae9dad1c13e90c916a581d
7
- data.tar.gz: 7adb2e4d850ebabbca4aa3aa830be1b8175cee0b253a1dfc71f656fc6c912384028dc53392430c1cf62269d859533f3871cd3dd7f5193355789651b3db9d190b
6
+ metadata.gz: 11b7f0648e369e8956658276a90515bb72335a24e12370d93d827f5598105a9624f4f17e5766233e89248bd298496ba2154d9a7abfaf1821a1e072a052439c42
7
+ data.tar.gz: 658f8bfde6d3cad79eb24b78259634bce434a7ea4ee9b1cd3871e9cca2ae62b38e17a08eea510c574bf5f40bc554f1a8dc93638c1b556767c4c86044cd76fddd
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- �l�Ƀ�{4�4N�{�-J
2
- j��S]�����:i|�!Ǝi���-�����Ҋ�� s�#�k���2��"X17���ĀU�@�LNd��kE.�_YD���?��ٚ�\>d�fMS�Fc%"r�����d�!,u��L�ܝ��j�ߡ��
1
+ F���v�糄�q(��l2��r�yn*)��
@@ -3,12 +3,11 @@
3
3
  # file: rscript.rb
4
4
 
5
5
  # created: 1-Jul-2009
6
- # updated: 26-Jun-2016
6
+ # updated: 12-Dec-2016
7
7
 
8
8
  # modification:
9
9
 
10
- # 01-Jul-2016: Ignores the logfile if the arg is nil
11
- # 26-Jun-2016: The .rb files are now located within the rscript file directory
10
+ # 12-Dec-2016: The cache size can now be changed from initialize()
12
11
  # 21-Jun-2016: Replaced the initialize hash options with inline named params
13
12
  # 29-Jan-2015: Replaced REXML with Rexle
14
13
  # 06-Nov-2013: An error is now raised if the job doesn't exist
@@ -41,11 +40,11 @@ require 'rexle'
41
40
 
42
41
  class RScript < RScriptBase
43
42
 
44
- def initialize(logfile: '', logrotate: 'daily', pkg_src: '', cache: true)
43
+ def initialize(logfile: '', logrotate: 'daily', pkg_src: '', cache: 5)
45
44
 
46
45
  @logger = Logger.new logfile, logrotate unless logfile.nil? or logfile.empty?
47
46
  @cache = cache
48
- @rsf_cache = HashCache.new({cache: 5}) if cache
47
+ @rsf_cache = HashCache.new({cache: cache}) if cache > 0
49
48
 
50
49
  end
51
50
 
@@ -95,7 +94,7 @@ class RScript < RScriptBase
95
94
  end
96
95
 
97
96
  # note: run() was copied from the development file rscript-wrapper.rb
98
- def run(raw_args, params={}, rws=nil)
97
+ def run(raw_args, params={}, rws=self)
99
98
 
100
99
  if @logger then
101
100
  @logger.debug 'inside RScript#run'
@@ -177,4 +176,4 @@ if __FILE__ == $0 then
177
176
  rs = RScript.new()
178
177
  code, args = rs.read(raw_args)
179
178
  puts eval(code).join("\n")
180
- end
179
+ end
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  iYiOpzs0Jmv4jizUQGqzjOvyRUQTlYG2IDutjigLuyZllxXvxAcdRXKarC+qvESI
32
32
  fb096Gf6Ao7H/w==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-07-01 00:00:00.000000000 Z
34
+ date: 2016-12-11 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hashcache
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- =����=��;��$�nK�p����-�� H�:�F��kU�Ԉd
1
+ �=��)[�� y���3�����p:�=fwl�0�w�F�|?+̱5t�����K�$�8/��)?����lO�y�C�����u��؅Aj�$Ʋ��Y�+OI�b�C%��X͛�
2
+ B��Z-F�d.��b��k��
3
+ �ubBzz�� ��'F5~�