travis 1.9.1.travis.1206.9 → 1.9.1.travis.1207.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b8632a4d9b06952810f844dde1898238f0b69fd5b9e0f48ebfa078edba74e32
4
- data.tar.gz: fb2d729733717c219f384cc863117af62712e62f20db506aab3b26b9260fd50e
3
+ metadata.gz: fbea636280cbb2b81e1bdbaa6caa7cb13e4d571759e47733e57cde96805b8640
4
+ data.tar.gz: cdd0cc61a9675a9a9b173cff1f76ec83f418b0d200b960cff27590d8177104cc
5
5
  SHA512:
6
- metadata.gz: d74c10dce819b9921ab10d73bfdc28049729480642a1329d18f1d901bf6486b6396186fe58b38f6169a3701f03fd0e43e64c9a522a3b721152619e38829c1f2c
7
- data.tar.gz: 15281963d18a58c9eb2cbe45dc50cd2c55c39e729b131c0c992a637fde994a5d7f64b1141f58ee8b169af5b3958463f4b34fd85b659f9c28a7d7a186fcf2f643
6
+ metadata.gz: 60665bb2a3359a36c248638f5293570d5197107cfd4195b16ec58cfd9218b246549cd2904ddd8bdc5ed903390d9775498b9a62355758378625146d1e2a9a53f3
7
+ data.tar.gz: ae807c042e929b7bd12c50ade793289f2c473756c0f1ebd9c1fa7da66137c0e737c7586c786a3fbf98b9f85830f2976daabef510f40e4f0f57a98cead75e9b4c
data/README.md CHANGED
@@ -2124,6 +2124,11 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2124
2124
 
2125
2125
  ## Version History
2126
2126
 
2127
+ ### 1.9.1
2128
+
2129
+ * Fix `--no-interactive` flag in `encrypt` and `encryt-file` commands https://github.com/travis-ci/travis.rb/pull/738
2130
+ * Display commit SHA in `show` https://github.com/travis-ci/travis.rb/pull/739
2131
+
2127
2132
  ### 1.9.0 (April 27, 2020)
2128
2133
 
2129
2134
  * Require Ruby 2.3 and up
@@ -2169,31 +2174,31 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2169
2174
 
2170
2175
  * Fix auto-login for when token is locally available
2171
2176
 
2172
- ### $1 (July 15, 2015)
2177
+ ### 1.8.0 (July 15, 2015)
2173
2178
 
2174
2179
  * Fix listener for pusher changes on [travis-ci.org](https://travis-ci.org).
2175
2180
  * Change `monitor` command to only monitor personal repositories if `common` channel is not available.
2176
2181
 
2177
- ### $1 (May 26, 2015)
2182
+ ### 1.7.7 (May 26, 2015)
2178
2183
 
2179
2184
  * Fix `travis whatsup` for fresh Travis Enterprise installations.
2180
2185
 
2181
- ### $1 (April 08, 2015)
2186
+ ### 1.7.6 (April 08, 2015)
2182
2187
 
2183
2188
  * Add support for "received" build state.
2184
2189
  * Fix issue with archived logs.
2185
2190
  * On version check, do not kill the process if a newer version has been released.
2186
2191
 
2187
- ### $1 (January 15, 2015)
2192
+ ### 1.7.5 (January 15, 2015)
2188
2193
 
2189
2194
  * Add support for url.<remote>.insteadOf
2190
2195
  * Fix packaging error with 1.7.4, in which Code Deploy setup code was not included
2191
2196
 
2192
- ### $1 (November 12, 2014)
2197
+ ### 1.7.4 (November 12, 2014)
2193
2198
 
2194
2199
  * Add `travis setup codedeploy`
2195
2200
 
2196
- ### $1 (November 10, 2014)
2201
+ ### 1.7.3 (November 10, 2014)
2197
2202
 
2198
2203
  * Add `travis setup biicode`
2199
2204
  * Add `travis env clear`
@@ -2201,7 +2206,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2201
2206
  * Fix bug in S3 ACL settings.
2202
2207
  * Make `travis console` work with newer pry versions.
2203
2208
 
2204
- ### $1 (September 17, 2014)
2209
+ ### 1.7.2 (September 17, 2014)
2205
2210
 
2206
2211
  * Add `travis setup elasticbeanstalk`.
2207
2212
  * Properly display educational accounts in `travis accounts`.
@@ -2211,12 +2216,12 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2211
2216
  * Better handling of multibyte characters in archived logs.
2212
2217
  * Use more restricitve permissions for the config file.
2213
2218
 
2214
- ### $1 (August 9, 2014)
2219
+ ### 1.7.1 (August 9, 2014)
2215
2220
 
2216
2221
  * Better error message when trying to encrypt a string that is too long.
2217
2222
  * Fix Validation failed error using `travis sshkey --upload`.
2218
2223
 
2219
- ### $1 (August 5, 2014)
2224
+ ### 1.7.0 (August 5, 2014)
2220
2225
 
2221
2226
  * Add `travis encrypt-file`.
2222
2227
  * Add `--store-repo`/`-R` to repository commands to permanently store the slug for a repository.
@@ -2229,16 +2234,16 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2229
2234
  * Have `travis sshkey --upload` check that the content is a private key.
2230
2235
  * Make `travis sshkey --upload` prompt for and remove the pass phrase if the key is encrypted.
2231
2236
 
2232
- ### $1 (July 25, 2014)
2237
+ ### 1.6.17 (July 25, 2014)
2233
2238
 
2234
2239
  * Add `travis sshkey` and corresponding Ruby API.
2235
2240
  * Make desktop notifications work on Mac OS X 10.10.
2236
2241
 
2237
- ### $1 (July 19, 2014)
2242
+ ### 1.6.16 (July 19, 2014)
2238
2243
 
2239
2244
  * Fix check for updates.
2240
2245
 
2241
- ### $1 (July 18, 2014)
2246
+ ### 1.6.15 (July 18, 2014)
2242
2247
 
2243
2248
  * Add `travis env [list|add|set|copy]`.
2244
2249
  * Add `Repository#env_vars`.
@@ -2252,29 +2257,29 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2252
2257
  * Proper handling for empty or broken config files.
2253
2258
  * Reset terminal colors after `travis logs`.
2254
2259
 
2255
- ### $1 (June 17, 2014)
2260
+ ### 1.6.14 (June 17, 2014)
2256
2261
 
2257
2262
  * Add `travis lint` command and Ruby API.
2258
2263
 
2259
- ### $1 (June 15, 2014)
2264
+ ### 1.6.13 (June 15, 2014)
2260
2265
 
2261
2266
  * Added Deis and Hackage setup support.
2262
2267
 
2263
- ### $1 (June 12, 2014)
2268
+ ### 1.6.12 (June 12, 2014)
2264
2269
 
2265
2270
  * Added artifacts setup support.
2266
2271
 
2267
- ### $1 (May 12, 2014)
2272
+ ### 1.6.11 (May 12, 2014)
2268
2273
 
2269
2274
  * Added Cloud 66 and Ninefold setup support.
2270
2275
  * Require typhoeus 0.6.8 and later.
2271
2276
 
2272
- ### $1 (April 24, 2014)
2277
+ ### 1.6.10 (April 24, 2014)
2273
2278
 
2274
2279
  * Better CloudFoundry support
2275
2280
  * Update Faraday to version 0.9.
2276
2281
 
2277
- ### $1 (April 9, 2014)
2282
+ ### 1.6.9 (April 9, 2014)
2278
2283
 
2279
2284
  * Add `--limit` to `travis requests`.
2280
2285
  * Add `--committer` option to `travis history`.
@@ -2284,7 +2289,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2284
2289
  * Update Rubinius version generated by `travis init ruby`.
2285
2290
  * Improve setup when running `travis` executable that has not been installed via RubyGems.
2286
2291
 
2287
- ### $1 (March 12, 2014)
2292
+ ### 1.6.8 (March 12, 2014)
2288
2293
 
2289
2294
  * Display annotations in `travis show`.
2290
2295
  * Add `travis requests` to see build requests Travis CI has received.
@@ -2292,7 +2297,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2292
2297
  * Add `Repository#requests` to Ruby library.
2293
2298
  * Fix behavior for missing entities.
2294
2299
 
2295
- ### $1 (January 30, 2014)
2300
+ ### 1.6.7 (January 30, 2014)
2296
2301
 
2297
2302
  * Properly display OS for projects tested on multiple operating systems.
2298
2303
  * Better error message when using an invalid access token.
@@ -2304,11 +2309,11 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2304
2309
  * Do not have the client raise on unknown API entities.
2305
2310
  * Do not try and resolve missing commit data (as it will lead to a 404).
2306
2311
 
2307
- ### $1 (December 16, 2013)
2312
+ ### 1.6.6 (December 16, 2013)
2308
2313
 
2309
2314
  * Fix `travis login --com` for new users.
2310
2315
 
2311
- ### $1 (December 16, 2013)
2316
+ ### 1.6.5 (December 16, 2013)
2312
2317
 
2313
2318
  * Add `travis settings` command for accessing repository settings.
2314
2319
  * Add `travis setup opsworks`.
@@ -2319,11 +2324,11 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2319
2324
  * Only ask for GitHub two-factor auth token if two-factor auth is actually required.
2320
2325
  * Fix access right check for `travis caches`.
2321
2326
 
2322
- ### $1 (December 16, 2013)
2327
+ ### 1.6.4 (December 16, 2013)
2323
2328
 
2324
2329
  Release was yanked. See 1.6.5 for changes.
2325
2330
 
2326
- ### $1 (November 27, 2013)
2331
+ ### 1.6.3 (November 27, 2013)
2327
2332
 
2328
2333
  * Fix OS detection on Windows.
2329
2334
  * Add `travis repos` command.
@@ -2339,7 +2344,7 @@ Release was yanked. See 1.6.5 for changes.
2339
2344
  * User proper API endpoint for streaming logs, as old endpoint has been removed.
2340
2345
  * Make tests run on Rubinius 2.x.
2341
2346
 
2342
- ### $1 (November 8, 2013)
2347
+ ### 1.6.2 (November 8, 2013)
2343
2348
 
2344
2349
  * Remove worker support, as API endpoints have been removed from Travis CI.
2345
2350
  * Improve OS detection.
@@ -2350,22 +2355,22 @@ Release was yanked. See 1.6.5 for changes.
2350
2355
  * Increase and improve debug output.
2351
2356
  * Only load pry if console command is actually invoked, not when it is loaded (for instance by `travis help`).
2352
2357
 
2353
- ### $1 (November 4, 2013)
2358
+ ### 1.6.1 (November 4, 2013)
2354
2359
 
2355
2360
  * Update autocompletion when updating travis gem.
2356
2361
 
2357
- ### $1 (November 4, 2013)
2362
+ ### 1.6.0 (November 4, 2013)
2358
2363
 
2359
2364
  * Add `travis cache` to list and delete directory caches.
2360
2365
  * Add `travis report` to give a report of the system, endpoint, configuration and last exception.
2361
2366
  * Add `Cache` entity.
2362
2367
  * Keep `travis monitor` running on API errors.
2363
2368
 
2364
- ### $1 (October 24, 2013)
2369
+ ### 1.5.8 (October 24, 2013)
2365
2370
 
2366
2371
  * Fix bug in completion code that stopped command line client from running.
2367
2372
 
2368
- ### $1 (October 24, 2013)
2373
+ ### 1.5.7 (October 24, 2013)
2369
2374
 
2370
2375
  * Improve logic for automatically figuring out a repository slug based on the tracked git remote.
2371
2376
  * Display error if argument passed to `-r` is not a full slug.
@@ -2378,7 +2383,7 @@ Release was yanked. See 1.6.5 for changes.
2378
2383
  * Make streaming API, and thus the `monitor` and `logs` command, work with enterprise installations.
2379
2384
  * Add `--build`, `--push` and `--pull` flags to monitor command to allow filtering events.
2380
2385
 
2381
- ### $1 (October 22, 2013)
2386
+ ### 1.5.6 (October 22, 2013)
2382
2387
 
2383
2388
  * Add `travis setup appfog` and `travis setup s3`.
2384
2389
  * Use new API for fetching a single branch for Repository#branch. This also circumvents the 25 branches limit.
@@ -2405,14 +2410,14 @@ Release was yanked. See 1.6.5 for changes.
2405
2410
  * Add `--insecure` to turn off SSL verification.
2406
2411
  * Add `--enterprise`/`-X` option for Travis Enterprise integration.
2407
2412
 
2408
- ### $1 (October 2, 2013)
2413
+ ### 1.5.5 (October 2, 2013)
2409
2414
 
2410
2415
  * Add `travis setup pypi`
2411
2416
  * Add `travis setup npm`
2412
2417
  * When loading accounts, set all flag to true.
2413
2418
  * Fix bug where session.config would be nil instead of a hash.
2414
2419
 
2415
- ### $1 (September 7, 2013)
2420
+ ### 1.5.4 (September 7, 2013)
2416
2421
 
2417
2422
  * Make `travis monitor` send out desktop notifications.
2418
2423
  * List available templates on `travis init --help`.
@@ -2428,7 +2433,7 @@ Release was yanked. See 1.6.5 for changes.
2428
2433
  * Add `travis endpoint --github`.
2429
2434
  * Make `travis accounts` handle accounts without name better.
2430
2435
 
2431
- ### $1 (August 22, 2013)
2436
+ ### 1.5.3 (August 22, 2013)
2432
2437
 
2433
2438
  * Fix issues on Windows.
2434
2439
  * Improve `travis setup rubygems` (automatically figure out API token for newer RubyGems versions, offer to only release tagged commits, allow changing gem name).
@@ -2436,7 +2441,7 @@ Release was yanked. See 1.6.5 for changes.
2436
2441
  * Smarter check if travis gem is outdated.
2437
2442
  * Better error messages for non-existing build/job numbers.
2438
2443
 
2439
- ### $1 (August 18, 2013)
2444
+ ### 1.5.2 (August 18, 2013)
2440
2445
 
2441
2446
  * Add `travis cancel`.
2442
2447
  * Add `Build#cancel` and `Job#cancel` to Ruby API.
@@ -2445,13 +2450,13 @@ Release was yanked. See 1.6.5 for changes.
2445
2450
  * Make it possible to configure cli via env variables (`$TRAVIS_TOKEN`, `$TRAVIS_ENDPOINT` and `$TRAVIS_CONFIG_PATH`).
2446
2451
  * Improve `travis setup cloudcontrol`.
2447
2452
 
2448
- ### $1 (August 15, 2013)
2453
+ ### 1.5.1 (August 15, 2013)
2449
2454
 
2450
2455
  * Add `travis setup engineyard`.
2451
2456
  * Add `travis setup cloudcontrol`.
2452
2457
  * Silence warnings when running `travis help` or `travis console`.
2453
2458
 
2454
- ### $1 (August 7, 2013)
2459
+ ### 1.5.0 (August 7, 2013)
2455
2460
 
2456
2461
  * Add `travis setup rubygems`.
2457
2462
  * Add `travis accounts`.
@@ -2465,7 +2470,7 @@ Release was yanked. See 1.6.5 for changes.
2465
2470
  * Be smarter about warnings when running `travis encrypt`.
2466
2471
  * Improve documentation.
2467
2472
 
2468
- ### $1 (July 26, 2013)
2473
+ ### 1.4.0 (July 26, 2013)
2469
2474
 
2470
2475
  * Add `travis init`
2471
2476
  * Improve install documentation, especially for people from outside the Ruby community
@@ -2474,14 +2479,14 @@ Release was yanked. See 1.6.5 for changes.
2474
2479
  * Switch to Typhoeus as default HTTP adapter
2475
2480
  * Fix tests for forks
2476
2481
 
2477
- ### $1 (July 21, 2013)
2482
+ ### 1.3.1 (July 21, 2013)
2478
2483
 
2479
2484
  * Add `travis whatsup --my-repos`, which corresponds to the "My Repositories" tab in the web interface
2480
2485
  * It is now recommended to use Ruby 2.0, any Ruby version prior to 1.9.3 will lead to a warning being displayed. Disable with `--skip-version-check`.
2481
2486
  * Add `--override` and `--append` to `travis encrypt`, make default behavior depend on key.
2482
2487
  * Add shorthand for `travis encrypt --add`.
2483
2488
 
2484
- ### $1 (July 20, 2013)
2489
+ ### 1.3.0 (July 20, 2013)
2485
2490
 
2486
2491
  * Add `travis setup [heroku|openshift|nodejitsu|sauce_connect]`
2487
2492
  * Add `travis branches`
@@ -2490,47 +2495,47 @@ Release was yanked. See 1.6.5 for changes.
2490
2495
  * Improve error message when calling `travis logs` with a matrix build number
2491
2496
  * Check if travis gem is up to date from time to time (CLI only, not when used as library)
2492
2497
 
2493
- ### $1 (July 19, 2013)
2498
+ ### 1.2.8 (July 19, 2013)
2494
2499
 
2495
2500
  * Make pubkey print out key in ssh encoding, add --pem flag for old format
2496
2501
  * Fix more encoding issues
2497
2502
  * Fix edge cases that broke history view
2498
2503
 
2499
- ### $1 (July 15, 2013)
2504
+ ### 1.2.7 (July 15, 2013)
2500
2505
 
2501
2506
  * Add pubkey command
2502
2507
  * Remove all whitespace from an encrypted string
2503
2508
 
2504
- ### $1 (July 7, 2013)
2509
+ ### v1.2.6 (July 7, 2013)
2505
2510
 
2506
2511
  * Improve output of history command
2507
2512
 
2508
- ### $1 (July 7, 2013)
2513
+ ### v1.2.5 (July 7, 2013)
2509
2514
 
2510
2515
  * Fix encoding issue
2511
2516
 
2512
- ### $1 (July 7, 2013)
2517
+ ### v1.2.4 (July 7, 2013)
2513
2518
 
2514
2519
  * Allow empty commit message
2515
2520
 
2516
- ### $1 (June 27, 2013)
2521
+ ### v1.2.3 (June 27, 2013)
2517
2522
 
2518
2523
  * Fix encoding issue
2519
2524
  * Will detect github repo from other remotes besides origin
2520
2525
  * Add clear_cache(!) to Travis::Namespace
2521
2526
 
2522
- ### $1 (May 24, 2013)
2527
+ ### v1.2.2 (May 24, 2013)
2523
2528
 
2524
2529
  * Fixed `travis disable`.
2525
2530
  * Fix edge cases around `travis encrypt`.
2526
2531
 
2527
- ### $1 (May 24, 2013)
2532
+ ### v1.2.1 (May 24, 2013)
2528
2533
 
2529
2534
  * Builds with high build numbers are properly aligned when running `travis history`.
2530
2535
  * Don't lock against a specific backports version, makes it easier to use it as a Ruby library.
2531
2536
  * Fix encoding issues.
2532
2537
 
2533
- ### $1 (February 22, 2013)
2538
+ ### v1.2.0 (February 22, 2013)
2534
2539
 
2535
2540
  * add `--adapter` to API endpoints
2536
2541
  * added branch to `show`
@@ -2542,22 +2547,22 @@ Release was yanked. See 1.6.5 for changes.
2542
2547
  * add worker support to the ruby library
2543
2548
  * adjust artifacts/logs code to upstream api changes
2544
2549
 
2545
- ### $1 (January 26, 2013)
2550
+ ### v1.1.3 (January 26, 2013)
2546
2551
 
2547
2552
  * use persistent HTTP connections (performance for commands with example api requests)
2548
2553
  * include round trip time in debug output
2549
2554
 
2550
- ### $1 (January 24, 2013)
2555
+ ### v1.1.2 (January 24, 2013)
2551
2556
 
2552
2557
  * `token` command
2553
2558
  * no longer wrap $stdin in delegator (caused bug on some Linux systems)
2554
2559
  * correctly detect when running on Windows, even on JRuby
2555
2560
 
2556
- ### $1 (January 22, 2013)
2561
+ ### v1.1.1 (January 22, 2013)
2557
2562
 
2558
2563
  * Make pry a runtime dependency rather than a development dependency.
2559
2564
 
2560
- ### $1 (January 21, 2013)
2565
+ ### v1.1.0 (January 21, 2013)
2561
2566
 
2562
2567
  * New commands: `console`, `status`, `show`, `logs`, `history`, `restart`, `sync`, `enable`, `disable`, `open` and `whatsup`.
2563
2568
  * `--debug` option for all API commands.
@@ -2567,29 +2572,29 @@ Release was yanked. See 1.6.5 for changes.
2567
2572
  * Print warning when running "encrypt owner/project data", as it's not supported by the new client.
2568
2573
  * Improved documentation.
2569
2574
 
2570
- ### $1 (January 15, 2013)
2575
+ ### v1.0.3 (January 15, 2013)
2571
2576
 
2572
2577
  * Fix `-r slug` for repository commands. (#3)
2573
2578
 
2574
- ### $1 (January 14, 2013)
2579
+ ### v1.0.2 (January 14, 2013)
2575
2580
 
2576
2581
  * Only bundle CA certs needed to verify Travis CI and GitHub domains.
2577
2582
  * Make tests pass on Windows.
2578
2583
 
2579
- ### $1 (January 14, 2013)
2584
+ ### v1.0.1 (January 14, 2013)
2580
2585
 
2581
2586
  * Improve `encrypt --add` behavior.
2582
2587
 
2583
- ### $1 (January 14, 2013)
2588
+ ### v1.0.0 (January 14, 2013)
2584
2589
 
2585
2590
  * Fist public release.
2586
2591
  * Improved documentation.
2587
2592
 
2588
- ### $1 (January 14, 2013)
2593
+ ### v1.0.0pre2 (January 14, 2013)
2589
2594
 
2590
2595
  * Added Windows support.
2591
2596
  * Suggestion to run `travis login` will add `--org` if needed.
2592
2597
 
2593
- ### $1 (January 13, 2013)
2598
+ ### v1.0.0pre (January 13, 2013)
2594
2599
 
2595
2600
  * Initial public prerelease.
@@ -14,6 +14,9 @@ module Travis
14
14
  class NotLoggedIn < Error
15
15
  end
16
16
 
17
+ class InvalidTokenError < Error
18
+ end
19
+
17
20
  class RepositoryMigrated < Error
18
21
  end
19
22
 
@@ -18,6 +18,10 @@ module Travis
18
18
 
19
19
  def github_auth(github_token)
20
20
  reply = session.post_raw("/auth/github", :github_token => github_token)
21
+ unless reply.respond_to?(:key?) && reply.key?("access_token")
22
+ raise InvalidTokenError, 'token is invalid, or does not have sufficient scope; see https://docs.travis-ci.com/user/github-oauth-scopes/ for more information on scope'
23
+ end
24
+
21
25
  session.access_token = reply["access_token"]
22
26
  end
23
27
 
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.9.1.travis.1206.9
4
+ version: 1.9.1.travis.1207.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiro Asari
@@ -76,7 +76,7 @@ authors:
76
76
  autorequire:
77
77
  bindir: bin
78
78
  cert_chain: []
79
- date: 2020-04-27 00:00:00.000000000 Z
79
+ date: 2020-04-28 00:00:00.000000000 Z
80
80
  dependencies:
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: faraday