travis 1.8.1.travis.692.5 → 1.8.1.travis.693.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmM5ZTc3ODVjMjk1ZWU1OGU5YmQxYzZiOTYxYjkzNjJiZjg2NjE2Mw==
4
+ ZjM0OGMyNTMyN2JhZWE0YzFhMjY4NzE2OGZjN2Q4Nzc0MGQwODg2OA==
5
5
  data.tar.gz: !binary |-
6
- NmUzNzkyMDJlYzM1YzgzNzZmZGE5YmY2YTQ2ZmI1YmQzODI5YWM1OQ==
6
+ M2YwYmVlMWJlYjlkY2VmM2VlZWQyYzVhOTNiODE3NjJjMzE2MWViMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTNkZjQ1MmY3ZWVmMzczMjM4OWJiODJjNmRkYjYxNmRhYzJkMzA1ODkzZmRl
10
- YWVlZTJmZWExZmY3OTM2YzlhMWFlOGJmYmVjNjdhM2I4M2UyNjM4YTE1OGQx
11
- YzY1YWZkYjhjODQxNjNjNWQxOWQxNjI1ZDY1ZjU2YjMxYjBlMjU=
9
+ NzQ2YzkyZjA4N2U3MmFjZjRkMDZmNzI0OWYxZWY2MzNkMzY5MzZhODQwMDQ0
10
+ MDRjYzk3NDkyZDNjYjllMzMwNGE0NGZjNTBkY2Y0MzhhOGFjMDFkNmM4YzI5
11
+ Y2Y3NGMwNjVmODNkZDAyYWYyZjUxYTAyMjcwMTRkZjlkMWI1MmU=
12
12
  data.tar.gz: !binary |-
13
- MWNiZGFlYWViMDRhZjNiODE4NzA4ZDUwODg1NzQ5M2M0YTMyYjA1ZTJhOTFm
14
- MjEyODE3ZWY4ZWM3ZDcxYTMzYzRiMTc2MGU4ODE2OWVjNzU3NTBiMGJmNjg5
15
- ZWNjM2M2YTYyZmM3ZDllZThlOWRjYzU2MzdlNmFhZmI0ZTVlMTQ=
13
+ YzdhYWRmZDBhYjU2NjZjNmI4MDE5Zjc0MTdkNTNjNDAyZjg0ZTJjYmEyMDc3
14
+ YTg1ZDJmYmEyNmFkMTBjNTdhY2I1M2Y4MzU2NTNmYzA4YmZlNmJmZGIwOTQy
15
+ MWE0NmJlYTQzNGVjMDU4YWQ3Y2ZiOGM3YzgyYjllYTdhN2FhZGE=
@@ -10,11 +10,22 @@ module Travis
10
10
  end
11
11
 
12
12
  def run
13
- Travis::CLI.silent { require 'pry' }
13
+ return unless pry_installed?
14
+
14
15
  Object.send(:include, Client::Namespace.new(session))
15
16
  hooks = defined?(Pry::Hooks) ? Pry::Hooks.new : {}
16
17
  binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout, :hooks => hooks)
17
18
  end
19
+
20
+ private
21
+
22
+ def pry_installed?
23
+ require 'pry'
24
+ true
25
+ rescue LoadError
26
+ $stderr.puts 'You need to install pry to use Travis CLI console.'
27
+ false
28
+ end
18
29
  end
19
30
  end
20
31
  end
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,6 @@ require 'fileutils'
6
6
  require 'travis'
7
7
  require 'highline'
8
8
  require 'tmpdir'
9
- require 'pry' # pry doesn't like us mocking $stdout
10
9
 
11
10
  temp_dir = nil
12
11
 
data/travis.gemspec CHANGED
@@ -284,6 +284,8 @@ Gem::Specification.new do |s|
284
284
  "spec/support/fake_github.rb",
285
285
  "spec/support/helpers.rb",
286
286
  "spec/travis_spec.rb",
287
+ "travis.gemspec",
288
+ "travis.gemspec",
287
289
  "travis.gemspec"
288
290
  ]
289
291
 
@@ -294,7 +296,6 @@ Gem::Specification.new do |s|
294
296
  s.add_dependency "backports"
295
297
  s.add_dependency "gh", "~> 0.13"
296
298
  s.add_dependency "launchy", "~> 2.1"
297
- s.add_dependency "pry", "< 0.10", "~> 0.9"
298
299
  s.add_dependency "typhoeus", "~> 0.6", ">= 0.6.8"
299
300
  s.add_dependency "pusher-client", "~> 0.4"
300
301
  s.add_dependency "addressable", "~> 2.3"
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.8.1.travis.692.5
4
+ version: 1.8.1.travis.693.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -142,26 +142,6 @@ dependencies:
142
142
  - - ~>
143
143
  - !ruby/object:Gem::Version
144
144
  version: '2.1'
145
- - !ruby/object:Gem::Dependency
146
- name: pry
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - <
150
- - !ruby/object:Gem::Version
151
- version: '0.10'
152
- - - ~>
153
- - !ruby/object:Gem::Version
154
- version: '0.9'
155
- type: :runtime
156
- prerelease: false
157
- version_requirements: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - <
160
- - !ruby/object:Gem::Version
161
- version: '0.10'
162
- - - ~>
163
- - !ruby/object:Gem::Version
164
- version: '0.9'
165
145
  - !ruby/object:Gem::Dependency
166
146
  name: typhoeus
167
147
  requirement: !ruby/object:Gem::Requirement