dante 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,10 +28,10 @@ module Dante
28
28
  def initialize(name, defaults={}, &block)
29
29
  @name = name
30
30
  @startup_command = block
31
- @debug = defaults.delete(:debug) || true
32
31
  @options = {
33
32
  :host => '0.0.0.0',
34
- :pid_path => "/var/run/#{@name}.pid"
33
+ :pid_path => "/var/run/#{@name}.pid",
34
+ :debug => true
35
35
  }.merge(defaults)
36
36
  end
37
37
 
@@ -211,7 +211,7 @@ module Dante
211
211
  end
212
212
 
213
213
  def log(message)
214
- puts message if @debug
214
+ puts message if options[:debug]
215
215
  end
216
216
 
217
217
  end
@@ -1,3 +1,3 @@
1
1
  module Dante
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dante
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Esquenazi