httpthumbnailer 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/httpthumbnailer +3 -3
- data/httpthumbnailer.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/bin/httpthumbnailer
CHANGED
@@ -6,8 +6,8 @@ require 'ip'
|
|
6
6
|
options = CLI.new do
|
7
7
|
description 'HTTP thumbnailing server'
|
8
8
|
switch :no_bind, :description => "Do not bind to TCP socket - useful with -s fastcgi option"
|
9
|
-
switch :no_logging, :description => "
|
10
|
-
switch :debug, :description => "
|
9
|
+
switch :no_logging, :description => "Disable logging"
|
10
|
+
switch :debug, :description => "Enable debugging"
|
11
11
|
option :bind, :short => :b, :default => IP.new('127.0.0.1'), :cast => IP, :description => "HTTP server bind address - use 0.0.0.0 to bind to all interfaces"
|
12
12
|
option :port, :short => :p, :default => 3100, :cast => Integer, :description => "HTTP server TCP port"
|
13
13
|
option :server, :short => :s, :default => 'mongrel', :description => "Rack server handler like thin, mongrel, webrick, fastcgi etc."
|
@@ -44,7 +44,7 @@ sinatra.set :limit_map, options.limit_map
|
|
44
44
|
sinatra.set :limit_disk, options.limit_disk
|
45
45
|
|
46
46
|
sinatra.before do
|
47
|
-
logger.level = Logger::DEBUG if settings.
|
47
|
+
logger.level = Logger::DEBUG if settings.logging and settings.debug
|
48
48
|
if $thumbnailer.nil?
|
49
49
|
$thumbnailer = Thumbnailer.new(:logger => logger, :limit_memory => settings.limit_memory, :limit_map => settings.limit_map, :limit_disk => settings.limit_disk)
|
50
50
|
|
data/httpthumbnailer.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpthumbnailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jakub Pastuszek
|