travis 1.6.3.travis.373.4 → 1.6.3.travis.374.4

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTY5ODgxMGU0ZmY3OGU3OWRhZDg2NTYwNWQyM2QzYjIzYmY0OTQxZA==
4
+ OWZmZmUzMGE4YTY0NmRkMWNlOWQ2Njk2OWI2YTRjODI0M2YwOGM3Nw==
5
5
  data.tar.gz: !binary |-
6
- MDRhYzU4NmMwNGZlMmI3ZjgwNDM0MGFkZjQwZjEzOWVkZjAxNzJlMg==
6
+ YjkwYTJkYTkyMDc2ZWFkNzA5NDQ2ZjA5NzBiMGU5N2QzMjk2NWQ5MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTM4NDcyOWJlZjU5MWQzZTQ5ODJhZDg3NzVhNzBmYzU0NWE1N2MzYTgwMjJk
10
- YWM3MzFkY2E0OTZiYmQwMzcwODcwYjRjNGI4ZDQyNGY4OGY0NTdlODFjM2Fk
11
- Yjg1MTgyMzZmOGZkMTU0NmI4YjZlNmUyNTg3NmFkZTU4YmUyMGY=
9
+ ZTEwNzQ2YjI3NzcxY2IyZThlOGEwZWMwOWFkZGRkMmRmMjllZGU5YmNiMzcz
10
+ MmYzNjE2YmFjMWQ5MGRlYjkwZmRhYmM0OTk4MmIwZGUyMzQ3YzQ3ZTY4MzNi
11
+ ZDlhM2EwM2IyNmVmZGM3ZGJhMjJlZjcwOTYzMjQ0MzNmZjdiNzc=
12
12
  data.tar.gz: !binary |-
13
- ZDVjZWZhNmIwMWY4NGQzMjk0MDFhYzIwMmMyN2U1Yjc4NWUzNTgwOTM4NmFh
14
- YmI0MWRkOTIzZjgxNTc1YTZiMDY4NDI5MWJjOTI1MzhjZWQ0ODAyZjA5ODc2
15
- YTBiYjNhNDFjNTk3YTUzNDRlYjBkMWNjZWRmNDllY2YyZjljYjg=
13
+ ZDIzNTcyNWU4M2VlM2IzYTkxOWMzMzdlMTM3NDc0ZjM2NjIyYTdiNDBkNTVh
14
+ NTg5YTRjNTE1ZDIwNDQxNDkxN2RhMWIzZjJkMDEyYWYzMTQyNGI2MmVkODU5
15
+ NGY3NzgwYTk4ODFjZmI1NWVlMGQ5MDFlYmRkMzU1ZmM5YWFiN2E=
@@ -41,11 +41,7 @@ module Travis
41
41
  end
42
42
 
43
43
  def available?
44
- System.mac? and System.os_version.to_s >= '10.8' and nc_running?
45
- end
46
-
47
- def nc_running?
48
- system 'pgrep -u $(whoami) NotificationCenter >/dev/null'
44
+ System.mac? and System.os_version.to_s >= '10.8' and System.running? "NotificationCenter"
49
45
  end
50
46
  end
51
47
 
@@ -59,7 +55,7 @@ module Travis
59
55
  end
60
56
 
61
57
  def available?
62
- System.has? @command
58
+ System.has? @command and System.running? "Growl"
63
59
  end
64
60
  end
65
61
 
@@ -72,6 +72,11 @@ module Travis
72
72
  @has ||= {}
73
73
  @has.fetch(command) { @has[command] = system "which #{command} 2>/dev/null >/dev/null" }
74
74
  end
75
+
76
+ def running?(app)
77
+ return false unless unix?
78
+ system "pgrep -u $(whoami) #{app} >/dev/null"
79
+ end
75
80
  end
76
81
  end
77
82
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3.travis.373.4
4
+ version: 1.6.3.travis.374.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase