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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cc6d60f509c07b94de63018f88797d0dd775f10fe9226fb158dc3c09c5d4638
4
- data.tar.gz: 1f39470e360019d57bc7c9cc85f07b55dc35fd4df4b3512ac2fda7ab838d385d
3
+ metadata.gz: 6d065f87d5e3da283e01c8c83906b1ff8c47b83bcb988303ca74c1992b18c6f5
4
+ data.tar.gz: 85232d65a5635ebd2f7f3bfcfc18f3e1dbc8aa0e601feacc1a91506a577894a8
5
5
  SHA512:
6
- metadata.gz: b233ab991b9dfea67758660aea524a29342ca1b848d623b75bc6326d039bc93e4e7e2e07e02db6dac64149c55c539293b439f57e312d5001e063e03f27f2b992
7
- data.tar.gz: 250e3ab7377d31bd912886a267d099d33dcdd5011c18ffc1f845d589ad205d55b478590b63189e652245d82f533ed687b79a453e447a85d50fd6ce30b9d743b8
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-rscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file