rb2db 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rb2db/version.rb +2 -1
  3. data/lib/rb2db.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bef17bdc60b58352015d49fe9157754faf09864
4
- data.tar.gz: b730d15a6ffe12a27db8d585afdc04f303d1f78e
3
+ metadata.gz: 32f4b0d7c7484dcebe02d2e37aeabb618aa87b59
4
+ data.tar.gz: c4b7d3545b368a03b9282c1b28b0fef4d4c369b4
5
5
  SHA512:
6
- metadata.gz: 492f4cd0df9ca222609d3a4c9c356b41dd5d23965b4915ae884e6a22711c34526ed53f1bd28c4a3456972223b4d6e993eb264962c0283b59ca01379003832ada
7
- data.tar.gz: 4684574c238edfdced88ae9c8cb1ef98ba522103241b79a04fe7006c5d2fde25de69a52385e46d4f4dbd0ee101be0ccf3f129bf10ea18eefd307f6939973d1a0
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.0"
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))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb2db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Duffy