rack-rscript 1.2.2 → 1.2.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/lib/rack-rscript.rb +10 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 6d065f87d5e3da283e01c8c83906b1ff8c47b83bcb988303ca74c1992b18c6f5
|
4
|
+
data.tar.gz: 85232d65a5635ebd2f7f3bfcfc18f3e1dbc8aa0e601feacc1a91506a577894a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e537f297872d82494924488c6519a120d00a621057801b118338235c088d5eb1ee50d6d06dc4d9ea3abc2a94d3bcd3c072e1de4c55685913a2e1cb59acf94c3d
|
7
|
+
data.tar.gz: 6b466d9f51bfeb33915d5462caf05a4d048cd1c4ca0fa384056eee13ad301ab400c4f8390c36cb536ce865c5432504d94887850ebbee48851531a14519969507
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rack-rscript.rb
CHANGED
@@ -249,6 +249,10 @@ class RackRscript
|
|
249
249
|
run_job("%s%s.rsf" % [@url_base, package], job, params, :post)
|
250
250
|
end
|
251
251
|
|
252
|
+
post '/:dir/do/:package/:job' do |dir, package,job|
|
253
|
+
run_job(("%s%s/%s.rsf" % [@url_base, dir, package]), job, params, :post)
|
254
|
+
end
|
255
|
+
|
252
256
|
get '/do/:package/:job/*' do |package, job|
|
253
257
|
raw_args = params[:splat]
|
254
258
|
args = raw_args.first[/[^\s\?]+/].to_s.split('/')[1..-1]
|
@@ -261,6 +265,12 @@ class RackRscript
|
|
261
265
|
run_job("%s%s.rsf" % [@url_base, package], job, params, :post, args)
|
262
266
|
end
|
263
267
|
|
268
|
+
post '/:dir/do/:package/:job/*' do |package, job|
|
269
|
+
raw_args = params[:splat]
|
270
|
+
args = raw_args.first[/[^\s\?]+/].to_s.split('/')[1..-1]
|
271
|
+
run_job("%s%s/%s.rsf" % [@url_base, dir, package], job, params, :post, args)
|
272
|
+
end
|
273
|
+
|
264
274
|
get '/source/:package/:job' do |package,job|
|
265
275
|
url = "%s%s.rsf" % [@url_base, package]
|
266
276
|
[@rscript.read([url, job]).first, 'text/plain']
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|