rb2db 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/lib/rb2db/version.rb +2 -1
- data/lib/rb2db.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f4b0d7c7484dcebe02d2e37aeabb618aa87b59
|
4
|
+
data.tar.gz: c4b7d3545b368a03b9282c1b28b0fef4d4c369b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512594700bbd8c29053c25fabcedb2bafc828d015d7c66dffc5d68e01b7f3ddd0a00559fa946ccbd92df4321d2a79d80135c0f8a76fff63c4ad92d27876c3c9d
|
7
|
+
data.tar.gz: 142b5b820b6f517c0ffb0b3bc055261153ac9cccf70e42168574f02cd0d8ccae45b35807ce03a96041396be734bdfe9d890dcbc99dbf4672dfe7dd3180979b18
|
data/lib/rb2db/version.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
module Rb2db
|
2
|
-
VERSION = "0.2.
|
2
|
+
VERSION = "0.2.1"
|
3
3
|
|
4
4
|
|
5
5
|
# CHANGELOG
|
6
|
+
# 0.2.1 Fix PID file location on linux
|
6
7
|
# 0.2.0 Added PID checking to prevent multiple instances.
|
7
8
|
# 0.1.4 Replace mem_available with mem_percent.
|
8
9
|
# 0.1.3 Bump 'duffy' gem version to fix mem_available detection on older linux
|
data/lib/rb2db.rb
CHANGED
@@ -4,7 +4,7 @@ module Rb2db
|
|
4
4
|
def self.pid_check
|
5
5
|
|
6
6
|
# PID file to use.
|
7
|
-
pid_file = ENV['XDG_RUNTIME_DIR'] || '/tmp' + '/.rb2db.pid'
|
7
|
+
pid_file = (ENV['XDG_RUNTIME_DIR'] || '/tmp') + '/.rb2db.pid'
|
8
8
|
|
9
9
|
# If the file exists, check if the pid inside is still running
|
10
10
|
if (pid = File.file?(pid_file) && File.read(pid_file))
|