shipit-engine 0.8.3 → 0.8.4

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: c98a29b6cd4e544b1891a31328fe343868d656bb
4
- data.tar.gz: c46cef3fbb2c601c45adbcd5052337ff80996034
3
+ metadata.gz: 3d5393d2f7c4aa382b7b0466888eb89086ebb9f0
4
+ data.tar.gz: f58594b87525c88cb87e1127e56d297bfbc58173
5
5
  SHA512:
6
- metadata.gz: 318ea3b94e42aa292f5a31dd6a0dbac0e2b5d59bfedefdb600f9d3388a4a70e4038f84803aeab542bdd06f82c133ff7793e87f9464092d0666e2869c27271215
7
- data.tar.gz: 0b698f6259872d236d42466447fedeac55936d80083cd2c7b78cdb7a69d8fa1a8c2fca228f703cfa6fe5e8f2fd8ec982c2100c748d8c2760c19b8874e6e7d6bf
6
+ metadata.gz: 308a57a785ef7a4ac7d9b1c851387b1f519fc4bfed8b438bcba5e8afb1a4610cf52c40e953fd18d76a6dacd7f567e0b45e03f08426101adba381d2366dc48c1d
7
+ data.tar.gz: 8336d05b58459dd13d1705f3bdba0ece313d9eab7efe3bef3be3c56ec1ea69d06fa26a49c2236b65e9ca5361636f415a2c7b3dd1e4616b05848bd5544fca3f1c
@@ -2,7 +2,7 @@ module Shipit
2
2
  class CommitDeployment < ActiveRecord::Base
3
3
  belongs_to :commit
4
4
  belongs_to :task
5
- has_many :statuses, class_name: 'CommitDeploymentStatus'
5
+ has_many :statuses, dependent: :destroy, class_name: 'CommitDeploymentStatus'
6
6
 
7
7
  after_commit :schedule_create_on_github, on: :create
8
8
 
@@ -11,7 +11,7 @@ module Shipit
11
11
  after_transition any => any, do: :update_commit_deployments
12
12
  end
13
13
 
14
- has_many :commit_deployments, inverse_of: :task, foreign_key: :task_id do
14
+ has_many :commit_deployments, dependent: :destroy, inverse_of: :task, foreign_key: :task_id do
15
15
  GITHUB_STATUSES = {
16
16
  'pending' => 'pending',
17
17
  'failed' => 'failure',
@@ -1,3 +1,3 @@
1
1
  module Shipit
2
- VERSION = '0.8.3'
2
+ VERSION = '0.8.4'
3
3
  end
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.8.3
4
+ version: 0.8.4
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-03-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails