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 +4 -4
- data/lib/app_revision.rb +5 -1
- data/lib/app_revision/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d0e2077a3284968164480823eab9a549aedcfa32d7a72c2dfc99e027830a6da
|
|
4
|
+
data.tar.gz: 519d66df42535a8847d5f8f1f671af7751c0e3c261543926b4d6d26c5b6cedbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = [
|
|
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
|
data/lib/app_revision/version.rb
CHANGED