travis-backup 0.1.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -1
- data/README.md +14 -4
- data/lib/backup/load_from_files.rb +245 -0
- data/lib/backup/move_logs.rb +43 -0
- data/lib/backup/remove_orphans.rb +177 -0
- data/lib/backup/remove_specified/remove_heavy_data.rb +99 -0
- data/lib/backup/remove_specified/remove_with_all_dependencies.rb +51 -0
- data/lib/backup/remove_specified/shared.rb +20 -0
- data/lib/backup/remove_specified.rb +68 -0
- data/lib/backup/save_file.rb +43 -0
- data/lib/backup/save_id_hash_to_file.rb +33 -0
- data/lib/backup/save_nullified_rels_to_file.rb +29 -0
- data/lib/config.rb +37 -7
- data/lib/db_helper.rb +27 -0
- data/lib/dry_run_reporter.rb +47 -0
- data/lib/id_hash.rb +97 -0
- data/lib/ids_of_all_dependencies.rb +330 -0
- data/lib/model.rb +77 -0
- data/lib/models/abuse.rb +9 -0
- data/lib/models/annotation.rb +8 -0
- data/lib/models/branch.rb +9 -1
- data/lib/models/broadcast.rb +8 -0
- data/lib/models/build.rb +23 -3
- data/lib/models/commit.rb +8 -1
- data/lib/models/cron.rb +2 -1
- data/lib/models/email.rb +8 -0
- data/lib/models/invoice.rb +8 -0
- data/lib/models/job.rb +10 -2
- data/lib/models/log.rb +1 -1
- data/lib/models/membership.rb +9 -0
- data/lib/models/message.rb +8 -0
- data/lib/models/organization.rb +15 -1
- data/lib/models/owner_group.rb +8 -0
- data/lib/models/permission.rb +9 -0
- data/lib/models/pull_request.rb +5 -1
- data/lib/models/queueable_job.rb +8 -0
- data/lib/models/repository.rb +16 -3
- data/lib/models/request.rb +11 -1
- data/lib/models/ssl_key.rb +2 -1
- data/lib/models/stage.rb +4 -1
- data/lib/models/star.rb +9 -0
- data/lib/models/subscription.rb +9 -0
- data/lib/models/tag.rb +7 -1
- data/lib/models/token.rb +8 -0
- data/lib/models/trial.rb +9 -0
- data/lib/models/trial_allowance.rb +9 -0
- data/lib/models/user.rb +33 -1
- data/lib/models/user_beta_feature.rb +8 -0
- data/lib/nullify_dependencies.rb +42 -0
- data/lib/travis-backup.rb +40 -266
- data/travis-backup.gemspec +2 -1
- metadata +53 -9
- data/Gemfile.lock +0 -212
- data/lib/models/model.rb +0 -8
data/Gemfile.lock
DELETED
@@ -1,212 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
travis-backup (0.1.2)
|
5
|
-
activerecord
|
6
|
-
bootsnap
|
7
|
-
pg
|
8
|
-
pry
|
9
|
-
rails
|
10
|
-
tzinfo-data
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
actioncable (6.1.4.1)
|
16
|
-
actionpack (= 6.1.4.1)
|
17
|
-
activesupport (= 6.1.4.1)
|
18
|
-
nio4r (~> 2.0)
|
19
|
-
websocket-driver (>= 0.6.1)
|
20
|
-
actionmailbox (6.1.4.1)
|
21
|
-
actionpack (= 6.1.4.1)
|
22
|
-
activejob (= 6.1.4.1)
|
23
|
-
activerecord (= 6.1.4.1)
|
24
|
-
activestorage (= 6.1.4.1)
|
25
|
-
activesupport (= 6.1.4.1)
|
26
|
-
mail (>= 2.7.1)
|
27
|
-
actionmailer (6.1.4.1)
|
28
|
-
actionpack (= 6.1.4.1)
|
29
|
-
actionview (= 6.1.4.1)
|
30
|
-
activejob (= 6.1.4.1)
|
31
|
-
activesupport (= 6.1.4.1)
|
32
|
-
mail (~> 2.5, >= 2.5.4)
|
33
|
-
rails-dom-testing (~> 2.0)
|
34
|
-
actionpack (6.1.4.1)
|
35
|
-
actionview (= 6.1.4.1)
|
36
|
-
activesupport (= 6.1.4.1)
|
37
|
-
rack (~> 2.0, >= 2.0.9)
|
38
|
-
rack-test (>= 0.6.3)
|
39
|
-
rails-dom-testing (~> 2.0)
|
40
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
41
|
-
actiontext (6.1.4.1)
|
42
|
-
actionpack (= 6.1.4.1)
|
43
|
-
activerecord (= 6.1.4.1)
|
44
|
-
activestorage (= 6.1.4.1)
|
45
|
-
activesupport (= 6.1.4.1)
|
46
|
-
nokogiri (>= 1.8.5)
|
47
|
-
actionview (6.1.4.1)
|
48
|
-
activesupport (= 6.1.4.1)
|
49
|
-
builder (~> 3.1)
|
50
|
-
erubi (~> 1.4)
|
51
|
-
rails-dom-testing (~> 2.0)
|
52
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
53
|
-
activejob (6.1.4.1)
|
54
|
-
activesupport (= 6.1.4.1)
|
55
|
-
globalid (>= 0.3.6)
|
56
|
-
activemodel (6.1.4.1)
|
57
|
-
activesupport (= 6.1.4.1)
|
58
|
-
activerecord (6.1.4.1)
|
59
|
-
activemodel (= 6.1.4.1)
|
60
|
-
activesupport (= 6.1.4.1)
|
61
|
-
activestorage (6.1.4.1)
|
62
|
-
actionpack (= 6.1.4.1)
|
63
|
-
activejob (= 6.1.4.1)
|
64
|
-
activerecord (= 6.1.4.1)
|
65
|
-
activesupport (= 6.1.4.1)
|
66
|
-
marcel (~> 1.0.0)
|
67
|
-
mini_mime (>= 1.1.0)
|
68
|
-
activesupport (6.1.4.1)
|
69
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
70
|
-
i18n (>= 1.6, < 2)
|
71
|
-
minitest (>= 5.1)
|
72
|
-
tzinfo (~> 2.0)
|
73
|
-
zeitwerk (~> 2.3)
|
74
|
-
ast (2.4.2)
|
75
|
-
bootsnap (1.7.7)
|
76
|
-
msgpack (~> 1.0)
|
77
|
-
brakeman (5.1.1)
|
78
|
-
builder (3.2.4)
|
79
|
-
byebug (11.1.3)
|
80
|
-
coderay (1.1.3)
|
81
|
-
concurrent-ruby (1.1.9)
|
82
|
-
crass (1.0.6)
|
83
|
-
diff-lcs (1.4.4)
|
84
|
-
erubi (1.10.0)
|
85
|
-
factory_bot (6.2.0)
|
86
|
-
activesupport (>= 5.0.0)
|
87
|
-
ffi (1.15.3)
|
88
|
-
globalid (0.5.2)
|
89
|
-
activesupport (>= 5.0)
|
90
|
-
i18n (1.8.10)
|
91
|
-
concurrent-ruby (~> 1.0)
|
92
|
-
jaro_winkler (1.5.4)
|
93
|
-
listen (3.7.0)
|
94
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
95
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
96
|
-
loofah (2.12.0)
|
97
|
-
crass (~> 1.0.2)
|
98
|
-
nokogiri (>= 1.5.9)
|
99
|
-
mail (2.7.1)
|
100
|
-
mini_mime (>= 0.1.1)
|
101
|
-
marcel (1.0.1)
|
102
|
-
method_source (1.0.0)
|
103
|
-
mini_mime (1.1.1)
|
104
|
-
mini_portile2 (2.6.1)
|
105
|
-
minitest (5.14.4)
|
106
|
-
msgpack (1.4.2)
|
107
|
-
nio4r (2.5.8)
|
108
|
-
nokogiri (1.12.3)
|
109
|
-
mini_portile2 (~> 2.6.1)
|
110
|
-
racc (~> 1.4)
|
111
|
-
parallel (1.20.1)
|
112
|
-
parser (3.0.2.0)
|
113
|
-
ast (~> 2.4.1)
|
114
|
-
pg (1.2.3)
|
115
|
-
pry (0.14.1)
|
116
|
-
coderay (~> 1.1)
|
117
|
-
method_source (~> 1.0)
|
118
|
-
racc (1.5.2)
|
119
|
-
rack (2.2.3)
|
120
|
-
rack-test (1.1.0)
|
121
|
-
rack (>= 1.0, < 3)
|
122
|
-
rails (6.1.4.1)
|
123
|
-
actioncable (= 6.1.4.1)
|
124
|
-
actionmailbox (= 6.1.4.1)
|
125
|
-
actionmailer (= 6.1.4.1)
|
126
|
-
actionpack (= 6.1.4.1)
|
127
|
-
actiontext (= 6.1.4.1)
|
128
|
-
actionview (= 6.1.4.1)
|
129
|
-
activejob (= 6.1.4.1)
|
130
|
-
activemodel (= 6.1.4.1)
|
131
|
-
activerecord (= 6.1.4.1)
|
132
|
-
activestorage (= 6.1.4.1)
|
133
|
-
activesupport (= 6.1.4.1)
|
134
|
-
bundler (>= 1.15.0)
|
135
|
-
railties (= 6.1.4.1)
|
136
|
-
sprockets-rails (>= 2.0.0)
|
137
|
-
rails-dom-testing (2.0.3)
|
138
|
-
activesupport (>= 4.2.0)
|
139
|
-
nokogiri (>= 1.6)
|
140
|
-
rails-html-sanitizer (1.4.1)
|
141
|
-
loofah (~> 2.3)
|
142
|
-
railties (6.1.4.1)
|
143
|
-
actionpack (= 6.1.4.1)
|
144
|
-
activesupport (= 6.1.4.1)
|
145
|
-
method_source
|
146
|
-
rake (>= 0.13)
|
147
|
-
thor (~> 1.0)
|
148
|
-
rainbow (3.0.0)
|
149
|
-
rake (13.0.6)
|
150
|
-
rb-fsevent (0.11.0)
|
151
|
-
rb-inotify (0.10.1)
|
152
|
-
ffi (~> 1.0)
|
153
|
-
rspec-core (3.10.1)
|
154
|
-
rspec-support (~> 3.10.0)
|
155
|
-
rspec-expectations (3.10.1)
|
156
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
157
|
-
rspec-support (~> 3.10.0)
|
158
|
-
rspec-mocks (3.10.2)
|
159
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
160
|
-
rspec-support (~> 3.10.0)
|
161
|
-
rspec-rails (5.0.2)
|
162
|
-
actionpack (>= 5.2)
|
163
|
-
activesupport (>= 5.2)
|
164
|
-
railties (>= 5.2)
|
165
|
-
rspec-core (~> 3.10)
|
166
|
-
rspec-expectations (~> 3.10)
|
167
|
-
rspec-mocks (~> 3.10)
|
168
|
-
rspec-support (~> 3.10)
|
169
|
-
rspec-support (3.10.2)
|
170
|
-
rubocop (0.75.1)
|
171
|
-
jaro_winkler (~> 1.5.1)
|
172
|
-
parallel (~> 1.10)
|
173
|
-
parser (>= 2.6)
|
174
|
-
rainbow (>= 2.2.2, < 4.0)
|
175
|
-
ruby-progressbar (~> 1.7)
|
176
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
177
|
-
rubocop-rspec (1.41.0)
|
178
|
-
rubocop (>= 0.68.1)
|
179
|
-
ruby-progressbar (1.11.0)
|
180
|
-
sprockets (4.0.2)
|
181
|
-
concurrent-ruby (~> 1.0)
|
182
|
-
rack (> 1, < 3)
|
183
|
-
sprockets-rails (3.2.2)
|
184
|
-
actionpack (>= 4.0)
|
185
|
-
activesupport (>= 4.0)
|
186
|
-
sprockets (>= 3.0.0)
|
187
|
-
thor (1.1.0)
|
188
|
-
tzinfo (2.0.4)
|
189
|
-
concurrent-ruby (~> 1.0)
|
190
|
-
tzinfo-data (1.2021.1)
|
191
|
-
tzinfo (>= 1.0.0)
|
192
|
-
unicode-display_width (1.6.1)
|
193
|
-
websocket-driver (0.7.5)
|
194
|
-
websocket-extensions (>= 0.1.0)
|
195
|
-
websocket-extensions (0.1.5)
|
196
|
-
zeitwerk (2.4.2)
|
197
|
-
|
198
|
-
PLATFORMS
|
199
|
-
ruby
|
200
|
-
|
201
|
-
DEPENDENCIES
|
202
|
-
brakeman
|
203
|
-
byebug
|
204
|
-
factory_bot
|
205
|
-
listen
|
206
|
-
rspec-rails
|
207
|
-
rubocop (~> 0.75.1)
|
208
|
-
rubocop-rspec
|
209
|
-
travis-backup!
|
210
|
-
|
211
|
-
BUNDLED WITH
|
212
|
-
2.1.4
|