overlay 2.1.2 → 2.1.3
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 +4 -4
- data/lib/overlay/github.rb +4 -3
- data/lib/overlay/version.rb +1 -1
- data/spec/dummy/log/test.log +21 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b6840ab0ba5c0c700274450f6b242a591b2d146
|
|
4
|
+
data.tar.gz: e756154aa59c2298dbe7baccd41903eedaeba8d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49e71a9ca1561218c68a63988ad154a95e356f1188dab141f28e45211d13072686de057673fff62a74c2ad39bb48bfb2d76389ff39274cd61baab9783fb3f743
|
|
7
|
+
data.tar.gz: cadc0f26617de722bf5113357baf7e698d4ea3b6f01cbc6478691581594507c171b69e8c18851b0c120b4175e9dd5a4d3b5f35f597c686f86a148a7b79d4bbec
|
data/lib/overlay/github.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'fileutils'
|
|
|
3
3
|
require 'socket'
|
|
4
4
|
require 'singleton'
|
|
5
5
|
require 'redis'
|
|
6
|
+
require 'net/http'
|
|
6
7
|
|
|
7
8
|
# The github class is responsible for managing overlaying
|
|
8
9
|
# directories in a Github repo on the current application.
|
|
@@ -121,9 +122,9 @@ module Overlay
|
|
|
121
122
|
repo_config.validate
|
|
122
123
|
|
|
123
124
|
# Register this repo with the manager
|
|
124
|
-
uri = URI.parse(repo_config.registration_server)
|
|
125
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
|
126
|
-
request = Net::HTTP::Post.new("/register")
|
|
125
|
+
uri = ::URI.parse(repo_config.registration_server)
|
|
126
|
+
http = ::Net::HTTP.new(uri.host, uri.port)
|
|
127
|
+
request = ::Net::HTTP::Post.new("/register")
|
|
127
128
|
request.add_field('Content-Type', 'application/json')
|
|
128
129
|
request.body = {
|
|
129
130
|
'organization' => repo_config.org,
|
data/lib/overlay/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
|
@@ -1797,3 +1797,24 @@ Overlay register webhook for repo: org => test_org, repo => test_repo
|
|
|
1797
1797
|
Processing by Overlay::GithubController#update as HTML
|
|
1798
1798
|
Parameters: {"ref"=>"refs/heads/master", "repository"=>{"name"=>"test_repo"}}
|
|
1799
1799
|
Completed 200 OK in 0ms (Views: 0.2ms)
|
|
1800
|
+
Processing by Overlay::GithubController#update as HTML
|
|
1801
|
+
Parameters: {"ref"=>"refs/heads/master", "repository"=>{"name"=>"test_repo"}}
|
|
1802
|
+
Rendered text template (0.0ms)
|
|
1803
|
+
Completed 200 OK in 8ms (Views: 7.4ms)
|
|
1804
|
+
Processing by Overlay::GithubController#update as HTML
|
|
1805
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
|
1806
|
+
Overlay subscribing to redis channel: test_key
|
|
1807
|
+
Overlay register webhook for repo: org => test_org, repo => test_repo
|
|
1808
|
+
Overlay register webhook for repo: org => test_org, repo => test_repo
|
|
1809
|
+
Overlay found added file in hook: lib/test/test.rb
|
|
1810
|
+
Overlay found modified file in hook: lib/test/test.rb
|
|
1811
|
+
Overlay found deleted file in hook: lib/test/test.rb
|
|
1812
|
+
Overlay found added file in hook: lib/test/test.rb
|
|
1813
|
+
Overlay found modified file in hook: lib/test/test.rb
|
|
1814
|
+
Overlay found deleted file in hook: lib/test/test.rb
|
|
1815
|
+
Overlay found added file in hook: lib/test/test.rb
|
|
1816
|
+
Overlay found modified file in hook: lib/test/test.rb
|
|
1817
|
+
Overlay found deleted file in hook: lib/test/test.rb
|
|
1818
|
+
Overlay found added file in hook: lib/test/test.rb
|
|
1819
|
+
Overlay found modified file in hook: lib/test/test.rb
|
|
1820
|
+
Overlay found deleted file in hook: lib/test/test.rb
|