foreverb 0.3.0.e → 0.3.0.f

Sign up to get free protection for your applications and to get access to all the features.
data/lib/forever.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'yaml' unless defined?(YAML)
1
+ require 'yaml'
2
2
  require 'forever/extensions'
3
3
  require 'forever/job'
4
4
  require 'forever/base'
data/lib/forever/base.rb CHANGED
@@ -13,8 +13,6 @@ module Forever
13
13
 
14
14
  instance_eval(&block)
15
15
 
16
- raise 'No jobs defined!' if jobs.empty?
17
-
18
16
  # Setup directories
19
17
  Dir.chdir(dir)
20
18
  Dir.mkdir(tmp) unless File.exist?(tmp)
@@ -331,7 +329,7 @@ module Forever
331
329
  end
332
330
 
333
331
  def write_config!
334
- config_was = File.exist?(FOREVER_PATH) ? YAML.load_file(FOREVER_PATH) : []
332
+ config_was = File.exist?(FOREVER_PATH) ? YAML.load_file(FOREVER_PATH) : [{}]
335
333
  config_was.delete_if { |conf| conf[:file] == file }
336
334
  config_was << config
337
335
  File.open(FOREVER_PATH, "w") { |f| f.write config_was.to_yaml }
@@ -1,3 +1,3 @@
1
1
  module Forever
2
- VERSION = "0.3.0.e" unless defined?(Forever::VERSION)
2
+ VERSION = "0.3.0.f" unless defined?(Forever::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreverb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62
4
+ hash: 63
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
- - e
11
- version: 0.3.0.e
10
+ - f
11
+ version: 0.3.0.f
12
12
  platform: ruby
13
13
  authors:
14
14
  - DAddYE
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-14 00:00:00 +02:00
19
+ date: 2011-11-09 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency