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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d67117f45b237e6b6331faee7389117e2fbbe881c3383b3da96b5f1856b43295
4
- data.tar.gz: 49a0637b3b2fa184b4512f8bbfc75502fa5ad8ba2a9307465689d4945baceb8b
3
+ metadata.gz: 83c3d260e94603d58cf6edf8095891163412cacecf87cfd0c6239caeb33f40c8
4
+ data.tar.gz: fff38a70a79fba9a57601add634bde3f383e1b347acee678c3ae09ecec794ffa
5
5
  SHA512:
6
- metadata.gz: 35bb66262a12180330c8434442c763240aaaf19bca80b242b6540c8f629fadb200e5eb69b02ec874f8a4db1cee97faaed2a0ea0b19d3bc3f6902945abfec184f
7
- data.tar.gz: 9c67cf9e3bf10a245cc95e6f9c003700b62d8325868ff4276a3b058caad73ed3889a5a3bd449c38681eeb35caf050822e4b17f9209cec1f0900631b145b25878
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('/requests', "#{entity.class.one}_id" => entity.id)
77
+ session.post_raw("/#{entity.class.many}/#{entity.id}/restart")
78
78
  entity.reload
79
79
  end
80
80
 
@@ -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['build_id'].should be == "4125095"
7
- $params['job_id'].should be_nil
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['build_id'].should be_nil
13
- $params['job_id'].should be == "4125096"
12
+ $params['entity'].should be == "jobs"
13
+ $params['id'].should be == "4125096"
14
14
  end
15
- end
15
+ end
@@ -771,9 +771,9 @@ module Travis
771
771
  }.to_json
772
772
  end
773
773
 
774
- post '/requests' do
774
+ post '/:entity/:id/restart' do
775
775
  $params = params
776
- "{}"
776
+ {}
777
777
  end
778
778
 
779
779
  post '/:entity/:id/cancel' do
@@ -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.1183.9
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