shipit-engine 0.6.2 → 0.6.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/README.md +1 -1
- data/app/assets/javascripts/task/stream.js.coffee +8 -2
- data/app/controllers/shipit/webhooks_controller.rb +1 -2
- data/app/serializers/shipit/stack_serializer.rb +5 -1
- data/lib/shipit/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/helpers/payloads_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fec9ebba1558d43218067b4bfd72e4929114b7c
|
|
4
|
+
data.tar.gz: 58d2a882dc2e1ab2e5cfe1de254ac4d79641e5b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00e4c0c6a3629d78af4e8ae680fce02bfdefceeb8d8f9213364b8743245bbc30224cffacc91ba74f5aac507dba570b2a57ee990df248664d494bdcc1d61ce02c
|
|
7
|
+
data.tar.gz: 0af71c6117a9d124094571d5e8cf6a975da6b6b058aef21800539ae18c7617de8eb0b8659f044711508219a4b0d9808ed6320b252ddb95cc305a94158f66910b
|
data/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Shipit should just work right out of the box — you probably won't need to
|
|
|
61
61
|
|
|
62
62
|
1. If you locked the gem to a specific version in your Gemfile, update it there.
|
|
63
63
|
2. Update the `shipit-engine` gem with `bundle update shipit-engine`.
|
|
64
|
-
3. Install new migrations with `rake
|
|
64
|
+
3. Install new migrations with `rake shipit:install:migrations db:migrate`
|
|
65
65
|
|
|
66
66
|
* * *
|
|
67
67
|
|
|
@@ -43,12 +43,18 @@ class @Stream
|
|
|
43
43
|
if status != @status
|
|
44
44
|
@status = status
|
|
45
45
|
for handler in @listeners('status')
|
|
46
|
-
|
|
46
|
+
try
|
|
47
|
+
handler(status, args...)
|
|
48
|
+
catch error
|
|
49
|
+
console?.log("Plugin error: #{error}")
|
|
47
50
|
|
|
48
51
|
broadcastOutput: (raw, args...) ->
|
|
49
52
|
chunk = new Chunk(raw)
|
|
50
53
|
for handler in @listeners('chunk')
|
|
51
|
-
|
|
54
|
+
try
|
|
55
|
+
handler(chunk, args...)
|
|
56
|
+
catch error
|
|
57
|
+
console?.log("Plugin error: #{error}")
|
|
52
58
|
|
|
53
59
|
error: (response) =>
|
|
54
60
|
@start() if 600 > response.status >= 500 && (@retries += 1) < MAX_RETRIES
|
|
@@ -68,8 +68,7 @@ module Shipit
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def verify_signature
|
|
71
|
-
request.
|
|
72
|
-
head(422) unless webhook.verify_signature(request.headers['X-Hub-Signature'], request.body.read)
|
|
71
|
+
head(422) unless webhook.verify_signature(request.headers['X-Hub-Signature'], request.raw_post)
|
|
73
72
|
end
|
|
74
73
|
|
|
75
74
|
def check_if_ping
|
|
@@ -3,7 +3,7 @@ module Shipit
|
|
|
3
3
|
include ConditionalAttributes
|
|
4
4
|
|
|
5
5
|
has_one :lock_author
|
|
6
|
-
attributes :id, :repo_owner, :repo_name, :environment, :html_url, :url, :tasks_url,
|
|
6
|
+
attributes :id, :repo_owner, :repo_name, :environment, :html_url, :url, :tasks_url, :deploy_spec,
|
|
7
7
|
:undeployed_commits_count, :is_locked, :lock_reason, :continuous_deployment, :created_at, :updated_at
|
|
8
8
|
|
|
9
9
|
def url
|
|
@@ -29,5 +29,9 @@ module Shipit
|
|
|
29
29
|
def include_lock_author?
|
|
30
30
|
object.locked?
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
def deploy_spec
|
|
34
|
+
object.cached_deploy_spec
|
|
35
|
+
end
|
|
32
36
|
end
|
|
33
37
|
end
|
data/lib/shipit/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shipit-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean Boussier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|