logjam_agent 0.24.2 → 0.24.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b20bff9f96a0a2d579b508bc1f92117c760aeb31
4
- data.tar.gz: e972f22874775d7184e409db4dbc01b63662f7ff
3
+ metadata.gz: 9e74ba9f0ea165f7aaac6b3829ca0cf88f4f82f8
4
+ data.tar.gz: c99b71bd5e08f7f09e0257cb8cb0048333d34067
5
5
  SHA512:
6
- metadata.gz: eac6d9f8e05fa4cd9f62ff408bf3f304b1860346a976818733572c0e5129dd940dc74e0a3f327281c96993b7b2d425179502815f807d2969a6e13cff1b310e9f
7
- data.tar.gz: ef41e1c35b80e4d04d3eff2bce3ccaf02c8c67e90b52435c1f2a9e3c1ed14ad489d90f4996ac5cbe0805932228e4013fffaf8acd37cf1ef3d5963370cab8830e
6
+ metadata.gz: 205690b2bec4aeb697703dab42c47aa1c1a19ea38be5743a90c56a1b399c67c4913b940a06ec8e03343cb55df4d86752165630f11c43155f9257588829b46050
7
+ data.tar.gz: 1b66fa1f15db4053683abd857ef6da01c9815a86bd2898dc052658a2c5c88084050f5447d81db082bb47993a706814958a7ffa1a83fd9d9106b473c423feae7e
@@ -70,7 +70,8 @@ module LogjamAgent
70
70
  # ignore asset requests in development
71
71
  LogjamAgent.ignore_asset_requests = Rails.env.development?
72
72
 
73
- LogjamAgent.application_revision = `git rev-parse HEAD 2>/dev/null`.chomp rescue ""
73
+ revision_file = File.join(app.root, 'REVISION')
74
+ LogjamAgent.application_revision = File.exist?(revision_file) ? File.read(revision_file) : `git rev-parse HEAD 2>/dev/null`.chomp rescue ""
74
75
 
75
76
  # disable logjam request forwarding by default in test environment
76
77
  LogjamAgent.disable! if Rails.env.test?
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.24.2"
2
+ VERSION = "0.24.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.2
4
+ version: 0.24.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake