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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0929ad598b28b90a80b39b3d406e7b3c3d054ef8e8009740272e0c4efa871a0f'
4
- data.tar.gz: 4d61e887c6c4c1d1630f282beec390f4f6cb2e7489bd94d6ffabe0d1e7afe623
3
+ metadata.gz: b513cf10fc9f799000b67f9bca747cd132f117a87e771efd9dffd4abccfd836e
4
+ data.tar.gz: '089507f8dc242466e97ceeda2ebbd9b6f22e4729bc055a520152c4b41e963369'
5
5
  SHA512:
6
- metadata.gz: 206d6635be3d06be5c51a3d8ca93e15d2dea9cbcd3c52b1f62ce3600a4e23be54f93559384a47381a1c208ba051b35f01a2f3b75d3f16b965d6f270bf259ebec
7
- data.tar.gz: 4c05d931033a0c8b8f6fa45a3662c7aa59a73a78f470100eabba4ef00e5b5edfb284c965879a571a6ff64c8619ee9e29876a662dd8e12dcaa45727883dc317b4
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: 'www', static: {})
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[1..-1][/.\S*/].split('/')
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[1..-1][/.\S*/].split('/')
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
- file = File.join(@root, 'index.html')
271
- File.read file
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.5
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-18 00:00:00.000000000 Z
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.1.0
146
+ version: 2.2.0
147
147
  - - "~>"
148
148
  - !ruby/object:Gem::Version
149
- version: '2.1'
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.1.0
156
+ version: 2.2.0
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '2.1'
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