escobar 0.3.11 → 0.3.12
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/build_request.rb +1 -1
- data/lib/escobar/heroku/pipeline.rb +6 -0
- data/lib/escobar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2dce68fdb0558f3ae3fd88c156fc299ee3aa03b
|
|
4
|
+
data.tar.gz: 249ec79d552abb75c1618f67db62d16bbcea0c29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f7458956bd760e9eaff0364c7e7c467f2358868cb15a2729f0053fb4a77e78ef85de534d7192762fb95b54931d235bbf9547133e7f614eb932a509ebb47cf79
|
|
7
|
+
data.tar.gz: 9996c6ad38d516140cde86184b4a14224af8718f02e6da489a2944144956ec3f1e5e1f5d9686c32ab46644db47b097c33ad5af4ad5fdcad3f926ece3c6ec10fe
|
|
@@ -142,7 +142,7 @@ module Escobar
|
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def required_commit_contexts
|
|
145
|
-
return [] if forced
|
|
145
|
+
return [] if forced || environment != "production"
|
|
146
146
|
github_client.required_contexts.map do |context|
|
|
147
147
|
if context == "continuous-integration/travis-ci"
|
|
148
148
|
context = "continuous-integration/travis-ci/push"
|
|
@@ -109,6 +109,12 @@ module Escobar
|
|
|
109
109
|
app.app
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
+
def heroku_application_by_environment_and_name(stage, name)
|
|
113
|
+
environments[stage].find do |app|
|
|
114
|
+
return app.app if name == app.app.name
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
112
118
|
def create_deployment(ref, environment, force = false, payload = {})
|
|
113
119
|
heroku_app = default_heroku_application(environment)
|
|
114
120
|
|
data/lib/escobar/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: escobar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Corey Donohoe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|