Skip to content

Commit 9fdfe60

Browse files
committed
update
1 parent b598e9b commit 9fdfe60

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stack-service-base (0.0.84)
4+
stack-service-base (0.0.86)
55
async
66
debug
77
dotenv

lib/stack-service-base.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ def connect_to_hosts(*args)
4848
stack_name = ENV['STACK_NAME'] || 'undefined_stack'
4949
service_name = ENV['STACK_SERVICE_NAME'] || 'undefined_service'
5050
ar = args.dup
51-
ar[0] ||= {}
52-
ar[0][:fallback_application_name] ||= "#{stack_name}_#{service_name}"
51+
unless ar[0].is_a? String
52+
ar[0][:fallback_application_name] ||= "#{stack_name}_#{service_name}"
53+
end
5354
super(*ar)
5455
end
5556
})

lib/stack-service-base/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module StackServiceBase
2-
VERSION = '0.0.85'
2+
VERSION = '0.0.86'
33
end

0 commit comments

Comments
 (0)