rack-rscript 1.1.5 → 1.1.6
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 +0 -0
- data/lib/rack-rscript.rb +11 -5
- metadata +6 -6
- 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: b513cf10fc9f799000b67f9bca747cd132f117a87e771efd9dffd4abccfd836e
|
4
|
+
data.tar.gz: '089507f8dc242466e97ceeda2ebbd9b6f22e4729bc055a520152c4b41e963369'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9baabf7e1d645efbbf0ea953e5a31abd5452a3b8a2275d2e03c3da27ccd0d8a2269be22819fe0bd3b60c50e9e24d13adc6c5ddb872bda3b776c398e66a3be95
|
7
|
+
data.tar.gz: 6833909c6c7d7bc3e30f08ab0b4b0b4514f33fdfa9344b6e6b11043435729978927c5434b5b59f55745a901374cd42ce77d03be1f5cfca7d40ec153edd007557
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rack-rscript.rb
CHANGED
@@ -29,10 +29,11 @@ end
|
|
29
29
|
class RackRscript
|
30
30
|
include AppRoutes
|
31
31
|
include RXFHelperModule
|
32
|
+
using ColouredText
|
32
33
|
|
33
34
|
def initialize(log: nil, pkg_src: '', cache: 5, rsc_host: 'rse',
|
34
35
|
rsc_package_src: nil, pxlinks: nil, debug: false,
|
35
|
-
root: '
|
36
|
+
root: '', static: {})
|
36
37
|
|
37
38
|
@log, @debug, @static = log, debug, static
|
38
39
|
|
@@ -182,13 +183,13 @@ class RackRscript
|
|
182
183
|
|
183
184
|
get '/do/:package/:job/*' do |package, job|
|
184
185
|
raw_args = params[:splat]
|
185
|
-
args = raw_args.first[
|
186
|
+
args = raw_args.first[/[^\s\?]+/].to_s.split('/')[1..-1]
|
186
187
|
run_job("%s%s.rsf" % [@url_base, package], "//job:" + job, params, args)
|
187
188
|
end
|
188
189
|
|
189
190
|
post '/do/:package/:job/*' do |package, job|
|
190
191
|
raw_args = params[:splat]
|
191
|
-
args = raw_args.first[
|
192
|
+
args = raw_args.first[/[^\s\?]+/].to_s.split('/')[1..-1]
|
192
193
|
run_job("%s%s.rsf" % [@url_base, package], "//job:" + job, params, args)
|
193
194
|
end
|
194
195
|
|
@@ -267,8 +268,13 @@ class RackRscript
|
|
267
268
|
|
268
269
|
get /^\/$/ do
|
269
270
|
|
270
|
-
|
271
|
-
|
271
|
+
if @root.length > 0 then
|
272
|
+
file = File.join(@root, 'index.html')
|
273
|
+
File.read file
|
274
|
+
else
|
275
|
+
Time.now.inspect
|
276
|
+
end
|
277
|
+
|
272
278
|
end
|
273
279
|
|
274
280
|
end
|
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.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
lDqRilVLi+NZf/R9vR/vaL53GOmDC+VoywL5frfWXVSK1Zs1fF7RAMZDJeYF0A8W
|
36
36
|
arbgkVprfDCrZHsF1ZnCIvNO
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-02-
|
38
|
+
date: 2019-02-24 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rack
|
@@ -143,20 +143,20 @@ dependencies:
|
|
143
143
|
requirements:
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 2.
|
146
|
+
version: 2.2.0
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '2.
|
149
|
+
version: '2.2'
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 2.
|
156
|
+
version: 2.2.0
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '2.
|
159
|
+
version: '2.2'
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
161
|
name: rexslt
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|