p4util 0.4.2 → 0.4.3

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
  SHA1:
3
- metadata.gz: 77e7441f7a8592f7922f7c5431d7e7a6bbf83dd8
4
- data.tar.gz: 74de30ab1497625d128782db576e03020eebd8b6
3
+ metadata.gz: dd11fe0cd2a4939fcea11dc98c6b819b3628a272
4
+ data.tar.gz: ed1030a38863741a82d1aaa18442a1a71f8c1bc1
5
5
  SHA512:
6
- metadata.gz: 1728fe537fe341d2f0f7c9a939e72bfe12b73b3d68c3a4dcfcf9c720a4c67835f19b7fc3c0d3f6065d601b71e3ad3683f1a297a16b13197fe92017280a6a0c03
7
- data.tar.gz: a9ee8af27a0a9db14fef1b03a4b4481a5f5e0a801bcc5a5eda57846068340334c445d10541004637259a8117c1fdcdf3e2a103c6ad94e19991de84beb7ee713d
6
+ metadata.gz: c6a5e9c1e263132d06bfea572aa7ff0bc17e0b6e2e7fbae0f75ae0a8326f52f7118728ad14219b6215cc840eb23f94fa6cfd735f135078be357d3adf2fcc68a2
7
+ data.tar.gz: 50607286ca0759c5345f35f747c5acb7ae2d6a40b34ff1f1467e3aedbaf119654da368138cf2c203b6e2530e8d4702ade11a953c230a736a8d64a72b8bbce6f4
data/README.md CHANGED
@@ -35,6 +35,8 @@ Or install it yourself as:
35
35
 
36
36
  ## Changes
37
37
 
38
+ * 0.4.3: Fix issue where p4d might not get killed due to a nil reference
39
+
38
40
  * 0.4.2: After issuing login -p, reset the `password` property on the connection
39
41
 
40
42
  * 0.4.1: Use 'login -p' everywhere to avoid use of the .p4tickets file
data/lib/commands/kill.rb CHANGED
@@ -5,6 +5,7 @@ module Commands
5
5
  def Commands.kill(options=nil)
6
6
  list_process_names.select{|p| p =~ /p4d/}.each do |p|
7
7
  pid = pid_for_process(p)
8
+ next if pid.nil?
8
9
  begin
9
10
  puts "killing p4d #{p} at #{pid}"
10
11
  Process.kill('TERM', pid)
@@ -1,3 +1,3 @@
1
1
  module P4Util
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: p4util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Juricek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-23 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler