dronejob 1.3.2 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +67 -68
- data/dronejob.gemspec +9 -9
- data/lib/dronejob/base.rb +1 -0
- data/lib/dronejob/modules/phases.rb +7 -3
- data/lib/dronejob/version.rb +1 -1
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11581770a3c3c8428fff7fc4b4f6cfdefd11ea9a
|
4
|
+
data.tar.gz: 90a1466e2950133c4fa288615e0b643bb6763e24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1efa8ad96c947276915386cbbefa2694300ce79c8f706caf0bb04c68389c97328cf068ef164622d7c0993d4db0a98244bbbe6546567d700ab6f4f8f294c779de
|
7
|
+
data.tar.gz: 24409cfdc10cc1ed2adc774d661d46f6a2f01ff7cf51094c60082024b95b0402d9ece36ec29984d9eec5b1da6cca6873cfbce19503c0ceb5b4568b9c299fd27d
|
data/Gemfile.lock
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dronejob (1.
|
5
|
-
actionpack (>=
|
6
|
-
activejob (~>
|
4
|
+
dronejob (1.4.0)
|
5
|
+
actionpack (>= 5.1)
|
6
|
+
activejob (~> 5.1)
|
7
7
|
bundler (>= 1.3.0, < 2.0)
|
8
|
-
git (~> 1.
|
9
|
-
google-cloud-logging (~>
|
10
|
-
google-cloud-storage (~>
|
11
|
-
haml (~>
|
8
|
+
git (~> 1.3)
|
9
|
+
google-cloud-logging (~> 1.2)
|
10
|
+
google-cloud-storage (~> 1.3)
|
11
|
+
haml (~> 5.0)
|
12
12
|
open_uri_redirections (~> 0.2)
|
13
13
|
piet (~> 0.2)
|
14
14
|
pusher (~> 1.3)
|
15
|
-
rubyzip (~> 1.
|
16
|
-
sidekiq (~>
|
15
|
+
rubyzip (~> 1.2)
|
16
|
+
sidekiq (~> 5.0)
|
17
17
|
thor (~> 0.19)
|
18
|
-
typhoeus (~> 1.
|
18
|
+
typhoeus (~> 1.1)
|
19
19
|
|
20
20
|
GEM
|
21
21
|
remote: http://rubygems.org/
|
22
22
|
specs:
|
23
|
-
actionpack (
|
24
|
-
actionview (=
|
25
|
-
activesupport (=
|
26
|
-
rack (~>
|
27
|
-
rack-test (~> 0.6.
|
28
|
-
rails-dom-testing (~>
|
23
|
+
actionpack (5.1.2)
|
24
|
+
actionview (= 5.1.2)
|
25
|
+
activesupport (= 5.1.2)
|
26
|
+
rack (~> 2.0)
|
27
|
+
rack-test (~> 0.6.3)
|
28
|
+
rails-dom-testing (~> 2.0)
|
29
29
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
30
|
-
actionview (
|
31
|
-
activesupport (=
|
30
|
+
actionview (5.1.2)
|
31
|
+
activesupport (= 5.1.2)
|
32
32
|
builder (~> 3.1)
|
33
|
-
|
34
|
-
rails-dom-testing (~>
|
33
|
+
erubi (~> 1.4)
|
34
|
+
rails-dom-testing (~> 2.0)
|
35
35
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
36
|
-
activejob (
|
37
|
-
activesupport (=
|
38
|
-
globalid (>= 0.3.
|
39
|
-
activesupport (
|
36
|
+
activejob (5.1.2)
|
37
|
+
activesupport (= 5.1.2)
|
38
|
+
globalid (>= 0.3.6)
|
39
|
+
activesupport (5.1.2)
|
40
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
40
41
|
i18n (~> 0.7)
|
41
42
|
minitest (~> 5.1)
|
42
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
43
43
|
tzinfo (~> 1.1)
|
44
44
|
addressable (2.5.1)
|
45
45
|
public_suffix (~> 2.0, >= 2.0.2)
|
@@ -49,9 +49,9 @@ GEM
|
|
49
49
|
connection_pool (2.2.1)
|
50
50
|
declarative (0.0.9)
|
51
51
|
declarative-option (0.1.0)
|
52
|
-
diff-lcs (1.
|
52
|
+
diff-lcs (1.3)
|
53
53
|
digest-crc (0.4.1)
|
54
|
-
|
54
|
+
erubi (1.6.1)
|
55
55
|
ethon (0.10.1)
|
56
56
|
ffi (>= 1.3.0)
|
57
57
|
faraday (0.12.1)
|
@@ -60,26 +60,27 @@ GEM
|
|
60
60
|
git (1.3.0)
|
61
61
|
globalid (0.4.0)
|
62
62
|
activesupport (>= 4.2.0)
|
63
|
-
google-api-client (0.
|
64
|
-
addressable (~> 2.
|
63
|
+
google-api-client (0.13.1)
|
64
|
+
addressable (~> 2.5, >= 2.5.1)
|
65
65
|
googleauth (~> 0.5)
|
66
|
-
httpclient (
|
67
|
-
|
68
|
-
memoist (~> 0.11)
|
69
|
-
mime-types (>= 1.6)
|
66
|
+
httpclient (>= 2.8.1, < 3.0)
|
67
|
+
mime-types (~> 3.0)
|
70
68
|
representable (~> 3.0)
|
71
69
|
retriable (>= 2.0, < 4.0)
|
72
|
-
google-cloud-core (0.
|
70
|
+
google-cloud-core (1.0.0)
|
71
|
+
google-cloud-env (~> 1.0)
|
73
72
|
googleauth (~> 0.5.1)
|
74
|
-
google-cloud-
|
75
|
-
|
73
|
+
google-cloud-env (1.0.1)
|
74
|
+
faraday (~> 0.11)
|
75
|
+
google-cloud-logging (1.2.1)
|
76
|
+
google-cloud-core (~> 1.0)
|
76
77
|
google-gax (~> 0.8.0)
|
77
|
-
stackdriver-core (~>
|
78
|
-
google-cloud-storage (
|
78
|
+
stackdriver-core (~> 1.2)
|
79
|
+
google-cloud-storage (1.3.0)
|
79
80
|
digest-crc (~> 0.4)
|
80
|
-
google-api-client (~> 0.
|
81
|
-
google-cloud-core (~>
|
82
|
-
google-gax (0.8.
|
81
|
+
google-api-client (~> 0.13.0)
|
82
|
+
google-cloud-core (~> 1.0)
|
83
|
+
google-gax (0.8.4)
|
83
84
|
google-protobuf (~> 3.2)
|
84
85
|
googleapis-common-protos (~> 1.3.5)
|
85
86
|
googleauth (~> 0.5.1)
|
@@ -97,14 +98,14 @@ GEM
|
|
97
98
|
multi_json (~> 1.11)
|
98
99
|
os (~> 0.9)
|
99
100
|
signet (~> 0.7)
|
100
|
-
grpc (1.
|
101
|
+
grpc (1.4.1-universal-darwin)
|
101
102
|
google-protobuf (~> 3.1)
|
102
103
|
googleauth (~> 0.5.1)
|
103
|
-
haml (
|
104
|
+
haml (5.0.1)
|
105
|
+
temple (>= 0.8.0)
|
104
106
|
tilt
|
105
107
|
httpclient (2.8.3)
|
106
|
-
|
107
|
-
i18n (0.8.4)
|
108
|
+
i18n (0.8.6)
|
108
109
|
jwt (1.5.6)
|
109
110
|
little-plugger (1.1.4)
|
110
111
|
logging (2.2.2)
|
@@ -112,7 +113,7 @@ GEM
|
|
112
113
|
multi_json (~> 1.10)
|
113
114
|
loofah (2.0.3)
|
114
115
|
nokogiri (>= 1.5.9)
|
115
|
-
memoist (0.
|
116
|
+
memoist (0.16.0)
|
116
117
|
method_source (0.8.2)
|
117
118
|
mime-types (3.1)
|
118
119
|
mime-types-data (~> 3.2015)
|
@@ -128,7 +129,7 @@ GEM
|
|
128
129
|
piet (0.2.5)
|
129
130
|
png_quantizator
|
130
131
|
png_quantizator (0.2.1)
|
131
|
-
pry (0.10.
|
132
|
+
pry (0.10.4)
|
132
133
|
coderay (~> 1.1.0)
|
133
134
|
method_source (~> 0.8.1)
|
134
135
|
slop (~> 3.4)
|
@@ -138,17 +139,14 @@ GEM
|
|
138
139
|
multi_json (~> 1.0)
|
139
140
|
pusher-signature (~> 0.1.8)
|
140
141
|
pusher-signature (0.1.8)
|
141
|
-
rack (
|
142
|
+
rack (2.0.3)
|
142
143
|
rack-protection (2.0.0)
|
143
144
|
rack
|
144
145
|
rack-test (0.6.3)
|
145
146
|
rack (>= 1.0)
|
146
|
-
rails-
|
147
|
-
activesupport (>= 4.2.0
|
148
|
-
|
149
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
150
|
-
nokogiri (~> 1.6)
|
151
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
147
|
+
rails-dom-testing (2.0.3)
|
148
|
+
activesupport (>= 4.2.0)
|
149
|
+
nokogiri (>= 1.6)
|
152
150
|
rails-html-sanitizer (1.0.3)
|
153
151
|
loofah (~> 2.0)
|
154
152
|
redis (3.3.3)
|
@@ -158,32 +156,33 @@ GEM
|
|
158
156
|
uber (< 0.2.0)
|
159
157
|
retriable (3.0.2)
|
160
158
|
rly (0.2.3)
|
161
|
-
rspec (3.
|
162
|
-
rspec-core (~> 3.
|
163
|
-
rspec-expectations (~> 3.
|
164
|
-
rspec-mocks (~> 3.
|
165
|
-
rspec-core (3.
|
166
|
-
rspec-support (~> 3.
|
167
|
-
rspec-expectations (3.
|
159
|
+
rspec (3.6.0)
|
160
|
+
rspec-core (~> 3.6.0)
|
161
|
+
rspec-expectations (~> 3.6.0)
|
162
|
+
rspec-mocks (~> 3.6.0)
|
163
|
+
rspec-core (3.6.0)
|
164
|
+
rspec-support (~> 3.6.0)
|
165
|
+
rspec-expectations (3.6.0)
|
168
166
|
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
-
rspec-support (~> 3.
|
170
|
-
rspec-mocks (3.
|
167
|
+
rspec-support (~> 3.6.0)
|
168
|
+
rspec-mocks (3.6.0)
|
171
169
|
diff-lcs (>= 1.2.0, < 2.0)
|
172
|
-
rspec-support (~> 3.
|
173
|
-
rspec-support (3.
|
170
|
+
rspec-support (~> 3.6.0)
|
171
|
+
rspec-support (3.6.0)
|
174
172
|
rubyzip (1.2.1)
|
175
|
-
sidekiq (
|
173
|
+
sidekiq (5.0.4)
|
176
174
|
concurrent-ruby (~> 1.0)
|
177
175
|
connection_pool (~> 2.2, >= 2.2.0)
|
178
176
|
rack-protection (>= 1.5.0)
|
179
|
-
redis (~> 3.
|
177
|
+
redis (~> 3.3, >= 3.3.3)
|
180
178
|
signet (0.7.3)
|
181
179
|
addressable (~> 2.3)
|
182
180
|
faraday (~> 0.9)
|
183
181
|
jwt (~> 1.5)
|
184
182
|
multi_json (~> 1.10)
|
185
183
|
slop (3.6.0)
|
186
|
-
stackdriver-core (
|
184
|
+
stackdriver-core (1.2.0)
|
185
|
+
temple (0.8.0)
|
187
186
|
thor (0.19.4)
|
188
187
|
thread_safe (0.3.6)
|
189
188
|
tilt (2.0.7)
|
data/dronejob.gemspec
CHANGED
@@ -15,17 +15,17 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.required_ruby_version = '~> 2.0'
|
16
16
|
s.required_rubygems_version = '~> 2.4'
|
17
17
|
s.add_dependency "bundler", '>= 1.3.0', '< 2.0'
|
18
|
-
s.add_runtime_dependency "git", "~> 1.
|
18
|
+
s.add_runtime_dependency "git", "~> 1.3"
|
19
19
|
s.add_runtime_dependency "thor", "~> 0.19"
|
20
|
-
s.add_runtime_dependency "haml", "~>
|
21
|
-
s.add_runtime_dependency "sidekiq", "~>
|
22
|
-
s.add_runtime_dependency "rubyzip", "~> 1.
|
23
|
-
s.add_runtime_dependency "activejob", "~>
|
24
|
-
s.add_runtime_dependency "typhoeus", "~> 1.
|
25
|
-
s.add_runtime_dependency "actionpack", ">=
|
20
|
+
s.add_runtime_dependency "haml", "~> 5.0"
|
21
|
+
s.add_runtime_dependency "sidekiq", "~> 5.0"
|
22
|
+
s.add_runtime_dependency "rubyzip", "~> 1.2"
|
23
|
+
s.add_runtime_dependency "activejob", "~> 5.1"
|
24
|
+
s.add_runtime_dependency "typhoeus", "~> 1.1"
|
25
|
+
s.add_runtime_dependency "actionpack", ">= 5.1"
|
26
26
|
s.add_runtime_dependency "open_uri_redirections", "~> 0.2"
|
27
|
-
s.add_runtime_dependency "google-cloud-storage", "~>
|
28
|
-
s.add_runtime_dependency "google-cloud-logging", "~>
|
27
|
+
s.add_runtime_dependency "google-cloud-storage", "~> 1.3"
|
28
|
+
s.add_runtime_dependency "google-cloud-logging", "~> 1.2"
|
29
29
|
s.add_runtime_dependency "pusher", "~> 1.3"
|
30
30
|
s.add_runtime_dependency "piet", "~> 0.2"
|
31
31
|
s.add_development_dependency "rspec", "~> 3.3"
|
data/lib/dronejob/base.rb
CHANGED
@@ -48,9 +48,7 @@ module Dronejob
|
|
48
48
|
# Include helpers
|
49
49
|
if !@phase_config[:helpers].nil?
|
50
50
|
@phase_config[:helpers].each do |helper|
|
51
|
-
|
52
|
-
require "./app/#{helper_path}"
|
53
|
-
self.class.send(:include, helper_path.camelcase.constantize)
|
51
|
+
include_helper(helper)
|
54
52
|
end
|
55
53
|
end
|
56
54
|
|
@@ -64,6 +62,12 @@ module Dronejob
|
|
64
62
|
git_commit("dronejob_completed") if self.class.stateful?
|
65
63
|
end
|
66
64
|
|
65
|
+
def include_helper(helper)
|
66
|
+
helper_path = "helpers/#{helper}"
|
67
|
+
require "./app/#{helper_path}"
|
68
|
+
self.class.send(:include, helper_path.camelcase.constantize)
|
69
|
+
end
|
70
|
+
|
67
71
|
def completed_phase?(phase)
|
68
72
|
if self.class.stateful?
|
69
73
|
@commits.include?(phase.to_s)
|
data/lib/dronejob/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dronejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.3'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.3'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: thor
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,84 +64,84 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '5.0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '5.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: sidekiq
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '5.0'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '5.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rubyzip
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '1.
|
95
|
+
version: '1.2'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '1.
|
102
|
+
version: '1.2'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: activejob
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '5.1'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '5.1'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: typhoeus
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '1.
|
123
|
+
version: '1.1'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '1.
|
130
|
+
version: '1.1'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: actionpack
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '5.1'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '5.1'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: open_uri_redirections
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,28 +162,28 @@ dependencies:
|
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
165
|
+
version: '1.3'
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '1.3'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: google-cloud-logging
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '1.2'
|
180
180
|
type: :runtime
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '1.2'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: pusher
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|