dugway 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/dugway.gemspec CHANGED
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.add_dependency('thor', '~> 0.17.0')
37
37
  s.add_dependency('rubyzip', '~> 0.9.9')
38
38
  s.add_dependency('yui-compressor', '~> 0.9.6')
39
+ s.add_dependency('thin', '~> 1.5.0')
39
40
 
40
41
  s.add_development_dependency('rake', '~> 10.0.3')
41
42
  s.add_development_dependency('rspec', '~> 2.12.0')
@@ -2,9 +2,7 @@ require 'rack'
2
2
 
3
3
  module Dugway
4
4
  module Cli
5
- class Server < Thor::Group
6
- include Thor::Actions
7
-
5
+ class Server < Thor::Group
8
6
  class_option :host,
9
7
  :type => :string,
10
8
  :aliases => '-h',
@@ -17,11 +15,11 @@ module Dugway
17
15
  :default => 9292,
18
16
  :desc => "The port address to bind to"
19
17
 
20
- class_option :daemonize,
21
- :type => :boolean,
22
- :aliases => '-d',
23
- :default => false,
24
- :desc => "Run daemonized in the background"
18
+ class_option :server,
19
+ :type => :string,
20
+ :aliases => '-s',
21
+ :default => 'thin',
22
+ :desc => "Which server to run"
25
23
 
26
24
  def start
27
25
  Rack::Server.start({
@@ -29,7 +27,7 @@ module Dugway
29
27
  :environment => 'none',
30
28
  :Host => options[:host],
31
29
  :Port => options[:port],
32
- :daemonize => options[:daemonize]
30
+ :server => options[:server]
33
31
  })
34
32
  end
35
33
  end
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dugway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
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: 2013-03-03 00:00:00.000000000 Z
12
+ date: 2013-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -315,6 +315,22 @@ dependencies:
315
315
  - - ~>
316
316
  - !ruby/object:Gem::Version
317
317
  version: 0.9.6
318
+ - !ruby/object:Gem::Dependency
319
+ name: thin
320
+ requirement: !ruby/object:Gem::Requirement
321
+ none: false
322
+ requirements:
323
+ - - ~>
324
+ - !ruby/object:Gem::Version
325
+ version: 1.5.0
326
+ type: :runtime
327
+ prerelease: false
328
+ version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
330
+ requirements:
331
+ - - ~>
332
+ - !ruby/object:Gem::Version
333
+ version: 1.5.0
318
334
  - !ruby/object:Gem::Dependency
319
335
  name: rake
320
336
  requirement: !ruby/object:Gem::Requirement