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 CHANGED
@@ -1 +1 @@
1
- 0.0.12
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 => "Disables logging"
10
- switch :debug, :description => "Enables debugging"
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.debug == true
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
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "httpthumbnailer"
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jakub Pastuszek"]
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jakub Pastuszek