travis 1.6.2.travis.369.4 → 1.6.2.travis.370.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 +8 -8
- data/README.md +3 -0
- data/assets/notifications/Travis CI.app/Contents/_CodeSignature/CodeResources +173 -0
- data/assets/notifications/Travis CI.app/Contents/embedded.provisionprofile +0 -0
- data/lib/travis/cli/api_command.rb +8 -5
- data/lib/travis/cli/cache.rb +1 -1
- data/lib/travis/cli/command.rb +21 -6
- data/lib/travis/cli/console.rb +1 -1
- data/lib/travis/cli/monitor.rb +6 -1
- data/travis.gemspec +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjU5NDJlYjEyOWY3YTE4NDNkYWJkMzE3Yjk5M2NiYzhlN2U0NzBmOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzVhYzlkZGYzMGExOWU2ODU2MjNkZTQ3NmNhYjU5YTY2OWQwNTFjNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWM3ZDRiZDU3ZjhhZWI2OTA1MWMzOWRiNWU1NGI3ZjE4NDMxNzczMGNhNWJk
|
10
|
+
ZmJlNTMwYTIxNDAzOGY5ZmNhNDUzMmZkNmIzODFhNDMzNTZiZDFhNTQ0ZWYx
|
11
|
+
YTExODFhMTExMTczN2EyNjg5ZWU0OTMzNDVlNzQxMmIzNDViNWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTg0OGRkOGM1MjZjYjdkMmFlZDk5ZGUyN2ZkZjg3YzhmZDJjOGNmZjZiZGU5
|
14
|
+
N2NkZTJiMzYyN2UwNjg5YzM5ZjFlZmVhMTkxOTNjMTg1MTllNmY3MDJhNjAz
|
15
|
+
MmQwNGZjYzJkZmVhYjIzZTBiZjdlZWE1YzkzNDAzMDE4ZWY5NzE=
|
data/README.md
CHANGED
@@ -1432,7 +1432,10 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
1432
1432
|
**1.6.2** (not yet released)
|
1433
1433
|
|
1434
1434
|
* Remove worker support, as API endpoints have been removed from Travis CI.
|
1435
|
+
* Improve OS detection.
|
1435
1436
|
* Fix `travis report`.
|
1437
|
+
* Fix issues with new payload for permissions endpoint (used by `travis monitor`).
|
1438
|
+
* Make desktop notifications work on Mac OSX 10.9.
|
1436
1439
|
|
1437
1440
|
**1.6.1** (November 4, 2013)
|
1438
1441
|
|
@@ -0,0 +1,173 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>files</key>
|
6
|
+
<dict>
|
7
|
+
<key>Resources/Travis CI.icns</key>
|
8
|
+
<data>
|
9
|
+
lyhCVg6fw9a5ugUz0vPsuUP76Ao=
|
10
|
+
</data>
|
11
|
+
<key>Resources/en.lproj/Credits.rtf</key>
|
12
|
+
<dict>
|
13
|
+
<key>hash</key>
|
14
|
+
<data>
|
15
|
+
YKJIFIsxneJuNkJNJQIcJIjiPOg=
|
16
|
+
</data>
|
17
|
+
<key>optional</key>
|
18
|
+
<true/>
|
19
|
+
</dict>
|
20
|
+
<key>Resources/en.lproj/InfoPlist.strings</key>
|
21
|
+
<dict>
|
22
|
+
<key>hash</key>
|
23
|
+
<data>
|
24
|
+
MiLKDDnrUKr4EmuvhS5VQwxHGK8=
|
25
|
+
</data>
|
26
|
+
<key>optional</key>
|
27
|
+
<true/>
|
28
|
+
</dict>
|
29
|
+
<key>Resources/en.lproj/MainMenu.nib</key>
|
30
|
+
<dict>
|
31
|
+
<key>hash</key>
|
32
|
+
<data>
|
33
|
+
fhQhxk1J1ydtmmhPXFRlyOzhQ58=
|
34
|
+
</data>
|
35
|
+
<key>optional</key>
|
36
|
+
<true/>
|
37
|
+
</dict>
|
38
|
+
</dict>
|
39
|
+
<key>files2</key>
|
40
|
+
<dict>
|
41
|
+
<key>Resources/Travis CI.icns</key>
|
42
|
+
<data>
|
43
|
+
lyhCVg6fw9a5ugUz0vPsuUP76Ao=
|
44
|
+
</data>
|
45
|
+
<key>Resources/en.lproj/Credits.rtf</key>
|
46
|
+
<dict>
|
47
|
+
<key>hash</key>
|
48
|
+
<data>
|
49
|
+
YKJIFIsxneJuNkJNJQIcJIjiPOg=
|
50
|
+
</data>
|
51
|
+
<key>optional</key>
|
52
|
+
<true/>
|
53
|
+
</dict>
|
54
|
+
<key>Resources/en.lproj/InfoPlist.strings</key>
|
55
|
+
<dict>
|
56
|
+
<key>hash</key>
|
57
|
+
<data>
|
58
|
+
MiLKDDnrUKr4EmuvhS5VQwxHGK8=
|
59
|
+
</data>
|
60
|
+
<key>optional</key>
|
61
|
+
<true/>
|
62
|
+
</dict>
|
63
|
+
<key>Resources/en.lproj/MainMenu.nib</key>
|
64
|
+
<dict>
|
65
|
+
<key>hash</key>
|
66
|
+
<data>
|
67
|
+
fhQhxk1J1ydtmmhPXFRlyOzhQ58=
|
68
|
+
</data>
|
69
|
+
<key>optional</key>
|
70
|
+
<true/>
|
71
|
+
</dict>
|
72
|
+
<key>embedded.provisionprofile</key>
|
73
|
+
<data>
|
74
|
+
pgK1X4SQVn778OSK8DwaZme2X+E=
|
75
|
+
</data>
|
76
|
+
</dict>
|
77
|
+
<key>rules</key>
|
78
|
+
<dict>
|
79
|
+
<key>^Resources/</key>
|
80
|
+
<true/>
|
81
|
+
<key>^Resources/.*\.lproj/</key>
|
82
|
+
<dict>
|
83
|
+
<key>optional</key>
|
84
|
+
<true/>
|
85
|
+
<key>weight</key>
|
86
|
+
<real>1000</real>
|
87
|
+
</dict>
|
88
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
89
|
+
<dict>
|
90
|
+
<key>omit</key>
|
91
|
+
<true/>
|
92
|
+
<key>weight</key>
|
93
|
+
<real>1100</real>
|
94
|
+
</dict>
|
95
|
+
<key>^version.plist$</key>
|
96
|
+
<true/>
|
97
|
+
</dict>
|
98
|
+
<key>rules2</key>
|
99
|
+
<dict>
|
100
|
+
<key>.*\.dSYM($|/)</key>
|
101
|
+
<dict>
|
102
|
+
<key>weight</key>
|
103
|
+
<real>11</real>
|
104
|
+
</dict>
|
105
|
+
<key>^(.*/)?\.DS_Store$</key>
|
106
|
+
<dict>
|
107
|
+
<key>omit</key>
|
108
|
+
<true/>
|
109
|
+
<key>weight</key>
|
110
|
+
<real>2000</real>
|
111
|
+
</dict>
|
112
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
113
|
+
<dict>
|
114
|
+
<key>nested</key>
|
115
|
+
<true/>
|
116
|
+
<key>weight</key>
|
117
|
+
<real>10</real>
|
118
|
+
</dict>
|
119
|
+
<key>^.*</key>
|
120
|
+
<true/>
|
121
|
+
<key>^Info\.plist$</key>
|
122
|
+
<dict>
|
123
|
+
<key>omit</key>
|
124
|
+
<true/>
|
125
|
+
<key>weight</key>
|
126
|
+
<real>20</real>
|
127
|
+
</dict>
|
128
|
+
<key>^PkgInfo$</key>
|
129
|
+
<dict>
|
130
|
+
<key>omit</key>
|
131
|
+
<true/>
|
132
|
+
<key>weight</key>
|
133
|
+
<real>20</real>
|
134
|
+
</dict>
|
135
|
+
<key>^Resources/</key>
|
136
|
+
<dict>
|
137
|
+
<key>weight</key>
|
138
|
+
<real>20</real>
|
139
|
+
</dict>
|
140
|
+
<key>^Resources/.*\.lproj/</key>
|
141
|
+
<dict>
|
142
|
+
<key>optional</key>
|
143
|
+
<true/>
|
144
|
+
<key>weight</key>
|
145
|
+
<real>1000</real>
|
146
|
+
</dict>
|
147
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
148
|
+
<dict>
|
149
|
+
<key>omit</key>
|
150
|
+
<true/>
|
151
|
+
<key>weight</key>
|
152
|
+
<real>1100</real>
|
153
|
+
</dict>
|
154
|
+
<key>^[^/]+$</key>
|
155
|
+
<dict>
|
156
|
+
<key>nested</key>
|
157
|
+
<true/>
|
158
|
+
<key>weight</key>
|
159
|
+
<real>10</real>
|
160
|
+
</dict>
|
161
|
+
<key>^embedded\.provisionprofile$</key>
|
162
|
+
<dict>
|
163
|
+
<key>weight</key>
|
164
|
+
<real>20</real>
|
165
|
+
</dict>
|
166
|
+
<key>^version\.plist$</key>
|
167
|
+
<dict>
|
168
|
+
<key>weight</key>
|
169
|
+
<real>20</real>
|
170
|
+
</dict>
|
171
|
+
</dict>
|
172
|
+
</dict>
|
173
|
+
</plist>
|
@@ -16,12 +16,9 @@ module Travis
|
|
16
16
|
on('-t', '--token [ACCESS_TOKEN]', 'access token to use') { |c, t| c.access_token = t }
|
17
17
|
|
18
18
|
on('--debug', 'show API requests') do |c,_|
|
19
|
+
c.debug = true
|
19
20
|
c.session.instrument do |info, request|
|
20
|
-
|
21
|
-
c.debug(info)
|
22
|
-
request.call
|
23
|
-
duration = Time.now - start
|
24
|
-
c.debug(" took %.2g seconds" % duration)
|
21
|
+
c.time(info, request)
|
25
22
|
end
|
26
23
|
end
|
27
24
|
|
@@ -119,6 +116,7 @@ module Travis
|
|
119
116
|
|
120
117
|
def load_gh
|
121
118
|
return if defined? GH
|
119
|
+
debug "Loading gh"
|
122
120
|
require 'gh'
|
123
121
|
|
124
122
|
gh_config = session.config['github']
|
@@ -127,6 +125,11 @@ module Travis
|
|
127
125
|
gh_config[:ssl] = Travis::Client::Session::SSL_OPTIONS
|
128
126
|
gh_config[:ssl] = { :verify => false } if gh_config[:api_url] and gh_config[:api_url] != "https://api.github.com"
|
129
127
|
|
128
|
+
gh_config[:instrumenter] = proc do |type, payload, &block|
|
129
|
+
next block.call unless type == 'http.gh'
|
130
|
+
time("GitHub API: #{payload[:verb].to_s.upcase} #{payload[:url]}", block)
|
131
|
+
end if debug?
|
132
|
+
|
130
133
|
GH.set(gh_config)
|
131
134
|
end
|
132
135
|
|
data/lib/travis/cli/cache.rb
CHANGED
@@ -67,7 +67,7 @@ module Travis
|
|
67
67
|
|
68
68
|
def description
|
69
69
|
description = color("all caches", :important)
|
70
|
-
description << " on branch #{color(branch, :important)}"
|
70
|
+
description << " on branch #{color(branch, :important)}" if branch?
|
71
71
|
description << " that match #{color(match, :important)}" if match?
|
72
72
|
description
|
73
73
|
end
|
data/lib/travis/cli/command.rb
CHANGED
@@ -63,8 +63,9 @@ module Travis
|
|
63
63
|
@description ||= ""
|
64
64
|
end
|
65
65
|
|
66
|
-
attr_accessor :arguments, :config, :force_interactive, :formatter
|
66
|
+
attr_accessor :arguments, :config, :force_interactive, :formatter, :debug
|
67
67
|
attr_reader :input, :output
|
68
|
+
alias_method :debug?, :debug
|
68
69
|
|
69
70
|
def initialize(options = {})
|
70
71
|
@on_signal = []
|
@@ -205,11 +206,21 @@ module Travis
|
|
205
206
|
end
|
206
207
|
|
207
208
|
def debug(line)
|
209
|
+
return unless debug?
|
208
210
|
write_to($stderr) do
|
209
211
|
say color("** #{line}", :debug)
|
210
212
|
end
|
211
213
|
end
|
212
214
|
|
215
|
+
def time(info, callback = Proc.new)
|
216
|
+
return callback.call unless debug?
|
217
|
+
start = Time.now
|
218
|
+
debug(info)
|
219
|
+
callback.call
|
220
|
+
duration = Time.now - start
|
221
|
+
debug(" took %.2g seconds" % duration)
|
222
|
+
end
|
223
|
+
|
213
224
|
def info(line)
|
214
225
|
write_to($stderr) do
|
215
226
|
say color(line, :info)
|
@@ -294,17 +305,21 @@ module Travis
|
|
294
305
|
end
|
295
306
|
|
296
307
|
def load_file(name, default = nil)
|
297
|
-
path = config_path(name)
|
298
|
-
|
308
|
+
return default unless path = config_path(name) and File.exist? path
|
309
|
+
debug "Loading %p" % path
|
310
|
+
File.read(path)
|
299
311
|
end
|
300
312
|
|
301
313
|
def delete_file(name)
|
302
|
-
path = config_path(name)
|
303
|
-
|
314
|
+
return unless path = config_path(name) and File.exist? path
|
315
|
+
debug "Deleting %p" % path
|
316
|
+
File.delete(path)
|
304
317
|
end
|
305
318
|
|
306
319
|
def save_file(name, content)
|
307
|
-
|
320
|
+
path = config_path(name)
|
321
|
+
debug "Storing %p" % path
|
322
|
+
File.write(path, content.to_s)
|
308
323
|
end
|
309
324
|
|
310
325
|
def load_config
|
data/lib/travis/cli/console.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'travis/cli'
|
2
|
-
Travis::CLI.silent { require 'pry' }
|
3
2
|
|
4
3
|
module Travis
|
5
4
|
module CLI
|
@@ -7,6 +6,7 @@ module Travis
|
|
7
6
|
description "interactive shell"
|
8
7
|
|
9
8
|
def run
|
9
|
+
Travis::CLI.silent { require 'pry' }
|
10
10
|
Object.send(:include, Client::Namespace.new(session))
|
11
11
|
binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout)
|
12
12
|
end
|
data/lib/travis/cli/monitor.rb
CHANGED
@@ -31,7 +31,8 @@ module Travis
|
|
31
31
|
super
|
32
32
|
repos.map! { |r| repo(r) }
|
33
33
|
repos.concat(user.repositories) if my_repos?
|
34
|
-
setup_notification(
|
34
|
+
setup_notification(!firehose? || :dummy) unless notification
|
35
|
+
debug "Using notifications: #{notification.class.name[/[^:]+$/]}"
|
35
36
|
end
|
36
37
|
|
37
38
|
def setup_notification(type = nil)
|
@@ -63,6 +64,10 @@ module Travis
|
|
63
64
|
events
|
64
65
|
end
|
65
66
|
|
67
|
+
def firehose?
|
68
|
+
org? and repos.empty?
|
69
|
+
end
|
70
|
+
|
66
71
|
def all?
|
67
72
|
!pull? and !push?
|
68
73
|
end
|
data/travis.gemspec
CHANGED
@@ -88,6 +88,8 @@ Gem::Specification.new do |s|
|
|
88
88
|
"assets/notifications/Travis CI.app/Contents/Resources/en.lproj/Credits.rtf",
|
89
89
|
"assets/notifications/Travis CI.app/Contents/Resources/en.lproj/InfoPlist.strings",
|
90
90
|
"assets/notifications/Travis CI.app/Contents/Resources/en.lproj/MainMenu.nib",
|
91
|
+
"assets/notifications/Travis CI.app/Contents/_CodeSignature/CodeResources",
|
92
|
+
"assets/notifications/Travis CI.app/Contents/embedded.provisionprofile",
|
91
93
|
"assets/notifications/icon.png",
|
92
94
|
"assets/travis.sh",
|
93
95
|
"assets/travis.sh.erb",
|
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.2.travis.
|
4
|
+
version: 1.6.2.travis.370.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -281,6 +281,8 @@ files:
|
|
281
281
|
- assets/notifications/Travis CI.app/Contents/Resources/en.lproj/Credits.rtf
|
282
282
|
- assets/notifications/Travis CI.app/Contents/Resources/en.lproj/InfoPlist.strings
|
283
283
|
- assets/notifications/Travis CI.app/Contents/Resources/en.lproj/MainMenu.nib
|
284
|
+
- assets/notifications/Travis CI.app/Contents/_CodeSignature/CodeResources
|
285
|
+
- assets/notifications/Travis CI.app/Contents/embedded.provisionprofile
|
284
286
|
- assets/notifications/icon.png
|
285
287
|
- assets/travis.sh
|
286
288
|
- assets/travis.sh.erb
|