chaltron 1.1.1 → 1.1.2

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: 32073442212b3e6819449340c222d7ed96158cf77edafc061f50a58d452b87a8
4
- data.tar.gz: 20f1dab15b7f8ff37fb1090e7506189bc21218c1e46e6f274e2e03363e3929c6
3
+ metadata.gz: b6354790e3277bf2ac0ac2141c0955e160892819eb4e97ef7fa442f140f7855c
4
+ data.tar.gz: 3e3246178b3cdf36d8d43dbf59767ddc250a6a1aba115180da3767027ba7a3eb
5
5
  SHA512:
6
- metadata.gz: dabb6dd121267a95497620ae5e091c8478273cb19f6fb5cb814f8a266fc2fdbb35fb2c8b71539f96360d0b08a7afbdf507f0677b05d528e12639e105e81afe8d
7
- data.tar.gz: 27517cbbbea916d9e95ee200e4b9b436f5f7bf618300c642cc9a9cd3e04b7697c8455e9cfecc074bb42636bf62c41411e441e453b35ec7b3e2229ff176aac3bc
6
+ metadata.gz: fc36a45beb12c20a5cd840ccc820bcb638565cdd410da9bdd920f90130efa6c1d87338ffec262429b35664c5893c17353a38fea28426068dfcb62713b6407961
7
+ data.tar.gz: b3b2d65d3f41ac7eb56df67c21a7b8eb7e55749fa4b8fe873deb3fcf0fb6d154fee89aaabc216da5d371a841dbcd8a1e2717f6d2253deaf248de0b77fbc23f0a
@@ -43,7 +43,7 @@ module ChaltronHelper
43
43
  private
44
44
 
45
45
  def get_revision_number
46
- version_file = "#{Rails.root}/REVISION"
46
+ version_file = "#{Rails.root}/#{Chaltron.revision_filename}"
47
47
  if File.exists?(version_file)
48
48
  v = IO.read(version_file).strip
49
49
  v.blank?? nil : v
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
data/lib/chaltron.rb CHANGED
@@ -45,6 +45,9 @@ module Chaltron
45
45
  mattr_accessor :ldap_before_logout
46
46
  @@ldap_before_logout = -> (user, ldap) { }
47
47
 
48
+ mattr_accessor :revision_filename
49
+ @@revision_filename = 'REVISION'
50
+
48
51
  def self.setup
49
52
  yield self
50
53
  end
@@ -62,6 +62,10 @@ Chaltron.setup do |config|
62
62
  # }
63
63
  #
64
64
 
65
+ # The content of the following file (if present in Rails.root directory)
66
+ # will be displayed in the footer
67
+ # config.revision_filename = 'REVISION'
68
+
65
69
  # If syslog enabled, all Log records will be available also in syslog flow
66
70
  # config.enable_syslog = false
67
71
  # config.syslog_facility = Syslog::LOG_SYSLOG
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaltron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-01 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -502,7 +502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
502
502
  - !ruby/object:Gem::Version
503
503
  version: '0'
504
504
  requirements: []
505
- rubygems_version: 3.0.1
505
+ rubygems_version: 3.0.3
506
506
  signing_key:
507
507
  specification_version: 4
508
508
  summary: Move faster and break things - revisited for rails 4