httpthumbnailer 0.0.11 → 0.0.12

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
data/bin/httpthumbnailer CHANGED
@@ -6,6 +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
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"
10
12
  option :port, :short => :p, :default => 3100, :cast => Integer, :description => "HTTP server TCP port"
11
13
  option :server, :short => :s, :default => 'mongrel', :description => "Rack server handler like thin, mongrel, webrick, fastcgi etc."
@@ -35,8 +37,8 @@ sinatra.set :environment, 'production'
35
37
  sinatra.set :server, options.server
36
38
  sinatra.set :lock, true
37
39
  sinatra.set :boundary, "thumnail image data"
38
- sinatra.set :logging, true
39
- sinatra.set :debug, true
40
+ sinatra.set :logging, (not options.no_logging)
41
+ sinatra.set :debug, options.debug
40
42
  sinatra.set :limit_memory, options.limit_memory
41
43
  sinatra.set :limit_map, options.limit_map
42
44
  sinatra.set :limit_disk, options.limit_disk
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "httpthumbnailer"
8
- s.version = "0.0.11"
8
+ s.version = "0.0.12"
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: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jakub Pastuszek