insidious 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/insidious.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dca63b7af85fbea30067ba1ba8b11b185a68a7b5
4
- data.tar.gz: 6226b1cfc95f895e0f27fc33bbe0f64e77b28148
3
+ metadata.gz: 4f3b5420e5516c3cd21fbaed58334201f1291491
4
+ data.tar.gz: ba22bcfc123080795b1718c323883f769a08c4ae
5
5
  SHA512:
6
- metadata.gz: ba4240cdebe8b0bc5070745a5b4dfc0d38157f52cd023f269049faeec4647b55384196e73e97b1f0682ad7dea40a2a84bf4713e732de48830d96cc655b7ad9a8
7
- data.tar.gz: a10dd5d65309d73657fe084a644615dd133b2d418979bcd3b05ba84af6af3c0d714aae2b828cc5ecb3934eb9cc23acaf4155496609e711adbe00a7619eaa0fa5
6
+ metadata.gz: 976af5fdab4ed1485edb62496ab62bbd0a4d066e041e597f5ab765d422b854ec59b2292f426355086d0467c3283c8030a0a7f14c0f5327dc63c81271a113c329
7
+ data.tar.gz: 9252ab485a52bea9547d2e9937fba4e1ebe2832d401cb7ed1b3651c072b749742e8c8dc73851d878f6deb756c6c7e52b84d4695c7fd858f674899d788954fe91
data/lib/insidious.rb CHANGED
@@ -84,7 +84,10 @@ class Insidious
84
84
 
85
85
  # Restarts the daemon
86
86
  def restart!(&block)
87
- stop!
87
+ if running?
88
+ stop!
89
+ end
90
+
88
91
  start!(&block)
89
92
  end
90
93
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insidious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James White