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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/rscript.rb +6 -7
- metadata +2 -2
- metadata.gz.sig +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e2a4eea07b4e93a9e33c5035bc9d2c84a0a321c
|
4
|
+
data.tar.gz: e60871b48818f90363d0eb5a1c750a0805bcd5ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b7f0648e369e8956658276a90515bb72335a24e12370d93d827f5598105a9624f4f17e5766233e89248bd298496ba2154d9a7abfaf1821a1e072a052439c42
|
7
|
+
data.tar.gz: 658f8bfde6d3cad79eb24b78259634bce434a7ea4ee9b1cd3871e9cca2ae62b38e17a08eea510c574bf5f40bc554f1a8dc93638c1b556767c4c86044cd76fddd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
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*)��
|
data/lib/rscript.rb
CHANGED
@@ -3,12 +3,11 @@
|
|
3
3
|
# file: rscript.rb
|
4
4
|
|
5
5
|
# created: 1-Jul-2009
|
6
|
-
# updated:
|
6
|
+
# updated: 12-Dec-2016
|
7
7
|
|
8
8
|
# modification:
|
9
9
|
|
10
|
-
#
|
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:
|
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:
|
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=
|
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.
|
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-
|
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