emissary 1.3.11 → 1.3.12

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.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/emissary.rb +7 -7
  3. metadata +3 -3
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 3
4
- :patch: 11
4
+ :patch: 12
data/lib/emissary.rb CHANGED
@@ -32,9 +32,9 @@ module Emissary
32
32
  VERSION = ::YAML.load(File.read(PATH + 'VERSION.yml')).values.join '.'
33
33
 
34
34
  EXTERNALS_BASE = Pathname.new('/opt/emissary')
35
- EXTERNAL_IDENTITIES = EXTERNALS_BASE + 'identities'
36
- EXTERNAL_AGENTS = EXTERNALS_BASE + 'agents'
37
- EXTERNAL_OPERATORS = EXTERNALS_BASE + 'operators'
35
+ EXTERNAL_IDENTITIES = (EXTERNALS_BASE + 'identities').to_s
36
+ EXTERNAL_AGENTS = (EXTERNALS_BASE + 'agents').to_s
37
+ EXTERNAL_OPERATORS = (EXTERNALS_BASE + 'operators').to_s
38
38
 
39
39
  DEFAULT_EXCHANGE = :direct
40
40
  DAEMON_RECHECK_INTERVAL = 10
@@ -59,7 +59,7 @@ module Emissary
59
59
  # <tt>File.join</tt>.
60
60
  #
61
61
  def libpath( *args )
62
- LIBPATH.join(args.flatten)
62
+ args.empty? ? LIBPATH.to_s : File.join(LIBPATH.to_s, args.flatten)
63
63
  end
64
64
 
65
65
  # Returns the path for the module. If any arguments are given,
@@ -67,11 +67,11 @@ module Emissary
67
67
  # <tt>File.join</tt>.
68
68
  #
69
69
  def path( *args )
70
- args.empty? ? PATH : File.join(PATH, args.flatten)
70
+ args.empty? ? PATH.to_s : File.join(PATH.to_s, args.flatten)
71
71
  end
72
72
 
73
73
  def sublib_path( *args )
74
- args.empty? ? PATH : File.join(LIBPATH, 'emissary', args.flatten)
74
+ args.empty? ? PATH.to_s : File.join(LIBPATH.to_s, 'emissary', args.flatten)
75
75
  end
76
76
 
77
77
  def klass_from_handler(klass = nil, handler = nil, *args)
@@ -217,7 +217,7 @@ module Emissary
217
217
  end
218
218
  end # module Emissary
219
219
 
220
- $:.unshift Emissary::LIBPATH
220
+ $:.unshift Emissary::LIBPATH.to_s
221
221
 
222
222
  [ :errors, :logger, :operator, :agent, :identity, :message, :config, :gem_helper ].each do |sublib|
223
223
  require Emissary.sublib_path sublib.to_s
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emissary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 11
10
- version: 1.3.11
9
+ - 12
10
+ version: 1.3.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl P. Corliss