bmc-daemon-lib 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc0c0de76e58557f0a87b215db9738ac610b6f01
4
- data.tar.gz: abb5f89abd37db6809a0efcd27f8e8559bc405b4
3
+ metadata.gz: f4142750fe04fde497ad0881cbdcd4fc9cc43195
4
+ data.tar.gz: 7cabd8bf418defed87d92b59461a60a2ee9b7322
5
5
  SHA512:
6
- metadata.gz: cf30b61c8265a8915503f02f4ad3ea671348b49d44df9c68a3b76a73afd8066b6b8f15fe253a5aef450662f65c76a2de360a527e649168f4ef93cc0388a2c55b
7
- data.tar.gz: 0535711487b2071ab3ce34dba5a4a78fd0384a11a2e6acf9df626e13307195ded2e1fe0054a8857521873f5e3ea38f2a24885c00627b9c3e1dcebc03f4a4e6db
6
+ metadata.gz: dda75cf1da3de4a4a3df209237949fbd438c3c6aec696739ae3c365576cb502e0ee1d2e8bd32eab3d868e76c7bd1be2942e41134aab9a17524090bd688c8208a
7
+ data.tar.gz: 364c17b258645250f24118144fa8b68ee57da49dd8c839ccb5750839cdf15d42868452aacb143473b5fd5af9ff99a08ca2e8a69b107c4d494b0483e2680a1e1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bmc-daemon-lib (0.5.3)
4
+ bmc-daemon-lib (0.6.0)
5
5
  chamber (~> 2.9.1)
6
6
 
7
7
  GEM
@@ -12,7 +12,7 @@ GEM
12
12
  thor (~> 0.19.1)
13
13
  diff-lcs (1.2.5)
14
14
  hashie (3.4.6)
15
- rake (11.3.0)
15
+ rake (12.0.0)
16
16
  rspec (3.5.0)
17
17
  rspec-core (~> 3.5.0)
18
18
  rspec-expectations (~> 3.5.0)
@@ -1,12 +1,12 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.5.3"
4
+ spec.version = "0.6.0"
5
5
 
6
6
  # Project description
7
7
  spec.name = "bmc-daemon-lib"
8
8
  spec.authors = ["Bruno MEDICI"]
9
- spec.email = "bmc-daemon-lib@bmconseil.com"
9
+ spec.email = "opensource@bmconseil.com"
10
10
  spec.description = "Shared utilities to build a daemon: logger, configuration, helpers"
11
11
  spec.summary = spec.description
12
12
  spec.homepage = "http://github.com/bmedici/bmc-daemon-lib"
@@ -51,8 +51,8 @@ module BmcDaemonLib
51
51
  fail ConfigGemspecInvalid, "gemspec not readable: #{gemspec_path}" unless @spec
52
52
 
53
53
  # Extract useful information from gemspec
54
- @app_name = @spec.name
55
- @app_ver = @spec.version
54
+ @app_name = @spec.name.to_s
55
+ @app_ver = @spec.version.to_s
56
56
  fail ConfigMissingParameter, "gemspec: missing name" unless @app_name
57
57
  fail ConfigMissingParameter, "gemspec: missing version" unless @app_ver
58
58
 
@@ -276,7 +276,16 @@ module BmcDaemonLib
276
276
  end
277
277
 
278
278
  def self.add_config path
279
- @files << File.expand_path(path) if path && File.readable?(path)
279
+ # Skip if path is not readable
280
+ return unless path && File.readable?(path)
281
+
282
+ # Check if Chamber's behaviour may cause problems with hyphens
283
+ if File.basename(path).include?'-'
284
+ log :conf, "WARNING: files containting dashes may cause problems with Chamber"
285
+ end
286
+
287
+ # Store the files
288
+ @files << File.expand_path(path)
280
289
  end
281
290
 
282
291
  def self.logfile_path pipe
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc-daemon-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.9.1
69
69
  description: 'Shared utilities to build a daemon: logger, configuration, helpers'
70
- email: bmc-daemon-lib@bmconseil.com
70
+ email: opensource@bmconseil.com
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []