rack-rscript 1.2.1 → 1.2.2

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: eb8f81937a9057df995fed0866db887efb7d3b51821c94fd8981be81443fc0fb
4
- data.tar.gz: 4145e73c58a2ae1de7e636b576e33a51ac08a021b631e54aef864bc8e1753352
3
+ metadata.gz: 4cc6d60f509c07b94de63018f88797d0dd775f10fe9226fb158dc3c09c5d4638
4
+ data.tar.gz: 1f39470e360019d57bc7c9cc85f07b55dc35fd4df4b3512ac2fda7ab838d385d
5
5
  SHA512:
6
- metadata.gz: b0775bf1401dc6bd0cb792065b9db9347254693e50934dd8ebe7c960692d4153935ebecb671d930994bb521fb2b194f76c2865c7dd498b0c7149fa283b9e9904
7
- data.tar.gz: ca86b8dcc16acf51140b9e8ad375df2cb1949a35ef83ce871c62aa7b22dc5af6851f8e34c48956a0fda564c87f20f117751bad799ca64ca82889bcbb59faa25f
6
+ metadata.gz: b233ab991b9dfea67758660aea524a29342ca1b848d623b75bc6326d039bc93e4e7e2e07e02db6dac64149c55c539293b439f57e312d5001e063e03f27f2b992
7
+ data.tar.gz: 250e3ab7377d31bd912886a267d099d33dcdd5011c18ffc1f845d589ad205d55b478590b63189e652245d82f533ed687b79a453e447a85d50fd6ce30b9d743b8
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rack-rscript.rb CHANGED
@@ -235,13 +235,14 @@ class RackRscript
235
235
  run_job("%s%s.rsf" % [@url_base, package], job, params)
236
236
  end
237
237
 
238
- get /\/(.*)\/do\/(\w+)\/(\w+)$/ do |d, package,job|
239
- run_job(("%s%s/%s.rsf" % [@url_base, d, package]), job, params)
238
+ get '/:dir/do/:package/:job' do |dir, package, job|
239
+ run_job(("%s%s/%s.rsf" % [@url_base, dir, package]), job, params)
240
240
  end
241
241
 
242
- get /\/(.*)\/do\/(\w+)\/(\w+)\/(.*)/ do |d, package, job, raw_args|
243
- args = raw_args.split('/')
244
- run_job(("%s%s/%s.rsf" % [@url_base, d, package]), job, params, :get, args)
242
+ get '/:dir/do/:package/:job/*' do |dir, package, job|
243
+ raw_args = params[:splat]
244
+ args = raw_args.first[/[^\s\?]+/].to_s.split('/')[1..-1]
245
+ run_job(("%s%s/%s.rsf" % [@url_base, dir, package]), job, params, :get, args)
245
246
  end
246
247
 
247
248
  post '/do/:package/:job' do |package,job|
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.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  uQ8ts8x2DfuJYY/PmLbqwXkzMzb1EgnUBWZ3mZCdlL0UBst5ypPAFTn1b2qRUC92
36
36
  UtKkOrrEmCXrBnFtpv6a1ULk
37
37
  -----END CERTIFICATE-----
38
- date: 2021-12-29 00:00:00.000000000 Z
38
+ date: 2021-12-30 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rack
metadata.gz.sig CHANGED
Binary file