travis 1.7.2.travis.630.5 → 1.7.2.travis.632.5
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 +4 -0
- data/lib/travis/client/error.rb +3 -0
- data/lib/travis/client/session.rb +8 -1
- data/spec/support/fake_api.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
Mjg4NjRjZDg1MWUwMGM4MWRlYTYxYzQ0MDM4MjU3NDA2M2E4ZjBkYw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NWVmNjQ4ODQ5NjhmZDg0MjA5YzIxMzk4OGZiYTQ4MGZkODBiYTY1Yg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGY1ZjM1NWE1YWQyOWM0ODkxYmJhZTNiOTQ2YjQwNDViOGUwMTljOWU2ZTMy
|
|
10
|
+
MTA2ZGEyNmIyZmI0YmRlOTE1MjQ1YWZmNzllMjIxMDVmMTU4YzA1MDc3NjRj
|
|
11
|
+
YzEwZWVhNjExZGQ2ZjZhYWJkOWFiZTU2NDA4ODdhZmMyNTgxZmE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZjMwOTZhYzAxNzBmZDQ1ZDU5MGI3NDBkNzkwNDlhMDE5NzM0MWU5NTk0YjA1
|
|
14
|
+
ZTllYzNkOGNmNGE1MGQ3Njc1OGIzOThjN2I1N2Q0ZWI2ZDBkMDVmMWQxMmNm
|
|
15
|
+
OTM3MmQxODVmYzZkNDY4ZjQ2YTI2NmZhYWUzYzA2OTVjNDU5NmI=
|
data/README.md
CHANGED
|
@@ -2044,6 +2044,10 @@ If you updated to Ruby 2.1 as shown above:
|
|
|
2044
2044
|
|
|
2045
2045
|
#### Mac OS X
|
|
2046
2046
|
|
|
2047
|
+
If you start with a clean Mac OS X, you will have to install the XCode Command Line Tools, which are necessary for installing native extensions. You can do so via `xcode-select`:
|
|
2048
|
+
|
|
2049
|
+
$ xcode-select --install
|
|
2050
|
+
|
|
2047
2051
|
Mac OS X 10.9.2 shipped with a slightly broken Ruby version. If you want to install the gem via the system Ruby and you get an error, you might have to run the following instead:
|
|
2048
2052
|
|
|
2049
2053
|
$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install travis
|
data/lib/travis/client/error.rb
CHANGED
|
@@ -37,6 +37,7 @@ module Travis
|
|
|
37
37
|
raise ArgumentError, "neither :uri nor :connection specified" unless connection
|
|
38
38
|
headers['Accept'] = 'application/vnd.travis-ci.2+json'
|
|
39
39
|
set_user_agent
|
|
40
|
+
check_ssl
|
|
40
41
|
end
|
|
41
42
|
|
|
42
43
|
def uri
|
|
@@ -209,7 +210,7 @@ module Travis
|
|
|
209
210
|
end
|
|
210
211
|
|
|
211
212
|
case result.status
|
|
212
|
-
when 0 then raise Travis::Client::
|
|
213
|
+
when 0 then raise Travis::Client::SSLError, 'SSL error: could not verify peer'
|
|
213
214
|
when 200..299 then JSON.parse(result.body) rescue result.body
|
|
214
215
|
when 301, 303 then raw(:get, result.headers['Location'])
|
|
215
216
|
when 302, 307, 308 then raw(verb, result.headers['Location'])
|
|
@@ -324,6 +325,12 @@ module Travis
|
|
|
324
325
|
cache = keys.inject(@cache) { |store, key| store[key] ||= {} }
|
|
325
326
|
cache[last] ||= yield
|
|
326
327
|
end
|
|
328
|
+
|
|
329
|
+
def check_ssl
|
|
330
|
+
raw(:head, '/') if ssl == SSL_OPTIONS
|
|
331
|
+
rescue SSLError => error
|
|
332
|
+
self.ssl = {}
|
|
333
|
+
end
|
|
327
334
|
end
|
|
328
335
|
end
|
|
329
336
|
end
|
data/spec/support/fake_api.rb
CHANGED
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.7.2.travis.
|
|
4
|
+
version: 1.7.2.travis.632.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Haase
|
|
@@ -40,7 +40,7 @@ authors:
|
|
|
40
40
|
autorequire:
|
|
41
41
|
bindir: bin
|
|
42
42
|
cert_chain: []
|
|
43
|
-
date: 2014-09-
|
|
43
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
|
44
44
|
dependencies:
|
|
45
45
|
- !ruby/object:Gem::Dependency
|
|
46
46
|
name: faraday
|