rb2db 0.2.1 → 0.2.2

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.rb +1 -1
  3. data/lib/rb2db/version.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32f4b0d7c7484dcebe02d2e37aeabb618aa87b59
4
- data.tar.gz: c4b7d3545b368a03b9282c1b28b0fef4d4c369b4
3
+ metadata.gz: 756cd09f27b1416ab4634a6920e619b167ae5d6b
4
+ data.tar.gz: 380168ccca324e64e4abf424ab2bb903be14d2c8
5
5
  SHA512:
6
- metadata.gz: 512594700bbd8c29053c25fabcedb2bafc828d015d7c66dffc5d68e01b7f3ddd0a00559fa946ccbd92df4321d2a79d80135c0f8a76fff63c4ad92d27876c3c9d
7
- data.tar.gz: 142b5b820b6f517c0ffb0b3bc055261153ac9cccf70e42168574f02cd0d8ccae45b35807ce03a96041396be734bdfe9d890dcbc99dbf4672dfe7dd3180979b18
6
+ metadata.gz: 0a6ec38f2e1373c136b02cfefd068ad23c6d55eb7dfebaf1dc9c45e21585696f7a64e15c759bca7f43cf01e363ca8a9d9af192d2d837ee641461498c3fdb2d97
7
+ data.tar.gz: e5e526e3b451a4cbf4bdd3158f1bfe39554490d8c377a6c6801327ce6ac8ad502c00d6896a596ecd2e2c9986e7974081317e1ab0d6486ec8bd93d813e97a15fe
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 = '/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))
data/lib/rb2db/version.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  module Rb2db
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
 
4
4
 
5
5
  # CHANGELOG
6
+ # 0.2.2 "XDG_RUNTIME_DIR" is not well supported. Let's just use /tmp/
6
7
  # 0.2.1 Fix PID file location on linux
7
8
  # 0.2.0 Added PID checking to prevent multiple instances.
8
9
  # 0.1.4 Replace mem_available with mem_percent.
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Duffy