sbsm 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sbsm/app.rb +7 -1
- data/lib/sbsm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c3990f77f5cba4cd28fd528d59a80b82909935
|
4
|
+
data.tar.gz: 45944e3cd0c393bec1d04fe20a6bd2f9439c8f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08586c857d44c1c4e4d9ccf887df09ce5e663f1963f4a37bade46d9a374e921881a828c8e4c1aaa1f4d5382f92f36b83e621c7d94086169ca9cf0d08fa0fbe9
|
7
|
+
data.tar.gz: c784b2b282e004eaf943ddc64b87e9ab3eb6cc758fcee32decbd0e9340f99194927375407d0dee3fd46abfbaf52ffed1c7c05841a052e3b0194f09b6909beff0
|
data/History.txt
CHANGED
data/lib/sbsm/app.rb
CHANGED
@@ -106,8 +106,14 @@ module SBSM
|
|
106
106
|
else
|
107
107
|
file_name = File.expand_path(File.join('doc', request.path))
|
108
108
|
end
|
109
|
+
|
109
110
|
if File.file?(file_name)
|
110
|
-
|
111
|
+
if File.extname(file_name).length > 0
|
112
|
+
mime_type = MimeMagic.by_extension(File.extname(file_name)).type
|
113
|
+
else
|
114
|
+
mime_type = MimeMagic.by_path(file_name)
|
115
|
+
end
|
116
|
+
mime_type ||= 'text/plain'
|
111
117
|
SBSM.debug "file_name is #{file_name} checkin base #{File.basename(file_name)} MIME #{mime_type}"
|
112
118
|
response.set_header('Content-Type', mime_type)
|
113
119
|
response.write(File.open(file_name, File::RDONLY){|file| file.read})
|
data/lib/sbsm/version.rb
CHANGED
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.
|
4
|
+
version: 1.4.8
|
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-06-
|
11
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|