pastry 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/pastry +1 -1
  2. data/lib/pastry.rb +1 -1
  3. metadata +2 -2
data/bin/pastry CHANGED
@@ -12,7 +12,7 @@ parser = OptionParser.new do |opts|
12
12
  opts.on('-R', '--rackup file', 'rackup file') {|value| options[:rackup] = value }
13
13
  opts.on('-a', '--address name', 'bind ip/host') {|value| options[:host] = value }
14
14
  opts.on('-p', '--port name', 'bind port') {|value| options[:port] = value }
15
- opts.on('-s', '--socket file', 'unix socket') {|value| options[:unix] = value }
15
+ opts.on('-s', '--socket file', 'unix socket') {|value| options[:socket] = value }
16
16
  opts.on('-d', '--[no-]daemon', 'daemonize') {|value| options[:daemonize] = value }
17
17
  opts.on('-l', '--logfile file', 'logfile') {|value| options[:logfile] = value }
18
18
  opts.on('-P', '--pidfile file', 'pidfile') {|value| options[:pidfile] = value }
@@ -58,7 +58,7 @@ class Pastry
58
58
 
59
59
  def start!
60
60
  create_pidfile
61
- server = unix ? UnixServer.new(unix) : TCPServer.new(host, port)
61
+ server = unix ? UNIXServer.new(unix) : TCPServer.new(host, port)
62
62
 
63
63
  server.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true) unless unix
64
64
  server.fcntl(Fcntl::F_SETFL, server.fcntl(Fcntl::F_GETFL) | Fcntl::O_NONBLOCK)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bharanee Rathna