odania 0.0.20 → 0.0.21

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 960a4bfe63694d469f6a2f978bead923b3e40e43
4
- data.tar.gz: 7785ead06a91479888e17b2ab1107eea4e48f128
3
+ metadata.gz: b671c7072f85953afe30ec8589a8f984cc8a8183
4
+ data.tar.gz: e704fd38e458253a9608c2766100891df7c78336
5
5
  SHA512:
6
- metadata.gz: 0b4c8c38d0c7ca369661638b2fe614ad07e789c0709eafd6ee209eda8ce4bcfac0df40c273b182425c71fef5fae4a94a3b28b711fb7e39a463412ed30a014e7e
7
- data.tar.gz: 805b28f4852c5372effebf10b6d6386c4d812615be404c8de59ec73f676ef9b246cd2ae0f5bd6a64721e4918640d581956b7b2998dffc0aa2fcac1be9f138a35
6
+ metadata.gz: 3a6bd18be224b93924931348883e82bb4a7775359cd210dfab21b1b61dcfbd5f6be0fadccbdab87c609ad65a111e87084c74485fa980457b62cae14988dba64b
7
+ data.tar.gz: 1228bdbf0dfc98098ecf36dc071fb612a93226ab19b2aa162709a1f2981cb1ef1c3b06dd627455e0ad3cb13ef1c513df92b00e552a4da09af4e57da1ec28d858
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- odania (0.0.20)
4
+ odania (0.0.21)
5
5
  deep_merge
6
6
  diplomat
7
7
  erubis
data/lib/odania/consul.rb CHANGED
@@ -3,7 +3,8 @@ module Odania
3
3
  attr_reader :service, :config, :event, :health
4
4
 
5
5
  def initialize(consul_url)
6
- consul_url = "http://#{ENV['CONSUL_PORT_8500_TCP_ADDR']}:#{ENV['CONSUL_PORT_8500_TCP_PORT']}" if consul_url.nil?
6
+ consul_url = ENV['CONSUL_ADDR'] if consul_url.nil?
7
+ consul_url = 'http://consul:8500' if consul_url.nil?
7
8
  puts "Consul URL: #{consul_url}" if $debug
8
9
  Diplomat.configure do |config|
9
10
  # Set up a custom Consul URL
@@ -1,3 +1,3 @@
1
1
  module Odania
2
- VERSION = '0.0.20'
2
+ VERSION = '0.0.21'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odania
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-23 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler