shutup 0.0.4 → 0.0.5

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: df2dd56ae607b54b47645b956b6d771a547fdc4d
4
- data.tar.gz: 297aa20c76d4ff904062ffda8111bee4a62d1f6e
3
+ metadata.gz: 7261c8ab6939050a4e010f834a66943e00e5ebc1
4
+ data.tar.gz: 61ccf5c33d39c7b1c9d84e9a73210e60fb32ffcc
5
5
  SHA512:
6
- metadata.gz: 8a7f2ef81d50cc93a91403c8b7cfd59161e39eb1db3190c1e17fc198635f41f74df2fe6e190cdef1121b4657d8f3661a06f81459061350915c5c0dde75d0339b
7
- data.tar.gz: f629ddf11a6d5f4545c36c6b5112ecdeac07015ffc4c9e0549da1ed0d287b6da347399dd202bbfe094d6db4c257c355808bc9aa735639aca8a574ad33cb4a3b0
6
+ metadata.gz: d085a3e9cf840bf4f159d448e02a077ef01d466218153465d3777c018fd6adbea17547acf833eebce95abd34b816cf48bae32e7487283f415dd008dc788d2575
7
+ data.tar.gz: ebf59d364ee0f4d0c9c3866e682300c30b96933b1cebd5befb8c7d0c6ba6289d9cc766d564b8e1c42c6201d60d43f4a5e1442bec63e763da7441c31286c8ba3e
data/exe/shutup CHANGED
@@ -5,4 +5,6 @@ require 'shutup'
5
5
  puts "Killing the process..."
6
6
 
7
7
  rails_killer = Shutup::Rails.new
8
- rails_killer.hit!
8
+ if rails_killer.hit!
9
+ rails_killer.delete_pid
10
+ end
@@ -22,7 +22,12 @@ module Shutup
22
22
  if pid
23
23
  system "kill -9 #{pid}"
24
24
  puts "Killed process id: #{pid}"
25
+ true
25
26
  end
26
27
  end
28
+
29
+ def delete_pid
30
+ File.delete(pid_file) if File.exist?(pid_file)
31
+ end
27
32
  end
28
33
  end
@@ -1,3 +1,3 @@
1
1
  module Shutup
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "shutup"
8
8
  spec.version = Shutup::VERSION
9
9
  spec.authors = ["Lorenzo Sinisi"]
10
- spec.email = ["lasslo.net@gmail.com"]
10
+ spec.email = ["info@lorenzosinisi.com"]
11
11
 
12
12
  spec.summary = %q{Kill the Rails process running in the current folder}
13
13
  spec.description = %q{Kill the Rails process running in the current folder}
14
- spec.homepage = "http://lorenzosinisi.com"
14
+ spec.homepage = "https://github.com/lorenzosinisi/shutup"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shutup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorenzo Sinisi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.0'
55
55
  description: Kill the Rails process running in the current folder
56
56
  email:
57
- - lasslo.net@gmail.com
57
+ - info@lorenzosinisi.com
58
58
  executables:
59
59
  - shutup
60
60
  extensions: []
@@ -73,7 +73,7 @@ files:
73
73
  - lib/shutup.rb
74
74
  - lib/shutup/version.rb
75
75
  - shutup.gemspec
76
- homepage: http://lorenzosinisi.com
76
+ homepage: https://github.com/lorenzosinisi/shutup
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: