procodile 1.0.18 → 1.0.19

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
- SHA256:
3
- metadata.gz: 1ada130f2164d384a24ea6bab65ada4aea61a4f0d8419967f79b51d63ca8e4a1
4
- data.tar.gz: 82a3268ed13f3e3bd11e8a166cb179c66ddb66a1ab01ea24e3b142895899d033
2
+ SHA1:
3
+ metadata.gz: e6dcf0618a81cc0d780b8136f67bea37b95e3001
4
+ data.tar.gz: 0ea5e88b4bf5d02e9e546da844ca0d93e314b2a8
5
5
  SHA512:
6
- metadata.gz: 554e8814987937065833435498c1560edaf52d5ddab5fba637befcf9497626903674903236159694585e3cf9f8acb0e8e8aa3095c27937ee46c41f41a00abf98
7
- data.tar.gz: cb9ebb78b36a87473bef0a1162bd3a82b9048fa5b30e1f5cfc19c9f1850c2494ef3ec3ab8852ac239f9e2b1d693b6f8102931160fd1443895a8b18885f191fe6
6
+ metadata.gz: 0b08aaf4026a62fb4b1d00560f34ca8422ebecda7ff511ebb9cdbc3d1fdb2c2472a825777349924d70c228cec96d371db9a0aba28649ee54b9c2ffd6cd9d5132
7
+ data.tar.gz: 1c30e51c97c11ad6ec1cf2fb55d23ded12f01868a924a0b8dc3d8d6bde4aa38bfe490f53f6b3aa971ef34f35555eb61952c5250de1c6fa73fb991debc05b14f4
@@ -9,7 +9,7 @@ module Procodile
9
9
  # to us by the user (from --root and/or --procfile)
10
10
  def initialize(pwd, given_root, given_procfile, global_options = {})
11
11
  @pwd = pwd
12
- @given_root = given_root ? File.expand_path(given_root, pwd) : nil
12
+ @given_root = given_root ? expand_path(given_root, pwd) : nil
13
13
  @given_procfile = given_procfile
14
14
  @global_options = global_options
15
15
  calculate
@@ -112,7 +112,7 @@ module Procodile
112
112
  def expand_path(path, root = nil)
113
113
  # Remove trailing slashes for normalization
114
114
  path = path.gsub(/\/\z/, '')
115
- if path =~ /\//
115
+ if path =~ /\A\//
116
116
  # If the path starts with a /, it's absolute. Do nothing.
117
117
  path
118
118
  else
@@ -104,7 +104,7 @@ module Procodile
104
104
  end
105
105
 
106
106
  def pid_root
107
- @pid_root ||= File.expand_path(local_options['pid_root'] || options['pid_root'] || 'pids', self.root)
107
+ File.expand_path(local_options['pid_root'] || options['pid_root'] || 'pids', self.root)
108
108
  end
109
109
 
110
110
  def supervisor_pid_path
@@ -1,3 +1,3 @@
1
1
  module Procodile
2
- VERSION = '1.0.18'
2
+ VERSION = '1.0.19'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procodile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
- rubygems_version: 2.7.4
73
+ rubygems_version: 2.5.2.3
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: This gem will help you run Ruby processes from a Procfile on Linux servers