escobar 0.1.32 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/escobar/heroku/pipeline.rb +9 -4
- data/lib/escobar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05b2a999783ae307bb99e9a414ec5c4a6c81de66
|
|
4
|
+
data.tar.gz: 4724084f80fbceb03a730334e714c3a51c770f44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f9d7f7a9677d97316c369f7c77707df48d28c9b03ddf779f1e4f057d2d0837c35497e34c04dd4beb8ec3cf99065eca5a8d704932e0fbd7f28786621ae54e28f
|
|
7
|
+
data.tar.gz: 6c57cc35b20298b4caf38fa4add6ef9498c74d93fe173becc7bac6f62be2687efac6e00f7e32a284984b9bfb7c8b660fa2341b229602fd1e089de58446f554ff
|
|
@@ -64,8 +64,14 @@ module Escobar
|
|
|
64
64
|
github_client.default_branch
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
def
|
|
68
|
-
|
|
67
|
+
def required_commit_contexts(forced)
|
|
68
|
+
return [] if forced
|
|
69
|
+
github_client.required_contexts.map do |context|
|
|
70
|
+
if context == "continuous-integration/travis-ci"
|
|
71
|
+
context = "continuous-integration/travis-ci/push"
|
|
72
|
+
end
|
|
73
|
+
context
|
|
74
|
+
end
|
|
69
75
|
end
|
|
70
76
|
|
|
71
77
|
def heroku_permalink
|
|
@@ -152,8 +158,7 @@ module Escobar
|
|
|
152
158
|
end
|
|
153
159
|
|
|
154
160
|
def create_github_deployment(task, ref, environment, force, extras = {})
|
|
155
|
-
required_contexts =
|
|
156
|
-
required_contexts = [] if force
|
|
161
|
+
required_contexts = required_commit_contexts(force)
|
|
157
162
|
|
|
158
163
|
options = {
|
|
159
164
|
ref: ref,
|
data/lib/escobar/version.rb
CHANGED