foreverb 0.3.0.e → 0.3.0.f
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/lib/forever.rb +1 -1
- data/lib/forever/base.rb +1 -3
- data/lib/forever/version.rb +1 -1
- metadata +4 -4
data/lib/forever.rb
CHANGED
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 }
|
data/lib/forever/version.rb
CHANGED
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:
|
4
|
+
hash: 63
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 0.3.0.
|
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-
|
19
|
+
date: 2011-11-09 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|