travis 1.6.3.travis.373.4 → 1.6.3.travis.374.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/travis/tools/notification.rb +2 -6
- data/lib/travis/tools/system.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWZmZmUzMGE4YTY0NmRkMWNlOWQ2Njk2OWI2YTRjODI0M2YwOGM3Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjkwYTJkYTkyMDc2ZWFkNzA5NDQ2ZjA5NzBiMGU5N2QzMjk2NWQ5MQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTEwNzQ2YjI3NzcxY2IyZThlOGEwZWMwOWFkZGRkMmRmMjllZGU5YmNiMzcz
|
10
|
+
MmYzNjE2YmFjMWQ5MGRlYjkwZmRhYmM0OTk4MmIwZGUyMzQ3YzQ3ZTY4MzNi
|
11
|
+
ZDlhM2EwM2IyNmVmZGM3ZGJhMjJlZjcwOTYzMjQ0MzNmZjdiNzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
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
|
|
data/lib/travis/tools/system.rb
CHANGED
@@ -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
|