sbsm 1.5.9 → 1.6.0

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
- SHA1:
3
- metadata.gz: 6f2ae1755e50072d0307ecbe9c57c67c1b4a891a
4
- data.tar.gz: 1b2e7d58d1b60cc487248e1123a8422cf051fd4a
2
+ SHA256:
3
+ metadata.gz: b93d9bf6799d6d4acbc8d4b7da58620c38d3f25778ebc6b56362b8c122d563de
4
+ data.tar.gz: 9a31b8e5479f81901bbe32ddc555984343750be0cbab2fab46ec26f0713bbc89
5
5
  SHA512:
6
- metadata.gz: 1e092d40cc433c228137788cbc01e79a2e31cb03d3c84ae51d6ad0c3c686241aead506e2baeabe841c58dc0b226616ab444324961e7607ab8e5034eb66157924
7
- data.tar.gz: a430f249b35eed0d1b7514f352a8b4dfe27cd7f1d60efec3d4ca856884eb8756f7e28b81184b392707247f156923431d9b9a6d671935b60453cef4cba4591383
6
+ metadata.gz: 8787656db28102c2e04512f319007348d5fa2ee39988f2a111718a6c94650b2d1637d5914a87f69ef558a5e167dee190e71985df8c27b97dd16a1708201751a4
7
+ data.tar.gz: f6d74035ec0fd830acbd2c599a20434fc674963093d955a220df0a7cbe942dd82dc091f7d71b2e3c62bc283821e3437e8c7d08009513f723baca9a7844230a41
@@ -7,21 +7,15 @@ notifications:
7
7
 
8
8
  cache: bundler
9
9
 
10
- sudo: false
11
-
12
10
  before_install:
13
11
  - gem --version
14
-
15
- bundler_args: --without debugger
12
+ - bundle config set without 'debugger'
16
13
 
17
14
  rvm:
15
+ - 2.7.1
16
+ - 2.5.0
18
17
  - ruby-head
19
- - 2.2.3
20
- - 2.4.0
21
- - 2.3.0
22
18
  matrix:
23
19
  allow_failures:
24
- # On november 1 had failure compiling the child_processes
25
20
  - rvm: ruby-head
26
- - rvm: 2.2.3 # Test for LogLevel does not work
27
- - rvm: 2.3.0 # Test for LogLevel does not work
21
+ - rvm: 2.5.0 # Test for LogLevel does not work
@@ -1,3 +1,7 @@
1
+ === 1.6.0 / 13.06.2020
2
+
3
+ * Remove calls to obsolete taint/untaint methods
4
+
1
5
  === 1.5.9 / 30.08.2017
2
6
 
3
7
  * Fix recognition whether we are using HTTPS or not
File without changes
@@ -106,7 +106,6 @@ module SBSM
106
106
  else
107
107
  file_name = File.expand_path(File.join('doc', request.path))
108
108
  end
109
-
110
109
  if File.file?(file_name)
111
110
  if File.extname(file_name).length > 0 && (mime_info = MimeMagic.by_extension(File.extname(file_name)))
112
111
  mime_type = mime_info.type
@@ -117,7 +116,7 @@ module SBSM
117
116
  SBSM.debug "file_name is #{file_name} checkin base #{File.basename(file_name)} MIME #{mime_type}"
118
117
  response.set_header('Content-Type', mime_type)
119
118
  response.write(File.open(file_name, File::RDONLY){|file| file.read})
120
- return response
119
+ return response.finish
121
120
  end
122
121
 
123
122
  return [400, {}, []] if /favicon.ico/i.match(request.path)
@@ -128,7 +127,7 @@ module SBSM
128
127
  thru = session.get_passthru
129
128
  if thru.size > 0
130
129
  begin
131
- file_name = thru.first.untaint
130
+ file_name = thru.first
132
131
  raise Errno::ENOENT unless File.exist?(file_name)
133
132
  response.set_header('Content-Type', MimeMagic.by_extension(File.extname(file_name)).type)
134
133
  response.headers['Content-Disposition'] = "#{thru.last}; filename=#{File.basename(file_name)}"
File without changes
@@ -479,7 +479,7 @@ module SBSM
479
479
  end
480
480
  def passthru(path, disposition='attachment')
481
481
  # the variable @passthru is set by a trusted source
482
- @passthru = path.untaint
482
+ @passthru = path
483
483
  @disposition = disposition
484
484
  ''
485
485
  end
File without changes
@@ -44,13 +44,13 @@ module SBSM
44
44
  def initialize(name: nil, config_file: nil, handler_uri: nil)
45
45
  @handler_uri = handler_uri ||= '/index.rbx'
46
46
  config_file ||= 'etc/trans_handler.yml'
47
- @config_file = File.expand_path(config_file).untaint
47
+ @config_file = File.expand_path(config_file)
48
48
  @parser_name = name ||= 'uri'
49
49
  @parser_method = "_#{name}_parser"
50
50
  @grammar_path = File.expand_path("../../data/#{name}.grammar",
51
- File.dirname(__FILE__).untaint)
51
+ File.dirname(__FILE__))
52
52
  @parser_path = File.expand_path("#{name}_parser.rb",
53
- File.dirname(__FILE__).untaint)
53
+ File.dirname(__FILE__))
54
54
  end
55
55
  def config(request)
56
56
  config = Hash.new { {} }
@@ -150,12 +150,12 @@ module SBSM
150
150
  end
151
151
  def uri_parser(grammar_path=@grammar_path, parser_path=@parser_path)
152
152
  if(File.exist?(grammar_path))
153
- oldpath = File.expand_path("_" << File.basename(grammar_path),
153
+ oldpath = File.expand_path("_" << File.basename(grammar_path),
154
154
  File.dirname(grammar_path))
155
155
  src = File.read(grammar_path)
156
156
  unless(File.exists?(oldpath) && File.read(oldpath)==src)
157
157
  File.delete(oldpath) if File.exists?(oldpath)
158
- Parse.generate_parser_from_file_to_file(grammar_path,
158
+ Parse.generate_parser_from_file_to_file(grammar_path,
159
159
  parser_path, @parser_method, 'SBSM')
160
160
  File.open(oldpath, 'w') { |f| f << src }
161
161
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module SBSM
2
- VERSION = '1.5.9'
2
+ VERSION = '1.6.0'
3
3
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-30 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -331,8 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  - !ruby/object:Gem::Version
332
332
  version: '0'
333
333
  requirements: []
334
- rubyforge_project:
335
- rubygems_version: 2.6.8
334
+ rubygems_version: 3.1.2
336
335
  signing_key:
337
336
  specification_version: 4
338
337
  summary: Application framework for state based session management from ywesee