promotion 1.3.7 → 1.3.8

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/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- == Version 1.3.7
1
+ == Version 1.3.8
2
2
  - Ensured /var/staging is created with mode 0755
3
3
 
4
4
  == Version 1.3.6
@@ -31,12 +31,14 @@ module Rcconf
31
31
  ap <=> bp
32
32
  }
33
33
  pkgScripts = []
34
- daemonSpecs.each { |spec|
35
- # Name defaults to the name of the spec, but may be overridden by the optional Name attribute
36
- name = spec.elements["/Specification/Daemon"].attributes["Name"] || spec.attributes["Name"]
37
- flags = spec.elements["/Specification/Daemon"].attributes["Flags"]
38
- contents << "#{name}_flags=\"#{flags}\" \n"
39
- pkgScripts << name
34
+ daemonSpecs.each { |spec| # allow for multiple daemons in a spec
35
+ spec.each_element("Daemon") { |d|
36
+ # Name defaults to the name of the spec, but may be overridden by the optional Name attribute
37
+ name = d.attributes["Name"] || spec.attributes["Name"]
38
+ flags = d.attributes["Flags"]
39
+ contents << "#{name}_flags=\"#{flags}\" \n"
40
+ pkgScripts << name
41
+ }
40
42
  }
41
43
  contents << "# rc.d(8) packages scripts\n"
42
44
  contents << "# started in the specified order and stopped in reverse order\n"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promotion
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 7
10
- version: 1.3.7
9
+ - 8
10
+ version: 1.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-29 00:00:00 Z
18
+ date: 2012-09-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: log4r