dronejob 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +192 -0
- data/Gemfile.lock +87 -70
- data/dronejob.gemspec +6 -6
- data/lib/dronejob/base.rb +9 -4
- data/lib/dronejob/command.rb +30 -32
- data/lib/dronejob/loader.rb +4 -4
- data/lib/dronejob/modules/attr_store.rb +2 -3
- data/lib/dronejob/modules/callbacks.rb +4 -4
- data/lib/dronejob/modules/core.rb +5 -6
- data/lib/dronejob/modules/git.rb +18 -19
- data/lib/dronejob/modules/log.rb +30 -27
- data/lib/dronejob/modules/options.rb +6 -7
- data/lib/dronejob/modules/params.rb +18 -19
- data/lib/dronejob/modules/phases.rb +15 -22
- data/lib/dronejob/modules/queue.rb +17 -18
- data/lib/dronejob/modules/workspace.rb +18 -20
- data/lib/dronejob/railtie.rb +2 -3
- data/lib/dronejob/railties/dronejob.rake +1 -1
- data/lib/dronejob/version.rb +1 -1
- metadata +45 -51
- data/lib/dronejob/workspace_dir.rb +0 -94
- data/lib/dronejob/workspace_dir/archive.rb +0 -19
- data/lib/dronejob/workspace_file.rb +0 -108
- data/lib/dronejob/workspace_file/archive.rb +0 -49
- data/lib/dronejob/workspace_file/media.rb +0 -92
- data/lib/dronejob/workspace_file/net.rb +0 -57
- data/lib/dronejob/workspace_file/parse.rb +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99aece0fbf400e0eb541b300eff7c89333f1cae9
|
4
|
+
data.tar.gz: 79399435385a7dc986cb1bc5118acd89c73cccb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c54435dd1fd438544939fa44163c2701f090158e15e24ecff3b8da5e22205201add6f7bc5a32a039fde5d77b2e1e131d759152ac3088958d21e103f25950f5a7
|
7
|
+
data.tar.gz: 82710f3168c0bbffc26e6e2e4e9941ad660f7a8c67a0a07c09733311b571a87f656e86e15325bbc653894964790efb3085e8f27ffc1f93efdc5786ae4cf3684a
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
Style/SymbolArray:
|
2
|
+
Enabled: true
|
3
|
+
EnforcedStyle: brackets
|
4
|
+
|
5
|
+
# kind_of? is a good way to check a type
|
6
|
+
Style/ClassCheck:
|
7
|
+
EnforcedStyle: kind_of?
|
8
|
+
|
9
|
+
# It's better to be more explicit about the type
|
10
|
+
Style/BracesAroundHashParameters:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/TernaryParentheses:
|
14
|
+
Enabled: true
|
15
|
+
EnforcedStyle: require_parentheses_when_complex
|
16
|
+
|
17
|
+
# specs sometimes have useless assignments, which is fine
|
18
|
+
Lint/UselessAssignment:
|
19
|
+
Exclude:
|
20
|
+
- '**/spec/**/*'
|
21
|
+
|
22
|
+
# We could potentially enable the 2 below:
|
23
|
+
Layout/IndentHash:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Layout/AlignHash:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
# HoundCI doesn't like this rule
|
30
|
+
Layout/DotPosition:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
# We allow !! as it's an easy way to convert ot boolean
|
34
|
+
Style/DoubleNegation:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/NumericPredicate:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
# Sometimes we allow a rescue block that doesn't contain code
|
41
|
+
Lint/HandleExceptions:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
Lint/RescueWithoutErrorClass:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
# Cop supports --auto-correct.
|
48
|
+
Lint/UnusedBlockArgument:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
# Needed for $verbose
|
52
|
+
Style/GlobalVars:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
# We want to allow class Fastlane::Class
|
56
|
+
Style/ClassAndModuleChildren:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
# $? Exit
|
60
|
+
Style/SpecialGlobalVars:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
Metrics/AbcSize:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Metrics/MethodLength:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Metrics/ModuleLength:
|
70
|
+
Enabled: true
|
71
|
+
Max: 110
|
72
|
+
|
73
|
+
Metrics/CyclomaticComplexity:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Metrics/BlockNesting:
|
77
|
+
Max: 5
|
78
|
+
|
79
|
+
Metrics/BlockLength:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
# The %w might be confusing for new users
|
83
|
+
Style/WordArray:
|
84
|
+
MinSize: 19
|
85
|
+
|
86
|
+
# raise and fail are both okay
|
87
|
+
Style/SignalException:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
# Better too much 'return' than one missing
|
91
|
+
Style/RedundantReturn:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
# Having if in the same line might not always be good
|
95
|
+
Style/IfUnlessModifier:
|
96
|
+
Enabled: false
|
97
|
+
|
98
|
+
# and and or is okay
|
99
|
+
Style/AndOr:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
# Configuration parameters: CountComments.
|
103
|
+
Metrics/ClassLength:
|
104
|
+
Max: 400
|
105
|
+
|
106
|
+
# Configuration parameters: AllowURI, URISchemes.
|
107
|
+
Metrics/LineLength:
|
108
|
+
Enabled: false
|
109
|
+
Max: 370
|
110
|
+
|
111
|
+
# Configuration parameters: CountKeywordArgs.
|
112
|
+
Metrics/ParameterLists:
|
113
|
+
Max: 17
|
114
|
+
|
115
|
+
Metrics/PerceivedComplexity:
|
116
|
+
Max: 25
|
117
|
+
|
118
|
+
# Sometimes it's easier to read without guards
|
119
|
+
Style/GuardClause:
|
120
|
+
Enabled: false
|
121
|
+
|
122
|
+
# We allow both " and '
|
123
|
+
Style/StringLiterals:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
# something = if something_else
|
127
|
+
# that's confusing
|
128
|
+
Style/ConditionalAssignment:
|
129
|
+
Enabled: false
|
130
|
+
|
131
|
+
# Better to have too much self than missing a self
|
132
|
+
Style/RedundantSelf:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
# e.g.
|
136
|
+
# def self.is_supported?(platform)
|
137
|
+
# we may never use `platform`
|
138
|
+
Lint/UnusedMethodArgument:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
# the let(:key) { ... }
|
142
|
+
Lint/ParenthesesAsGroupedExpression:
|
143
|
+
Exclude:
|
144
|
+
- '**/spec/**/*'
|
145
|
+
|
146
|
+
# This would reject is_ in front of methods
|
147
|
+
# We use `is_supported?` everywhere already
|
148
|
+
Naming/PredicateName:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
# We allow the $
|
152
|
+
Style/PerlBackrefs:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
# Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
|
156
|
+
Layout/SpaceAroundOperators:
|
157
|
+
Exclude:
|
158
|
+
- '**/spec/actions_specs/xcodebuild_spec.rb'
|
159
|
+
|
160
|
+
# We're not there yet
|
161
|
+
Style/Documentation:
|
162
|
+
Enabled: false
|
163
|
+
|
164
|
+
# Added after upgrade to 0.38.0
|
165
|
+
Style/MutableConstant:
|
166
|
+
Enabled: false
|
167
|
+
|
168
|
+
# length > 0 is good
|
169
|
+
Style/ZeroLengthPredicate:
|
170
|
+
Enabled: false
|
171
|
+
|
172
|
+
# Adds complexity
|
173
|
+
Style/IfInsideElse:
|
174
|
+
Enabled: false
|
175
|
+
|
176
|
+
Style/RescueModifier:
|
177
|
+
Enabled: false
|
178
|
+
|
179
|
+
Naming/VariableNumber:
|
180
|
+
Enabled: false
|
181
|
+
|
182
|
+
Style/ClassVars:
|
183
|
+
Enabled: false
|
184
|
+
|
185
|
+
Style/FrozenStringLiteralComment:
|
186
|
+
Enabled: false
|
187
|
+
|
188
|
+
AllCops:
|
189
|
+
TargetRubyVersion: "2.3.3"
|
190
|
+
Exclude:
|
191
|
+
- './tmp/**/*'
|
192
|
+
- './Gemfile'
|
data/Gemfile.lock
CHANGED
@@ -1,107 +1,98 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dronejob (1.
|
4
|
+
dronejob (1.5.0)
|
5
5
|
actionpack (>= 5.1)
|
6
6
|
activejob (~> 5.1)
|
7
7
|
bundler (>= 1.3.0, < 2.0)
|
8
8
|
git (~> 1.3)
|
9
9
|
google-cloud-logging (~> 1.2)
|
10
|
-
google-cloud-storage (~> 1.3)
|
11
|
-
haml (~> 5.0)
|
12
|
-
open_uri_redirections (~> 0.2)
|
13
|
-
piet (~> 0.2)
|
14
10
|
pusher (~> 1.3)
|
15
|
-
rubyzip (~> 1.2)
|
16
11
|
sidekiq (~> 5.0)
|
17
12
|
thor (~> 0.19)
|
18
|
-
|
13
|
+
workspace (~> 1.0)
|
14
|
+
workspace-archive (~> 1.0)
|
15
|
+
workspace-media (~> 1.0)
|
16
|
+
workspace-net (~> 1.0)
|
17
|
+
workspace-parse (~> 1.0)
|
19
18
|
|
20
19
|
GEM
|
21
20
|
remote: http://rubygems.org/
|
22
21
|
specs:
|
23
|
-
actionpack (5.1.
|
24
|
-
actionview (= 5.1.
|
25
|
-
activesupport (= 5.1.
|
22
|
+
actionpack (5.1.4)
|
23
|
+
actionview (= 5.1.4)
|
24
|
+
activesupport (= 5.1.4)
|
26
25
|
rack (~> 2.0)
|
27
|
-
rack-test (
|
26
|
+
rack-test (>= 0.6.3)
|
28
27
|
rails-dom-testing (~> 2.0)
|
29
28
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
30
|
-
actionview (5.1.
|
31
|
-
activesupport (= 5.1.
|
29
|
+
actionview (5.1.4)
|
30
|
+
activesupport (= 5.1.4)
|
32
31
|
builder (~> 3.1)
|
33
32
|
erubi (~> 1.4)
|
34
33
|
rails-dom-testing (~> 2.0)
|
35
34
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
36
|
-
activejob (5.1.
|
37
|
-
activesupport (= 5.1.
|
35
|
+
activejob (5.1.4)
|
36
|
+
activesupport (= 5.1.4)
|
38
37
|
globalid (>= 0.3.6)
|
39
|
-
activesupport (5.1.
|
38
|
+
activesupport (5.1.4)
|
40
39
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
41
40
|
i18n (~> 0.7)
|
42
41
|
minitest (~> 5.1)
|
43
42
|
tzinfo (~> 1.1)
|
44
|
-
addressable (2.5.
|
45
|
-
public_suffix (
|
43
|
+
addressable (2.5.2)
|
44
|
+
public_suffix (>= 2.0.2, < 4.0)
|
45
|
+
ast (2.3.0)
|
46
46
|
builder (3.2.3)
|
47
|
-
coderay (1.1.
|
47
|
+
coderay (1.1.2)
|
48
48
|
concurrent-ruby (1.0.5)
|
49
49
|
connection_pool (2.2.1)
|
50
|
-
|
51
|
-
declarative-option (0.1.0)
|
50
|
+
crass (1.0.2)
|
52
51
|
diff-lcs (1.3)
|
53
|
-
digest-crc (0.4.1)
|
54
52
|
erubi (1.6.1)
|
55
53
|
ethon (0.10.1)
|
56
54
|
ffi (>= 1.3.0)
|
57
|
-
faraday (0.
|
55
|
+
faraday (0.13.1)
|
58
56
|
multipart-post (>= 1.2, < 3)
|
59
57
|
ffi (1.9.18)
|
60
58
|
git (1.3.0)
|
61
59
|
globalid (0.4.0)
|
62
60
|
activesupport (>= 4.2.0)
|
63
|
-
google-api-client (0.13.1)
|
64
|
-
addressable (~> 2.5, >= 2.5.1)
|
65
|
-
googleauth (~> 0.5)
|
66
|
-
httpclient (>= 2.8.1, < 3.0)
|
67
|
-
mime-types (~> 3.0)
|
68
|
-
representable (~> 3.0)
|
69
|
-
retriable (>= 2.0, < 4.0)
|
70
61
|
google-cloud-core (1.0.0)
|
71
62
|
google-cloud-env (~> 1.0)
|
72
63
|
googleauth (~> 0.5.1)
|
73
64
|
google-cloud-env (1.0.1)
|
74
65
|
faraday (~> 0.11)
|
75
|
-
google-cloud-logging (1.2.
|
66
|
+
google-cloud-logging (1.2.3)
|
76
67
|
google-cloud-core (~> 1.0)
|
77
68
|
google-gax (~> 0.8.0)
|
78
69
|
stackdriver-core (~> 1.2)
|
79
|
-
google-
|
80
|
-
digest-crc (~> 0.4)
|
81
|
-
google-api-client (~> 0.13.0)
|
82
|
-
google-cloud-core (~> 1.0)
|
83
|
-
google-gax (0.8.4)
|
70
|
+
google-gax (0.8.10)
|
84
71
|
google-protobuf (~> 3.2)
|
85
72
|
googleapis-common-protos (~> 1.3.5)
|
86
73
|
googleauth (~> 0.5.1)
|
87
74
|
grpc (~> 1.0)
|
88
75
|
rly (~> 0.2.3)
|
89
|
-
google-protobuf (3.
|
90
|
-
googleapis-common-protos (1.3.
|
91
|
-
google-protobuf (~> 3.
|
76
|
+
google-protobuf (3.4.1.1)
|
77
|
+
googleapis-common-protos (1.3.6)
|
78
|
+
google-protobuf (~> 3.0)
|
79
|
+
googleapis-common-protos-types (~> 1.0)
|
92
80
|
grpc (~> 1.0)
|
93
|
-
|
94
|
-
|
81
|
+
googleapis-common-protos-types (1.0.0)
|
82
|
+
google-protobuf (~> 3.0)
|
83
|
+
googleauth (0.5.3)
|
84
|
+
faraday (~> 0.12)
|
95
85
|
jwt (~> 1.4)
|
96
86
|
logging (~> 2.0)
|
97
87
|
memoist (~> 0.12)
|
98
88
|
multi_json (~> 1.11)
|
99
89
|
os (~> 0.9)
|
100
90
|
signet (~> 0.7)
|
101
|
-
grpc (1.4
|
91
|
+
grpc (1.6.4)
|
102
92
|
google-protobuf (~> 3.1)
|
93
|
+
googleapis-common-protos-types (~> 1.0.0)
|
103
94
|
googleauth (~> 0.5.1)
|
104
|
-
haml (5.0.
|
95
|
+
haml (5.0.3)
|
105
96
|
temple (>= 0.8.0)
|
106
97
|
tilt
|
107
98
|
httpclient (2.8.3)
|
@@ -111,29 +102,32 @@ GEM
|
|
111
102
|
logging (2.2.2)
|
112
103
|
little-plugger (~> 1.1)
|
113
104
|
multi_json (~> 1.10)
|
114
|
-
loofah (2.
|
105
|
+
loofah (2.1.1)
|
106
|
+
crass (~> 1.0.2)
|
115
107
|
nokogiri (>= 1.5.9)
|
116
108
|
memoist (0.16.0)
|
117
|
-
method_source (0.
|
109
|
+
method_source (0.9.0)
|
118
110
|
mime-types (3.1)
|
119
111
|
mime-types-data (~> 3.2015)
|
120
112
|
mime-types-data (3.2016.0521)
|
121
|
-
mini_portile2 (2.
|
122
|
-
minitest (5.10.
|
123
|
-
multi_json (1.12.
|
113
|
+
mini_portile2 (2.3.0)
|
114
|
+
minitest (5.10.3)
|
115
|
+
multi_json (1.12.2)
|
124
116
|
multipart-post (2.0.0)
|
125
|
-
nokogiri (1.8.
|
126
|
-
mini_portile2 (~> 2.
|
127
|
-
open_uri_redirections (0.2.1)
|
117
|
+
nokogiri (1.8.1)
|
118
|
+
mini_portile2 (~> 2.3.0)
|
128
119
|
os (0.9.6)
|
120
|
+
parallel (1.12.0)
|
121
|
+
parser (2.4.0.0)
|
122
|
+
ast (~> 2.2)
|
129
123
|
piet (0.2.5)
|
130
124
|
png_quantizator
|
131
125
|
png_quantizator (0.2.1)
|
132
|
-
|
126
|
+
powerpack (0.1.1)
|
127
|
+
pry (0.11.1)
|
133
128
|
coderay (~> 1.1.0)
|
134
|
-
method_source (~> 0.
|
135
|
-
|
136
|
-
public_suffix (2.0.5)
|
129
|
+
method_source (~> 0.9.0)
|
130
|
+
public_suffix (3.0.0)
|
137
131
|
pusher (1.3.1)
|
138
132
|
httpclient (~> 2.7)
|
139
133
|
multi_json (~> 1.0)
|
@@ -142,20 +136,19 @@ GEM
|
|
142
136
|
rack (2.0.3)
|
143
137
|
rack-protection (2.0.0)
|
144
138
|
rack
|
145
|
-
rack-test (0.
|
146
|
-
rack (>= 1.0)
|
139
|
+
rack-test (0.7.0)
|
140
|
+
rack (>= 1.0, < 3)
|
147
141
|
rails-dom-testing (2.0.3)
|
148
142
|
activesupport (>= 4.2.0)
|
149
143
|
nokogiri (>= 1.6)
|
150
144
|
rails-html-sanitizer (1.0.3)
|
151
145
|
loofah (~> 2.0)
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
uber (< 0.2.0)
|
157
|
-
retriable (3.0.2)
|
146
|
+
rainbow (2.2.2)
|
147
|
+
rake
|
148
|
+
rake (12.1.0)
|
149
|
+
redis (4.0.1)
|
158
150
|
rly (0.2.3)
|
151
|
+
rmagick (2.16.0)
|
159
152
|
rspec (3.6.0)
|
160
153
|
rspec-core (~> 3.6.0)
|
161
154
|
rspec-expectations (~> 3.6.0)
|
@@ -169,28 +162,51 @@ GEM
|
|
169
162
|
diff-lcs (>= 1.2.0, < 2.0)
|
170
163
|
rspec-support (~> 3.6.0)
|
171
164
|
rspec-support (3.6.0)
|
165
|
+
rubocop (0.50.0)
|
166
|
+
parallel (~> 1.10)
|
167
|
+
parser (>= 2.3.3.1, < 3.0)
|
168
|
+
powerpack (~> 0.1)
|
169
|
+
rainbow (>= 2.2.2, < 3.0)
|
170
|
+
ruby-progressbar (~> 1.7)
|
171
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
172
|
+
ruby-progressbar (1.9.0)
|
172
173
|
rubyzip (1.2.1)
|
173
|
-
sidekiq (5.0.
|
174
|
+
sidekiq (5.0.5)
|
174
175
|
concurrent-ruby (~> 1.0)
|
175
176
|
connection_pool (~> 2.2, >= 2.2.0)
|
176
177
|
rack-protection (>= 1.5.0)
|
177
|
-
redis (
|
178
|
+
redis (>= 3.3.4, < 5)
|
178
179
|
signet (0.7.3)
|
179
180
|
addressable (~> 2.3)
|
180
181
|
faraday (~> 0.9)
|
181
182
|
jwt (~> 1.5)
|
182
183
|
multi_json (~> 1.10)
|
183
|
-
slop (3.6.0)
|
184
184
|
stackdriver-core (1.2.0)
|
185
185
|
temple (0.8.0)
|
186
|
-
thor (0.
|
186
|
+
thor (0.20.0)
|
187
187
|
thread_safe (0.3.6)
|
188
|
-
tilt (2.0.
|
189
|
-
typhoeus (1.
|
188
|
+
tilt (2.0.8)
|
189
|
+
typhoeus (1.3.0)
|
190
190
|
ethon (>= 0.9.0)
|
191
191
|
tzinfo (1.2.3)
|
192
192
|
thread_safe (~> 0.1)
|
193
|
-
|
193
|
+
unicode-display_width (1.3.0)
|
194
|
+
workspace (1.0.6)
|
195
|
+
bundler (>= 1.3.0, < 2.0)
|
196
|
+
mime-types (~> 3.1)
|
197
|
+
workspace-archive (1.0.6)
|
198
|
+
rubyzip (~> 1.2)
|
199
|
+
workspace (~> 1.0)
|
200
|
+
workspace-media (1.0.6)
|
201
|
+
piet (~> 0.2)
|
202
|
+
rmagick (~> 2.16)
|
203
|
+
workspace (~> 1.0)
|
204
|
+
workspace-net (1.0.6)
|
205
|
+
typhoeus (~> 1.3)
|
206
|
+
workspace (~> 1.0)
|
207
|
+
workspace-parse (1.0.6)
|
208
|
+
haml (~> 5.0)
|
209
|
+
workspace (~> 1.0)
|
194
210
|
|
195
211
|
PLATFORMS
|
196
212
|
ruby
|
@@ -199,6 +215,7 @@ DEPENDENCIES
|
|
199
215
|
dronejob!
|
200
216
|
pry (~> 0.10)
|
201
217
|
rspec (~> 3.3)
|
218
|
+
rubocop (~> 0.50)
|
202
219
|
|
203
220
|
BUNDLED WITH
|
204
221
|
1.15.1
|