kill_shotgun 0.2.2 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af66753ee3346edb3aec3a74a042b32a7e69008ee02efc47ef97e1f6c2f52866
4
- data.tar.gz: a2bdc428edbd2c4172d2dc792d0e821b33fab46e8a243e18a77455e3dbb1643f
3
+ metadata.gz: 7ff2edef80136c6a114f59529e685644c90e434952419f55f60ea6da8c5de6fa
4
+ data.tar.gz: 3e0d0d713159c0193855290c01548f55b9fe4ca1b05416cc72f8f616d09885e2
5
5
  SHA512:
6
- metadata.gz: 6704bad45a258610fd3376efa532dde3dcf1edb6827871da64b6887227513c8ac61af4e95674f6e627b9229a25134aa84a6865d7d2e2e89cfcd740645ad9fbee
7
- data.tar.gz: a3156bc3b69bb9699416048d30188b206e7a6bb2536103ee0172bae21784f7aa255c6e831074a71b59935627e7bcbb4557bc7226050476d6db0bbfa12be7fe85
6
+ metadata.gz: d7845ce4d97201084f4c115aca17164d8accc2fb3f376fe37dd709b2ddf222e34ad811489e62201b036e6e73b0abe2ca86e531fe3dd29009718e13f4f9e6cc39
7
+ data.tar.gz: 4ad1b1576f1c06fd115974138184227878b1c8aac982c5da92fa031efeedad8a7f6c4b3b155809183fc1518c03b293e13c20f3d8cbf743c3a0a4e2c444d1e204
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kill_shotgun (0.2.2)
4
+ kill_shotgun (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ puts "Killed processes will print below. If you didn't see any output that means you didn't have any shotgun servers active."
3
+ bash = <<-BASH
4
+ pids=$(ps ax | grep shotgun|awk 'NR > 0 {print $1}')
5
+ arr=()
6
+
7
+ for i in "${pids[@]}" ; do
8
+ if ps -p $i
9
+ then
10
+ arr+=($i)
11
+ fi
12
+ done
13
+
14
+ for i in "${arr[@]}" ; do
15
+ if ps -p $i
16
+ then
17
+ echo "killing process: $i"
18
+ kill $i
19
+ fi
20
+ done
21
+ BASH
22
+ system(bash)
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
23
  end
24
24
 
25
- spec.executables = ["kill_shotgun"]
25
+ spec.executables = ["kill_shotgun", "kill_shotgun_wsl"]
26
26
  spec.require_paths = ["lib"]
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module KillShotgun
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module KillShotgun
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kill_shotgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DakotaLMartinez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2020-08-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: install the gem, run kill_shotgun from your terminal and you're good
14
14
  to go.
@@ -16,6 +16,7 @@ email:
16
16
  - dakotaleemusic@gmail.com
17
17
  executables:
18
18
  - kill_shotgun
19
+ - kill_shotgun_wsl
19
20
  extensions: []
20
21
  extra_rdoc_files: []
21
22
  files:
@@ -28,6 +29,7 @@ files:
28
29
  - Rakefile
29
30
  - bin/console
30
31
  - bin/kill_shotgun
32
+ - bin/kill_shotgun_wsl
31
33
  - bin/setup
32
34
  - kill_shotgun.gemspec
33
35
  - lib/kill_shotgun.rb