overlay 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/overlay/github_controller.rb +2 -1
- data/lib/overlay/github.rb +6 -2
- data/lib/overlay/version.rb +1 -1
- data/spec/dummy/log/test.log +15 -0
- metadata +5 -6
- data/config/initializers/sucker_punch.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5974dc66b5c1c614856d9a2c5d9211532d75f81
|
4
|
+
data.tar.gz: ba9cdd7a1c2af5e57b34b931604fa3a2d0334818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4aed83caa4a223b96677bfe86141bdabe7b4896299803bec9db433e24d18038e9dbebf36ae6e493a97df676e05c2c4d1f58393a7787ffe063209b1d06c1376
|
7
|
+
data.tar.gz: d65c388005e61c1badf3913c56d81d065921772ccf4024abeaf77b97d80b3a02bd2b520dea2c31257d8a81eb79eaa0ab31e6dacf612cb6656967ca820051cef9
|
@@ -8,10 +8,11 @@ module Overlay
|
|
8
8
|
Overlay.configuration.repositories.each do |repo_config|
|
9
9
|
next unless repo_config.class == GithubRepo
|
10
10
|
branch = repo_config[:branch] || 'master'
|
11
|
+
|
11
12
|
if (params[:repository] && params[:ref])
|
12
13
|
if (params[:repository][:name] == repo_config[:repo]) && (params[:ref] == "refs/heads/#{branch}")
|
13
14
|
logger.info "Enqueueing GithubJob for repo: #{repo_config[:repo]} and branch: #{repo_config[:branch] || 'master'}"
|
14
|
-
|
15
|
+
GithubJob.new.async.perform repo_config
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
data/lib/overlay/github.rb
CHANGED
@@ -29,7 +29,7 @@ module Overlay
|
|
29
29
|
|
30
30
|
register_web_hook(repo_config)
|
31
31
|
|
32
|
-
|
32
|
+
GithubJob.new.async.perform repo_config
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
@@ -126,10 +126,14 @@ module Overlay
|
|
126
126
|
end
|
127
127
|
|
128
128
|
class GithubJob
|
129
|
-
include SuckerPunch::
|
129
|
+
include SuckerPunch::Job
|
130
130
|
|
131
131
|
def perform(repo_config)
|
132
132
|
Rails.logger.info "SuckerPunch processing job for #{repo_config[:repo]}"
|
133
|
+
|
134
|
+
# Configure github api
|
135
|
+
Github.configure
|
136
|
+
|
133
137
|
Github.overlay_repo repo_config
|
134
138
|
end
|
135
139
|
end
|
data/lib/overlay/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -312,3 +312,18 @@ SuckerPunch processing job for overlay
|
|
312
312
|
SuckerPunch processing job for overlay
|
313
313
|
Terminating 6 actors...
|
314
314
|
Shutdown completed cleanly
|
315
|
+
Shutdown completed cleanly
|
316
|
+
Processing by Overlay::GithubController#update as HTML
|
317
|
+
Parameters: {"ref"=>"refs/heads/master", "repository"=>{"name"=>"test"}}
|
318
|
+
Rendered text template (0.0ms)
|
319
|
+
Enqueueing GithubJob for repo: test and branch: master
|
320
|
+
SuckerPunch processing job for test
|
321
|
+
Completed 200 OK in 9ms (Views: 6.0ms)
|
322
|
+
Processing by Overlay::GithubController#update as HTML
|
323
|
+
Completed 200 OK in 0ms (Views: 0.2ms)
|
324
|
+
SuckerPunch processing job for overlay
|
325
|
+
SuckerPunch processing job for overlay
|
326
|
+
SuckerPunch processing job for overlay
|
327
|
+
SuckerPunch processing job for overlay
|
328
|
+
Terminating 3 actors...
|
329
|
+
Shutdown completed cleanly
|
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: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Saarinen
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: sucker_punch
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,7 +78,6 @@ files:
|
|
78
78
|
- app/controllers/overlay/github_controller.rb
|
79
79
|
- app/helpers/overlay/application_helper.rb
|
80
80
|
- app/views/layouts/overlay/application.html.erb
|
81
|
-
- config/initializers/sucker_punch.rb
|
82
81
|
- config/routes.rb
|
83
82
|
- lib/overlay/configuration.rb
|
84
83
|
- lib/overlay/engine.rb
|