jugglite 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ = 0.0.4 / 2012-12-13
2
+
3
+ * support for listening to a unix socket using the --socket commandline option
4
+
1
5
  = 0.0.3 / 2012-11-04
2
6
 
3
7
  * support for Remy's Polyfill (which adds support for IE7+)
data/bin/jugglite CHANGED
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'jugglite'
3
3
 
4
- # You may use (almost) all options you would pass to thin
5
- # eg: --max-conns NUM (might require a higher system "ulimit -n" setting)
4
+ # You can use some of the options you would pass to thin
5
+ # eg:
6
+ # --max-conns NUM (might require a higher system "ulimit -n" setting)
6
7
  # --port PORT
7
8
  # --address HOST
9
+ # --socket FILE
8
10
  options = Thin::Runner.new(ARGV).options
9
- thin = Thin::Server.new(Jugglite::App.new, options[:port], options[:address], options)
11
+ listen_options = if options[:socket] then [options[:socket]] else [options[:address], options[:port]] end
12
+ thin = Thin::Server.new(Jugglite::App.new, *listen_options, options)
10
13
 
11
14
  # Need to increase the descriptor-table for EventMachine
12
15
  if options[:max_conns]
@@ -1,3 +1,3 @@
1
1
  module Jugglite
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jugglite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thin