process-sanity 0.0.6 → 0.0.7

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: a212b675808a34ff69584ff4ccc695673f17c0d2
4
- data.tar.gz: 5eb37f7e58e135b3cc80aff6ec7031484902fc1d
3
+ metadata.gz: 9c2d4835481da9695f8d91f30fbcd90a3b16546f
4
+ data.tar.gz: 54cc65149d835c810d31cdadffddd49895fbebb1
5
5
  SHA512:
6
- metadata.gz: 53104eb5e3a62847e1f9f5cd19dcb879d612c3f1c3a290f67be5da8cb7ad39c0fb4efa4242ef5ab33b003d109c8fdc4943c957af683ddbe516a27fc6dd71437f
7
- data.tar.gz: 6eb6efeb9d6b5a78f8dca8804d97ca3c619e7c2cf03b1076cf9f0a021912e9cc5dc13b47ce04926be5f5f9afd4c1157c592627d2daa24595f5a3358b51e337d3
6
+ metadata.gz: e9cacff0b532e8153a0918d4559946d0e7149d7246b03e1e979a63a7f609b61c46a81fec7df31b0a5b9781fccd094dca6df59d78db5213e28780ff24db806e2f
7
+ data.tar.gz: 05a1597b10af5006ffcd99ddac1811decea5a0fd52a85a4b85cd7af61b266d1a03b4a1d83d9a25fdc94f5374cd90a244743308c964089c09269b75434ae3d36e
@@ -2,18 +2,22 @@ require 'process_sanity'
2
2
  ProcessSanity.setup do |config|
3
3
 
4
4
  #Do nothing if the gem isn't running under the Rails process (e.g the process that is running is rspec or resque)
5
- return if $0.split("/").last.downcase != 'rails'
5
+ if $0.split("/").last.downcase != 'rails'
6
6
 
7
- #array of your environment's processes to check against
8
- #for example:
9
- #processes.names = ['redis', 'postgres', 'sidekiq']
10
- config.names = []
7
+ #array of your environment's processes to check against
8
+ #for example:
9
+ #processes.names = ['redis', 'postgres', 'sidekiq']
10
+ config.names = []
11
11
 
12
- #Stops the server if any of the listed processes is not running
13
- #processes.is_aggressive = true
12
+ #Stops the server if any of the listed processes is not running
13
+ #processes.is_aggressive = true
14
14
 
15
- #Use desktop notifications
16
- #config.desktop_notifications = true
15
+ #Use desktop notifications
16
+ #config.desktop_notifications = true
17
+
18
+ else
19
+ config.skip_run = true
20
+ end
17
21
 
18
22
 
19
23
 
@@ -1,3 +1,3 @@
1
1
  module ProcessSanity
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -2,7 +2,7 @@ require 'colorize'
2
2
 
3
3
  module ProcessSanity
4
4
  class Processes
5
- attr_accessor :names, :is_aggressive, :desktop_notifications
5
+ attr_accessor :names, :is_aggressive, :desktop_notifications, :skip_run
6
6
 
7
7
  def check_processes
8
8
  errors = []
@@ -26,6 +26,6 @@ module ProcessSanity
26
26
  def self.setup
27
27
  initializer = Processes.new
28
28
  yield(initializer)
29
- initializer.check_processes
29
+ initializer.check_processes if !initializer.skip_run
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process-sanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoelblum