travis 1.6.7.travis.425.8 → 1.6.7.travis.426.8

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
- N2RhYjU2ZDE5ZDA5MmNkYmViYzJiYjU4NmNkZWE4MzdjN2ZkMDVkZQ==
4
+ NGQzNzUwYWYzMmQ2NDUyNzkyZWRlNmVmYzU0NDNlNDA3YmZiMmM0MQ==
5
5
  data.tar.gz: !binary |-
6
- N2E2NjMyNTRmYWYxOGUzYTIwOGVjMThmMjk1ZDgxNmYzN2YxMmMxMQ==
6
+ ZDc2MWM4NjA1Y2MyM2M2NWQ2N2M1ZjFiZmMzMzZmMmM3MDU1MjVhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzI3MGI0NWZkMDMyNDg5ZWFkNWMzMGMwOTIzNDEyZDE5ZTQ4Y2I3OGEyNTBi
10
- MzA1ZDMyYjcyM2VkYjQzNmI4MzRmNmE5ODhjNjE4ZGE4MzQzYmUyYzRhY2My
11
- ZmYzN2JjMTljOGE0ZDM4MzYzODA4MGQ5MDc2Y2RjYzM3YTQ4MjU=
9
+ NzI3OWJmMWE5YjM1ZmIzMmU3ZjQ3NTIyYmJkM2Y4NWNiZjM3YmU1ZTFhYzRh
10
+ YmE1NGU1YmRkYjg1ZTI2ZGMyNDk5ZWQ4ZDE0ZWVmNmFkZjQ4N2E2NGYyZjI0
11
+ MjBhMzc0Njk0NTY4NzI4NTczNWM2YjZkYmI1NTNiODJkYzM3Nzk=
12
12
  data.tar.gz: !binary |-
13
- OWM4MzFmN2Q2N2RhMWExNGFhY2Q2MmY4Yjg4NjliM2YzNGFiN2Y0MjFmNzdj
14
- MDUyYmY4NGU5ZDVjZjhhMzgzM2Y2ZTQ5OThhMjI2ODBlNDc1NzVlMzQ5Yzhk
15
- YTMzMjMwMjA5YWY5N2I3YjZhNTliMGFiNzlmNGM0ZWRlOTkwM2Y=
13
+ ZTY4YTNlZDE5OTM0NzJkYmY5NmUwMDNkMWQ3MDY1ZTY4MTE4MzIzYzMxZmFm
14
+ ZGQxZTMxMWRiNjgwZTI0MThhZDViYzIxZWVhOGIzY2VjZTdiNWQwMjIwMDJj
15
+ ZTFkZmM0OWUwNmIyNzAzZDM2YzAxYTY5NWM3NDk1YjM2MmZiMmM=
data/README.md CHANGED
@@ -1559,6 +1559,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
1559
1559
 
1560
1560
  * Properly display OS for projects tested on multiple operating systems.
1561
1561
  * Better error message when using an invalid access token.
1562
+ * Fix desktop notifications using libnotify (Linux/BSD).
1562
1563
 
1563
1564
  **1.6.6** (December 16, 2013)
1564
1565
 
@@ -46,27 +46,22 @@ module Travis
46
46
  end
47
47
 
48
48
  class Growl
49
- def initialize
50
- @command = "growlnotify"
51
- end
52
-
53
49
  def notify(title, body)
54
- system @command, '-n', 'Travis', '--image', ICON, '-m', body, title
50
+ system 'growlnotify', '-n', 'Travis', '--image', ICON, '-m', body, title
55
51
  end
56
52
 
57
53
  def available?
58
- System.has? @command and System.running? "Growl"
54
+ System.has? 'growlnotify' and System.running? "Growl"
59
55
  end
60
56
  end
61
57
 
62
- class LibNotify < Growl
63
- def initialize
64
- @command = "notify-send"
65
- @expire_time = 10_000
58
+ class LibNotify
59
+ def notify(title, body)
60
+ system 'notify-send', '--expire-time=10000', '-i', ICON, title, CGI.escapeHTML(body)
66
61
  end
67
62
 
68
- def notify(title, body)
69
- system @command, "--expire-time=#{@expire_time}", "-i", ICON, title, CGI.escapeHTML(body)
63
+ def available?
64
+ System.has? 'notify-send'
70
65
  end
71
66
  end
72
67
  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.7.travis.425.8
4
+ version: 1.6.7.travis.426.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -30,7 +30,7 @@ authors:
30
30
  autorequire:
31
31
  bindir: bin
32
32
  cert_chain: []
33
- date: 2013-12-19 00:00:00.000000000 Z
33
+ date: 2013-12-21 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: faraday