wedge 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wedge.rb +4 -3
  3. data/lib/wedge/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4ab6bc9cea9538cc7c7d4130950ab59d86ffaea
4
- data.tar.gz: 07c57af6c9efba4b7cc9939c7d6915153b9bc206
3
+ metadata.gz: 9a2f2c44c81d49081288bfe24434855b91bf876c
4
+ data.tar.gz: e8ff7f64b09778e9f61a20fb08dd6b815799ab85
5
5
  SHA512:
6
- metadata.gz: 0f653883cf59fcf003357592a0531689609a4d9be7ffed6c29fe3b06e8024f7dbdb861e4c55d57d07cf94608004a2abc3db9aede4361d89c0fbde5455c73b157
7
- data.tar.gz: 31856598cddb274eab3c5713ed1d690613df47c1b82e871cc6a05852462ab62cd150af9f4001734618dad15c03ce0c2e548e366245073fbc9e1dd0f8839885e8
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?(Heroku::API) && ENV['HEROKU_TOKEN'] && ENV['HEROKU_APP']
240
- h = Heroku::API.new(api_key: ENV['HEROKU_TOKEN'])
241
- h.get_releases(ENV['HEROKU_APP']).body.last['commit']
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
@@ -1,3 +1,3 @@
1
1
  module Wedge
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj