travis 1.8.14.travis.1183.9 → 1.8.14.travis.1184.9
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 +4 -4
- data/lib/travis/client/methods.rb +1 -1
- data/spec/cli/restart_spec.rb +5 -5
- data/spec/support/fake_api.rb +2 -2
- data/travis.gemspec +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83c3d260e94603d58cf6edf8095891163412cacecf87cfd0c6239caeb33f40c8
|
|
4
|
+
data.tar.gz: fff38a70a79fba9a57601add634bde3f383e1b347acee678c3ae09ecec794ffa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 282c958d17d2dfa2de6b5e7a5e5a6632749d589186f0af9307a353b9fa18d6b3b2b02edac0c9e1255ef044d3e690906bd7906ef7d6a2f5ec22f8f0e7147ab849
|
|
7
|
+
data.tar.gz: b923fa5ef4ef27aab44953421dfde991ba442bf24ebe8cd1de2802a9de6a5b09b72dc864f516bb0d4fd3dea5801161e7db55f6a8b43c979659d8dc6c894f7716
|
|
@@ -74,7 +74,7 @@ module Travis
|
|
|
74
74
|
# btw, internally we call this reset, not restart, as it resets the state machine
|
|
75
75
|
# but we thought that would be too confusing
|
|
76
76
|
raise Error, "cannot restart a #{entity.class.one}" unless entity.restartable?
|
|
77
|
-
session.post_raw(
|
|
77
|
+
session.post_raw("/#{entity.class.many}/#{entity.id}/restart")
|
|
78
78
|
entity.reload
|
|
79
79
|
end
|
|
80
80
|
|
data/spec/cli/restart_spec.rb
CHANGED
|
@@ -3,13 +3,13 @@ require 'spec_helper'
|
|
|
3
3
|
describe Travis::CLI::Restart do
|
|
4
4
|
example 'travis restart' do
|
|
5
5
|
run_cli('restart', '-t', 'token').should be_success
|
|
6
|
-
$params['
|
|
7
|
-
$params['
|
|
6
|
+
$params['id'].should be == "4125095"
|
|
7
|
+
$params['entity'].should be == "builds"
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
example 'travis restart 6180.1' do
|
|
11
11
|
run_cli('restart', '6180.1', '-t', 'token').should be_success
|
|
12
|
-
$params['
|
|
13
|
-
$params['
|
|
12
|
+
$params['entity'].should be == "jobs"
|
|
13
|
+
$params['id'].should be == "4125096"
|
|
14
14
|
end
|
|
15
|
-
end
|
|
15
|
+
end
|
data/spec/support/fake_api.rb
CHANGED
data/travis.gemspec
CHANGED
|
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
|
|
|
66
66
|
"Nicolas Bessi (nbessi)",
|
|
67
67
|
"Peter Bengtsson",
|
|
68
68
|
"Rob Hoelz",
|
|
69
|
+
"Robert Grider",
|
|
69
70
|
"Robert Van Voorhees",
|
|
70
71
|
"Simon Cropp",
|
|
71
72
|
"Titus",
|
|
@@ -133,6 +134,7 @@ Gem::Specification.new do |s|
|
|
|
133
134
|
"nbessi@users.noreply.github.com",
|
|
134
135
|
"peterbe@mozilla.com",
|
|
135
136
|
"rob@hoelz.ro",
|
|
137
|
+
"robert.grider@northwestern.edu",
|
|
136
138
|
"rcvanvo@gmail.com",
|
|
137
139
|
"simon.cropp@gmail.com",
|
|
138
140
|
"tituswormer@gmail.com",
|
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.14.travis.
|
|
4
|
+
version: 1.8.14.travis.1184.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Haase
|
|
@@ -59,6 +59,7 @@ authors:
|
|
|
59
59
|
- Nicolas Bessi (nbessi)
|
|
60
60
|
- Peter Bengtsson
|
|
61
61
|
- Rob Hoelz
|
|
62
|
+
- Robert Grider
|
|
62
63
|
- Robert Van Voorhees
|
|
63
64
|
- Simon Cropp
|
|
64
65
|
- Titus
|
|
@@ -323,6 +324,7 @@ email:
|
|
|
323
324
|
- nbessi@users.noreply.github.com
|
|
324
325
|
- peterbe@mozilla.com
|
|
325
326
|
- rob@hoelz.ro
|
|
327
|
+
- robert.grider@northwestern.edu
|
|
326
328
|
- rcvanvo@gmail.com
|
|
327
329
|
- simon.cropp@gmail.com
|
|
328
330
|
- tituswormer@gmail.com
|