app_revision 0.2.0 → 0.2.1
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/README.md +2 -2
- data/lib/app_revision.rb +1 -0
- data/lib/app_revision/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68b9113c22dba0bea3e20f77216fc2c9c7c2204054f0bbaed33c3dea73e0d179
|
|
4
|
+
data.tar.gz: f7be7013210f55ccb795c444d09ac7a0a773f66cac03b27ca6462381f049a2fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d0000ed226b92a1b83ab0451aee273ca11ba91cd510011c69fa9d46d55a844c9fb32b85e4b3fd2679e2bde70afb51b824d4dc3439f86ea19b391ed1ffee6217
|
|
7
|
+
data.tar.gz: f8df8f77aa2122f5f2d5964986d2135f5efe5511ae38b6da845a0a96104397c19c0b5911d261403cc8af7eddc26d739c6450158e3edcb2b99d790c3725e7e6d4
|
data/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Returns the current application git commit SHA. Will look first in the APP_REVISION
|
|
4
4
|
environment variable, then in the REVISION file written by Capsitrano, then
|
|
5
|
-
in the Git history and lastly will return
|
|
6
|
-
|
|
5
|
+
in the Git history and lastly will return `unknown`
|
|
6
|
+
|
|
7
7
|
# Installation
|
|
8
8
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
data/lib/app_revision.rb
CHANGED
|
@@ -7,6 +7,7 @@ module AppRevision
|
|
|
7
7
|
ENV_VARS = [
|
|
8
8
|
'APP_REVISION', # As used by Appsignal et al
|
|
9
9
|
'HEROKU_SLUG_COMMIT', # As is available in https://devcenter.heroku.com/articles/dyno-metadata
|
|
10
|
+
'SOURCE_VERSION', # As defined in https://devcenter.heroku.com/changelog-items/630
|
|
10
11
|
'TRAVIS_COMMIT', # As per https://docs.travis-ci.com/user/environment-variables/
|
|
11
12
|
]
|
|
12
13
|
|
data/lib/app_revision/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: app_revision
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julik Tarkhanov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05-
|
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|