httpimagestore 0.0.8 → 0.0.9

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.8
1
+ 0.0.9
data/bin/httpimagestore CHANGED
@@ -7,6 +7,8 @@ require 'cli'
7
7
  options = CLI.new do
8
8
  description 'HTTP based image storage and thumbnailer'
9
9
  switch :no_bind, :description => "Do not bind to TCP socket - useful with -s fastcgi option"
10
+ switch :no_logging, :description => "Disable logging"
11
+ switch :debug, :description => "Enable debugging"
10
12
  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"
11
13
  option :port, :short => :p, :default => 3000, :cast => Integer, :description => "HTTP server TCP port"
12
14
  option :server, :short => :s, :default => 'mongrel', :description => "Rack server handler like thin, mongrel, webrick, fastcgi etc."
@@ -34,7 +36,8 @@ end
34
36
  sinatra.set :environment, 'production'
35
37
  sinatra.set :server, options.server
36
38
  sinatra.set :lock, true
37
- sinatra.set :logging, true
39
+ sinatra.set :logging, (not options.no_logging)
40
+ sinatra.set :debug, options.debug
38
41
 
39
42
  Configuration.from_file(options.config).put(sinatra)
40
43
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "httpimagestore"
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
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: httpimagestore
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jakub Pastuszek