travis-backup 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: f8b5825713610ce11c333d20573340404da43e46afadad8a8149b35194aa371e
4
- data.tar.gz: acc50d6c047c57af32368a5fcd634e130a9ccab611222f1bf8b235be26e474fb
3
+ metadata.gz: 19fae96b332331e2e82f37ad31beb133300277ef5b31a18f428461af797b8932
4
+ data.tar.gz: c6f28927ea89bb70204bd02e02d0aa6b6ebd6beaea36d928246ed49706521049
5
5
  SHA512:
6
- metadata.gz: 14ac9ae0fdc86e32e68dc396a8ad02cc0adf988a6614146ba46c2353a290d4e57d33e5ead26a5cb7f8f8d6c4654c1833fb71af0ce9725d0431e5698d9c984adc
7
- data.tar.gz: b07f0529a93a964f3280daaad33ceaff21c547438d93709c256b905cc8325e5cdfaf5d74204a0a31cd0fa497e43958f789dd66b600d1c5e131a9c74f50003222
6
+ metadata.gz: 4995b5f30cb35ad4768b892e9db2a39cce876b6ba92849a89be52ee9137459e4094aa3e242997ed798501731bd10aff2b44fa22a0e1c795e343884cc7c3d04dd
7
+ data.tar.gz: ff60a38245ae44f807f9c386fff5db013f81d7683d966e4a25a1b5e0054077a9cd0bb7bd56fbf83bb20bae839db65cbef31f0ff7f91624835650176a6adc588c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- travis-backup (0.1.1)
4
+ travis-backup (0.1.2)
5
5
  activerecord
6
6
  bootsnap
7
7
  pg
data/lib/models/build.rb CHANGED
@@ -8,6 +8,7 @@ require 'models/repository'
8
8
  class Build < Model
9
9
  belongs_to :repository
10
10
  has_many :jobs, -> { order('id') }, foreign_key: :source_id, dependent: :destroy, class_name: 'Job'
11
+ has_one :repo_for_that_this_build_is_current, foreign_key: :current_build_id, dependent: :destroy, class_name: 'Repository'
11
12
 
12
13
  self.table_name = 'builds'
13
14
  end
data/lib/travis-backup.rb CHANGED
@@ -184,7 +184,7 @@ class Backup
184
184
  dry_run_report[key].concat(for_delete.map(&:id))
185
185
  dry_run_report[key].uniq!
186
186
  else
187
- model_class.where(id: for_delete.map(&:id)).delete_all
187
+ model_class.where(id: for_delete.map(&:id)).destroy_all
188
188
  end
189
189
  end
190
190
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'travis-backup'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.summary = 'Travis CI backup tool'
5
5
  s.authors = ['Karol Selak']
6
6
  s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karol Selak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord