escobar 0.1.17 → 0.1.18

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: 215c4992c7b3c59638fa16b2c086228df83e32b2
4
- data.tar.gz: a91f0086d93d2aac3b398b976ee879207d5b0609
3
+ metadata.gz: b94a30fb6609c4dbf8996d59cfaaffa316f92b5f
4
+ data.tar.gz: d1ca66d25c9062323fa9d3819bc84a4d19dbd9cf
5
5
  SHA512:
6
- metadata.gz: ab9b5f92213cbac6e4deb86a3ad290781d12fdb8c1e43b0e79d29c5a0ae5729bdb5fc3fb838f4619c8aaab419fe94e6264164addd95fd94ae8c5ed705f26797e
7
- data.tar.gz: 618b14a920e91853aaff09c29a92b28d01cd76e26126faf37ba57df84de6d6f28b87e09ca0354743579d2c1436260cb3dd8d3f0fdfbf05a780638e5d693efc8f
6
+ metadata.gz: cfc0a947660ab3bc4297c1effe2e8ffb414faf12c54f84701ac88aa4cca4af454f04098674c6e5ccb218f9261bad9b01f023ccd033080f0b8777ab45cb089be3
7
+ data.tar.gz: 135b8050d3a343f95b104e471d3f0932debfef34113f981c30aef385d4875b95c87ac393330eca8fe324b7f70b9fd6b81c496c4694ce29237d8a3eb5a649f4bc
@@ -61,7 +61,8 @@ module Escobar
61
61
  github_deployment = create_github_deployment("deploy", ref, environment, force, custom_payload)
62
62
  return({ error: github_deployment["message"] }) unless github_deployment["sha"]
63
63
 
64
- build = create_heroku_build(app.name, github_deployment["sha"])
64
+ sha = github_deployment["sha"]
65
+ build = create_heroku_build(app.name, sha)
65
66
  case build["id"]
66
67
  when "two_factor"
67
68
  description = "A second factor is required. Use your configured authenticator app or yubikey."
@@ -72,7 +73,7 @@ module Escobar
72
73
  target_url = "https://dashboard.heroku.com#{path}"
73
74
 
74
75
  create_github_deployment_status(github_deployment["url"], target_url, "pending", "Build running..")
75
- { app_id: app.name, build_id: build["id"], deployment_url: github_deployment["url"] }
76
+ { app_id: app.id, build_id: build["id"], deployment_url: github_deployment["url"], repo: github_repository, sha: sha }
76
77
  else
77
78
  return({ error: "Unable to create heroku build for #{name}" })
78
79
  end
@@ -1,3 +1,3 @@
1
1
  module Escobar
2
- VERSION = "0.1.17".freeze
2
+ VERSION = "0.1.18".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escobar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Donohoe