sbsm 1.5.9 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +4 -10
- data/History.txt +4 -0
- data/lib/sbsm/admin_server.rb +0 -0
- data/lib/sbsm/app.rb +2 -3
- data/lib/sbsm/logger.rb +0 -0
- data/lib/sbsm/session.rb +1 -1
- data/lib/sbsm/session_store.rb +0 -0
- data/lib/sbsm/trans_handler.rb +5 -5
- data/lib/sbsm/user.rb +0 -0
- data/lib/sbsm/version.rb +1 -1
- data/test/test_customized_app.rb +0 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b93d9bf6799d6d4acbc8d4b7da58620c38d3f25778ebc6b56362b8c122d563de
|
4
|
+
data.tar.gz: 9a31b8e5479f81901bbe32ddc555984343750be0cbab2fab46ec26f0713bbc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8787656db28102c2e04512f319007348d5fa2ee39988f2a111718a6c94650b2d1637d5914a87f69ef558a5e167dee190e71985df8c27b97dd16a1708201751a4
|
7
|
+
data.tar.gz: f6d74035ec0fd830acbd2c599a20434fc674963093d955a220df0a7cbe942dd82dc091f7d71b2e3c62bc283821e3437e8c7d08009513f723baca9a7844230a41
|
data/.travis.yml
CHANGED
@@ -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.
|
27
|
-
- rvm: 2.3.0 # Test for LogLevel does not work
|
21
|
+
- rvm: 2.5.0 # Test for LogLevel does not work
|
data/History.txt
CHANGED
data/lib/sbsm/admin_server.rb
CHANGED
File without changes
|
data/lib/sbsm/app.rb
CHANGED
@@ -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
|
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)}"
|
data/lib/sbsm/logger.rb
CHANGED
File without changes
|
data/lib/sbsm/session.rb
CHANGED
data/lib/sbsm/session_store.rb
CHANGED
File without changes
|
data/lib/sbsm/trans_handler.rb
CHANGED
@@ -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)
|
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__)
|
51
|
+
File.dirname(__FILE__))
|
52
52
|
@parser_path = File.expand_path("#{name}_parser.rb",
|
53
|
-
File.dirname(__FILE__)
|
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
|
data/lib/sbsm/user.rb
CHANGED
File without changes
|
data/lib/sbsm/version.rb
CHANGED
data/test/test_customized_app.rb
CHANGED
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.
|
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:
|
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
|
-
|
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
|