ws 0.2.2 → 0.3.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.
Files changed (2) hide show
  1. data/lib/ws.rb +1 -0
  2. metadata +1 -1
data/lib/ws.rb CHANGED
@@ -13,6 +13,7 @@ module WS
13
13
  puts "#{Time.now.inspect}: Sending #{file_path} to client." if options[:verbose]
14
14
  conn.print get_header("200/OK", mime_type)
15
15
  conn.print file_handle.read()
16
+ file_handle.close
16
17
  rescue Errno::ENOENT
17
18
  puts "#{Time.now.inspect}: Not Found: #{file_path}" if options[:verbose]
18
19
  conn.print get_header("404/NOT FOUND", "text/html")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: