trav3 0.5.1 → 1.0.0

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: 4855acd03319dc3b7e1295f7ee184b98ffcc79dfe230e17704ea145d4b9c5a72
4
- data.tar.gz: 7256ae70f65c3172235edd97b5009a62751e2a8048a36d275bd8c9d7e3bcf44e
3
+ metadata.gz: dd05fc48eb072e068ff33b8a4ac0b56addf7733c7fabe24f35171f4c4d419af8
4
+ data.tar.gz: 5aca31715b24a357b05fb1ffb8a6c2004a7ef8dc4bac3cd9022e66d6426cfa3d
5
5
  SHA512:
6
- metadata.gz: 6c03fe5e63adb1e6d87c3d0aff5f43e3b9dd1d17ca5720c1d66e397b733ec55cf3debbc85a1773237f3a35a43ce05286f8fcf12b9f34a2ad23c0b5b82cc407f4
7
- data.tar.gz: 4452d8674a90f0ad08b2c5efdd7eddc83c486742934a6675f7b67488145049c1723668307d1c0064471ff0bc4a56532a18cd8a75b9e474c63230a671d002e354
6
+ metadata.gz: 8fff32a2db580cdd244831e8b455c430544f94c20ea11bedd6ce67af698cb20942f4dd0eb543faad3d27e30f387a1d1a1b904a9a21c3c432359247a28406cf34
7
+ data.tar.gz: 43527ecc7a81833d5722bed6f7cb5b76d3bc0354cda9daa868fe176954b6f3a1664bc276b9dfeeaeb71ff6d8cbbf5aa5aa3ea5a5a03c77d67e037a869172748a
@@ -3789,7 +3789,7 @@ Style/WordArray:
3789
3789
  Style/YodaCondition:
3790
3790
  Description: 'Do not use literals as the first operand of a comparison.'
3791
3791
  Reference: 'https://en.wikipedia.org/wiki/Yoda_conditions'
3792
- Enabled: true
3792
+ Enabled: false
3793
3793
  EnforcedStyle: forbid_for_all_comparison_operators
3794
3794
  SupportedStyles:
3795
3795
  - forbid_for_all_comparison_operators
@@ -2,9 +2,9 @@ language: ruby
2
2
  cache: bundler
3
3
 
4
4
  rvm:
5
- - 2.4.5
6
- - 2.5.3
7
- - 2.6.1
5
+ - 2.4.6
6
+ - 2.5.5
7
+ - 2.6.3
8
8
 
9
9
  env:
10
10
  global:
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/trav3.svg)](http://badge.fury.io/rb/trav3)
2
2
  [![Build Status](https://travis-ci.org/danielpclark/trav3.svg?branch=master)](https://travis-ci.org/danielpclark/trav3)
3
- [![Commits Since Release](https://img.shields.io/github/commits-since/danielpclark/trav3/v0.5.1.svg)](https://github.com/danielpclark/trav3/graphs/commit-activity)
4
3
  [![Maintainability](https://api.codeclimate.com/v1/badges/1ed07a4baea3832b6207/maintainability)](https://codeclimate.com/github/danielpclark/trav3/maintainability)
5
4
  [![Test Coverage](https://api.codeclimate.com/v1/badges/1ed07a4baea3832b6207/test_coverage)](https://codeclimate.com/github/danielpclark/trav3/test_coverage)
6
5
  [![Red The Docs](https://img.shields.io/badge/Read-the%20docs-blue.svg)](http://danielpclark.github.io/trav3/Trav3/Travis.html)
7
- [![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)
6
+ [![Feature Complete](https://img.shields.io/badge/Feature-Complete-brightgreen.svg)](https://saythanks.io/to/danielpclark)
8
7
 
9
8
  # Trav3
10
9
 
@@ -22,7 +21,7 @@ The benefits of this library over the official gem are:
22
21
  Add this line to your application's Gemfile:
23
22
 
24
23
  ```ruby
25
- gem 'trav3'
24
+ gem 'trav3', '~> 1.0.0'
26
25
  ```
27
26
 
28
27
  And then execute:
@@ -100,6 +100,8 @@ module Trav3
100
100
  initial_defaults
101
101
  end
102
102
 
103
+ # @!group Request Parameters
104
+
103
105
  # Set as the API endpoint
104
106
  #
105
107
  # @param endpoint [String] name for value to set
@@ -151,6 +153,10 @@ module Trav3
151
153
  @repo = sanitize_repo_name repo_name
152
154
  end
153
155
 
156
+ # @!endgroup
157
+
158
+ # @!group API Endpoints
159
+
154
160
  # Please Note that the naming of this endpoint may be changed. Our naming convention for this information is in flux. If you have suggestions for how this information should be presented please leave us feedback by commenting in this issue here or emailing support support@travis-ci.com.
155
161
  #
156
162
  # A list of all the builds in an "active" state, either created or started.
@@ -362,6 +368,46 @@ module Trav3
362
368
  get("#{without_repo}/user/#{user_id}/beta_features")
363
369
  end
364
370
 
371
+ # Request migration to beta
372
+ #
373
+ # ## Attributes
374
+ # Name Type Description
375
+ # id Unknown The beta_migration_request's id.
376
+ # owner_id Unknown The beta_migration_request's owner_id.
377
+ # owner_name Unknown The beta_migration_request's owner_name.
378
+ # owner_type Unknown The beta_migration_request's owner_type.
379
+ # accepted_at Unknown The beta_migration_request's accepted_at.
380
+ # organizations Unknown The beta_migration_request's organizations.
381
+ #
382
+ # ## Actions
383
+ #
384
+ # **Create**
385
+ #
386
+ # Submits a request for beta migration
387
+ #
388
+ # POST <code>/user/{user.id}/beta_migration_request</code>
389
+ #
390
+ # Template Variable Type Description
391
+ # user.id Integer Value uniquely identifying the user.
392
+ # Accepted Parameter Type Description
393
+ # beta_migration_request.organizations Unknown The beta_migration_request's organizations.
394
+ #
395
+ # Example: POST /user/119240/beta_migration_request
396
+ #
397
+ # ```ruby
398
+ # # RUBY EXAMPLE
399
+ # travis = Trav3::Travis.new('danielpclark/trav3')
400
+ # travis.beta_migration_request(119_240)
401
+ # ```
402
+ #
403
+ # @note requests require an authorization token set in the headers. See: {authorization=}
404
+ #
405
+ # @param user_id [String, Integer] user id
406
+ # @return [Success, RequestError]
407
+ def beta_migration_request(user_id)
408
+ create("#{without_repo}/user/#{user_id}/beta_migration_request")
409
+ end
410
+
365
411
  # The branch of a GitHub repository. Useful for obtaining information about the last build on a given branch.
366
412
  #
367
413
  # **If querying using the repository slug, it must be formatted using {http://www.w3schools.com/tags/ref_urlencode.asp standard URL encoding}, including any special characters.**
@@ -1025,7 +1071,7 @@ module Trav3
1025
1071
  # @return [Success, RequestError]
1026
1072
  def caches(delete = false)
1027
1073
  without_limit do
1028
- delete and return delete("#{with_repo}/caches#{opts}")
1074
+ :delete.==(delete) and return delete("#{with_repo}/caches#{opts}")
1029
1075
  get("#{with_repo}/caches#{opts}")
1030
1076
  end
1031
1077
  end
@@ -3656,6 +3702,8 @@ module Trav3
3656
3702
  get("#{without_repo}/user/#{user_id}")
3657
3703
  end
3658
3704
 
3705
+ # @!endgroup
3706
+
3659
3707
  private # @private
3660
3708
 
3661
3709
  def create(url, data = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Trav3
4
- VERSION = '0.5.1'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trav3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-06 00:00:00.000000000 Z
11
+ date: 2019-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.1
124
+ rubygems_version: 3.0.3
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Simple Travis V3 API Client