wedge 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge.rb +4 -3
- data/lib/wedge/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: 9a2f2c44c81d49081288bfe24434855b91bf876c
|
4
|
+
data.tar.gz: e8ff7f64b09778e9f61a20fb08dd6b815799ab85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c864705aeee87f01be1f5b4a62c8b845248840f1798cf6ebfd75749c0093629c849327ae25a543face0e8ecc3d38a006dc8417bdfd1c0ee1d2cad0ee87bb8279
|
7
|
+
data.tar.gz: 5012dd77f880958fd1a16ff580153a8cae1a4b816e1186224be5daf1e8b579b187fd0ffc7b044908dc92f0410c47689d059650937568bc97e81814fabc7c9873
|
data/lib/wedge.rb
CHANGED
@@ -236,9 +236,10 @@ module Wedge
|
|
236
236
|
unless RUBY_ENGINE == 'opal'
|
237
237
|
args[:file_path] = caller.first.gsub(/(?<=\.rb):.*/, '')
|
238
238
|
args[:assets_key] = begin
|
239
|
-
if defined?(
|
240
|
-
|
241
|
-
|
239
|
+
if defined?(PlatformAPI) && ENV['HEROKU_TOKEN'] && ENV['HEROKU_APP']
|
240
|
+
heroku = PlatformAPI.connect_oauth(ENV['HEROKU_TOKEN'])
|
241
|
+
slug_id = heroku.release.list(ENV['HEROKU_APP']).last["slug"]["id"]
|
242
|
+
heroku.slug.info(ENV['HEROKU_APP'], slug_id)["commit"]
|
242
243
|
else
|
243
244
|
`git rev-parse HEAD 2>/dev/null`.to_s.strip
|
244
245
|
end
|
data/lib/wedge/version.rb
CHANGED