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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b370d3f21165accf1e116ff96c1f2384093da81f
4
- data.tar.gz: c6de8a95bfcdca73be4b3115be51bf517c07e16b
3
+ metadata.gz: 71c3990f77f5cba4cd28fd528d59a80b82909935
4
+ data.tar.gz: 45944e3cd0c393bec1d04fe20a6bd2f9439c8f91
5
5
  SHA512:
6
- metadata.gz: 8a398654589315be802f054f274a3be7bb4748241efad88c31b42f49a8b338d4753f1642764fef340fd47057f4e686b43e3b1aa0d2d71105d3407fd5e87af456
7
- data.tar.gz: 80684c6ae85ea2303de7477d3eb824555971143acf1fe6d79332f0dc912cdf11c8f516ba3b0de53e7cc6a16af9c449271dedd6901ca67cfd7ddf1beed331fd86
6
+ metadata.gz: c08586c857d44c1c4e4d9ccf887df09ce5e663f1963f4a37bade46d9a374e921881a828c8e4c1aaa1f4d5382f92f36b83e621c7d94086169ca9cf0d08fa0fbe9
7
+ data.tar.gz: c784b2b282e004eaf943ddc64b87e9ab3eb6cc758fcee32decbd0e9340f99194927375407d0dee3fd46abfbaf52ffed1c7c05841a052e3b0194f09b6909beff0
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.4.8 / 26.06.2017
2
+
3
+ * Fix setting mime_type for files like status/status_crawler
4
+
1
5
  === 1.4.7 / 26.06.2017
2
6
 
3
7
  * Set the debug logging level to WARN
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
- mime_type = MimeMagic.by_extension(File.extname(file_name)).type
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
@@ -1,3 +1,3 @@
1
1
  module SBSM
2
- VERSION = '1.4.7'
2
+ VERSION = '1.4.8'
3
3
  end
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.7
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-26 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack