app_revision 0.1.0 → 0.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ed2215f23235f03ade7fd73df421c04df6a4acad7cb94202ea388c38b2fd258
4
- data.tar.gz: 8dab5494ff477d771de7aaf4068b6285ff5c1b87018434897d4049e58aa4a1f2
3
+ metadata.gz: 8d0e2077a3284968164480823eab9a549aedcfa32d7a72c2dfc99e027830a6da
4
+ data.tar.gz: 519d66df42535a8847d5f8f1f671af7751c0e3c261543926b4d6d26c5b6cedbc
5
5
  SHA512:
6
- metadata.gz: 48b4fff69ad74d66e4879650555faad8e0da532600584c391f823c9deb2794f99f6d52b2e8c8598d9d854533f6d43d26ab12131a61301851fbc3ced112ca2b66
7
- data.tar.gz: 1f13fb5fe11351c137c4a93b55f78535f462617c1b7de5f30634d3953feaf36d1f0d29333af0aeea9e730caa2152ada0ff6788b8ce0207b5344949b7297165da
6
+ metadata.gz: aa6fcd0994d0c9db1d8512dae83e2b5e6391ede2e07336a580668d299ebd7429c186d29a57423189e1e00d79ce7bd1c8600cf8de3759754fe32291a2203d1189
7
+ data.tar.gz: 8c3cddb168cebcf14080c4086225efccfc355b60ffd844759b6391dec08e6780a75536635c908835658c0dbccea654e32c20f1b00be1a0137ea1e5e97ab5bbe0
data/lib/app_revision.rb CHANGED
@@ -4,7 +4,11 @@ require "app_revision/version"
4
4
  # environment variable, then in the REVISION file written by Capsitrano, then
5
5
  # in the Git history and lastly will return 'unknown' will be returned
6
6
  module AppRevision
7
- ENV_VARS = ['APP_REVISION', 'HEROKU_REVISION']
7
+ ENV_VARS = [
8
+ 'APP_REVISION', # As used by Appsignal et al
9
+ 'HEROKU_SLUG_COMMIT', # As is available in https://devcenter.heroku.com/articles/dyno-metadata
10
+ 'TRAVIS_COMMIT', # As per https://docs.travis-ci.com/user/environment-variables/
11
+ ]
8
12
 
9
13
  # Calls `determine_current` with memoization.
10
14
  def self.current
@@ -1,3 +1,3 @@
1
1
  module AppRevision
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_revision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov