escobar 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6690baeea4ab9da1066839dccd231f41e5e0895c
4
- data.tar.gz: e2663c8b3739197c48cd3999d4a8ed1d2543fdaf
3
+ metadata.gz: d2dce68fdb0558f3ae3fd88c156fc299ee3aa03b
4
+ data.tar.gz: 249ec79d552abb75c1618f67db62d16bbcea0c29
5
5
  SHA512:
6
- metadata.gz: d98221a958cae10d5108155bd0c777517470272c43c0cee2a8c493886eac7340ee7d2607df2cb7390f4cf8751ed94cfb1897cbd45369754d0d066a14ce219354
7
- data.tar.gz: 71552446ff413724bb9a759a80d5a6f4e93cc176922a44e7d130f6d3e16de8216f4acc5596243f77d31dfce8aa7f9d69a38e4dea0b3c1917065b71fdfda47692
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
 
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.3.11".freeze
2
+ VERSION = "0.3.12".freeze
3
3
  end
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.11
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-08 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday