promenade 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: fcd0ddd76a655827fea58d3e9648853ad279c1204eda61ad55a2c51bfaa904d0
4
- data.tar.gz: b3ec856363a77f5bac216219a61edef518ea68a3b16abf1241231547ffa12a93
3
+ metadata.gz: 6038eb3692025b959c4fac797615ad3f213cef7bf44aa2acc0c0fc8abf7abc9d
4
+ data.tar.gz: 68c502e34e147f24ed378ff236ae85f6abadd74eb24400393f980643e2aff25f
5
5
  SHA512:
6
- metadata.gz: 9b029dd4a38306eaafe2729f194a7e66ac9c4336a3b1ba4377e1d87753943bb157719d7d4e013b10934101c612cc0d6aebd261a330141fcaea926fcf5a41ae08
7
- data.tar.gz: b2a3c905b120bb13d541aa789f900a33065f0f0d4a3ce32a0a526d39039f8c7fe803638bfa021d4e06b240f3f3c80ae504d02aa2838f79da9e7d727f3d6e80fb
6
+ metadata.gz: 40cf77b605a494115bd4b43002ddeba06db5b6f37d8ea7dfd110230f1642d25af77f6e7673453d645711558d20693539c44a44c947156d6edda2315ada91fe6d
7
+ data.tar.gz: 924beb3ee617a96e5b3e356e689817e119852e6bcfd798a38bf27109b4a278d7df77cd9ad732b5cee24bc0808546fc2f400752376378e841cfcb09ac553be8ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- promenade (0.1.4)
4
+ promenade (0.1.5)
5
5
  activesupport
6
6
  prometheus-client-mmap (~> 0.9.3)
7
7
  rack
@@ -3,11 +3,11 @@ require "prometheus/client/support/unicorn"
3
3
 
4
4
  module Promenade
5
5
  def self.root_dir
6
- defined?(Rails) ? Rails.root : Dir.pwd
6
+ defined?(Rails) && Rails.root || Pathname.new(ENV.fetch("RAILS_ROOT", Dir.pwd))
7
7
  end
8
8
 
9
9
  def self.multiprocess_files_dir
10
- ENV.fetch("PROMETHEUS_MULTIPROC_DIR", File.join(root_dir, "tmp", "prometheus"))
10
+ ENV.fetch("PROMETHEUS_MULTIPROC_DIR", root_dir.join("tmp", "prometheus"))
11
11
  end
12
12
 
13
13
  def self.setup
@@ -1,3 +1,3 @@
1
1
  module Promenade
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promenade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson