shipit-engine 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59cbfe58080e7d87f9ada7bdc2653c921fb1f428
4
- data.tar.gz: f09d5badb13bad258b0f556d2b34a241e6d7924d
3
+ metadata.gz: 3fec9ebba1558d43218067b4bfd72e4929114b7c
4
+ data.tar.gz: 58d2a882dc2e1ab2e5cfe1de254ac4d79641e5b5
5
5
  SHA512:
6
- metadata.gz: 87814f3b0c11349e002920906b0d02da9a6adb140e8be61d0e434ae285fddacb69fef9fb77742e3935c43a40bf5fbc5f8b83a10bd1f37c18828ca7b681829ba7
7
- data.tar.gz: 9648a7c91028b6c5257a1b0e6d63cfc1fd0608cdf67219bc0399742c9b66a069b031481d1a07e1718531d8139442010b4a1964ae59e2b1f13a0aafd35b34f0fe
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 shipit_engine:install:migrations db:migrate`
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
- handler(status, args...)
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
- handler(chunk, args...)
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.body.rewind
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
@@ -1,3 +1,3 @@
1
1
  module Shipit
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
Binary file
@@ -4,3 +4,4 @@ module PayloadsHelper
4
4
  JSON.parse(file.read)
5
5
  end
6
6
  end
7
+
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails