overlay 0.0.7 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f8136668cb8383971b94596bd0a3df395480e02
4
- data.tar.gz: ed6b3800003aea8c0b62e7e0dd567b0731385433
3
+ metadata.gz: 22e57e20d164f28143d25813ff6c3d73c98762d5
4
+ data.tar.gz: a02359245cb792bb0a0d2b9ca0788f748287ffea
5
5
  SHA512:
6
- metadata.gz: f81f9d3a45f100342b32a413fe3d25b2de17aab4a269b4b7014c549e0e780acd5094b793544844257cedfe213381f3a7b3757f11030f32998c88600d4afc52a6
7
- data.tar.gz: 0396978e489d3608a72518dbdc2ca5d122c3282bcab66ac7da4c33ab5bf3c1107e28bb1bf53b62109141609fd6512f99430a2b7ccf493adc6770f2de6ae60a1f
6
+ metadata.gz: b6731c2e56c4f01448ec668bb13ca4c27513ce2fdb24944e6a9676a4d5587a967c17587c59106d987a57db1d8e376b3726513973fca8ca928c618e5121e7e27c
7
+ data.tar.gz: 17e86b2dc38bc82b22330f6426efb6a0ce5ebd5457d70b89985836512b8e64a62a35015edff82ae2cc440c227968f061495c99d4428bff6716813bd8165d9935
@@ -33,8 +33,8 @@ module Overlay
33
33
  Rails.application.reload_routes!
34
34
 
35
35
  # Build hook url
36
- host = config.hostname || ENV['HOST_NAME']
37
- port = config.host_port || ENV['HOST_PORT']
36
+ host = config.hostname || ENV['HOST_NAME'] || Socket.gethostname
37
+ port = config.host_port || ENV['HOST_PORT'] || Rails::Server.new.options[:Port]
38
38
  path = Overlay::Engine.routes.url_for({:controller=>"overlay/github", :action=>"update", :only_path => true})
39
39
  uri = ActionDispatch::Http::URL::url_for({:host => host, :port => port, :path => "#{config.relative_root_url}#{path}"})
40
40
 
@@ -1,3 +1,3 @@
1
1
  module Overlay
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overlay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Saarinen