travis 1.6.18.travis.605.5 → 1.6.18.travis.606.5

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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +15 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OThmMTQzNDExYTljMmFjZGMzMjQwMzJlY2QwY2NkYTZiZjZjYjBhOQ==
4
+ MTRhNDEzODVmZWZjYjhmMDBiZmY2ZjIyYzY3MDJhZTI5MDdjOTAzOQ==
5
5
  data.tar.gz: !binary |-
6
- ZGZmMGJlYjVlNDIxMWEyZDRhY2E3MjAzZDAwMTgwNGQzNTFlMzE5YQ==
6
+ MDQxNjM1YWU3NWRiNzVkMWFiY2Q0ODdjMmNmZTYzNzVlZmQ1ZDhhMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTM1NjJkZGExNDhhNDcwNzYxZWQ2YzZiMDBiNjEwYTc1NDFhODMxNTA5Nzk5
10
- OGViODY3NmQzZGEyZTA4YTU2ZDNkNGFiYTc0OGIxY2Y1YjI0NmU4OWY0NWQx
11
- M2E1NGI3NTE3NDBhYzhiYTIxYzlhYzc2YWU2NDc2N2U5NGJhZTY=
9
+ Zjk4Nzk0NDRhMDVlOWQ4YTI0Y2U5NmExOTQyN2FhZGViYjZhNGIyZDg3M2Iy
10
+ MjViMzZmMzBmODBkOGM0NmFjZjAzYmVmMjc0MzdmNWE2ZmI1NzRkNDYzNzAz
11
+ MTYwNzg2NzNlMDAxOTdhMzlkY2ZmYTI0MDNlNTM2NTI5ZmQ4YTY=
12
12
  data.tar.gz: !binary |-
13
- NDdmZmM3YmNlODljNWRhNjgwYzkxOGZmOTgyMGJhNTZhMjQxZTVmNzM1MTcz
14
- MjU2NzAwNDIwODAzOTQxMDNkNTcwYzNiNWUzNmY1YTg2OGUxNzc2Yjc3OWFk
15
- MWRkMTYxNTAxZTI0M2UwZDFiNWMwYzJmYTY1ODA4NDg2YzkzZTg=
13
+ YTVjY2U1YThmMTdjY2RmYzYxOGVmZDEzYjI4ZDViOGY1NjY0NTMwMmE4OTkw
14
+ ZjVhYTg0NTc2NTdlOWMyMDJmYjJhMTlkMzQwZmYwYWQ4ZWVhNjJjZWQ0ZjBm
15
+ NWVkMzUwMDhkNTI1ODQ2YTEwM2JiNWMzN2RlNDAyYzMzMmYxNjg=
data/README.md CHANGED
@@ -1531,6 +1531,13 @@ end
1531
1531
  puts "Hello #{Travis::User.current.name}!"
1532
1532
  ```
1533
1533
 
1534
+ There is also `travis/auto_login`, which will try to read the CLI configuration or .netrc for a Travis CI or GitHub token to authenticate with automatically:
1535
+
1536
+ ``` ruby
1537
+ require 'travis/auto_login'
1538
+ puts "Hello #{Travis::User.current.name}!"
1539
+ ```
1540
+
1534
1541
  ### Using Pro
1535
1542
 
1536
1543
  Using the library with private projects pretty much works the same, except you use `Travis::Pro`.
@@ -1546,6 +1553,13 @@ user = Travis::Pro::User.current
1546
1553
  puts "Hello #{user.name}!"
1547
1554
  ```
1548
1555
 
1556
+ There is also `travis/pro/auto_login`, which will try to read the CLI configuration or .netrc for a Travis CI or GitHub token to authenticate with automatically:
1557
+
1558
+ ``` ruby
1559
+ require 'travis/pro/auto_login'
1560
+ puts "Hello #{Travis::Pro::User.current.name}!"
1561
+ ```
1562
+
1549
1563
  ### Entities
1550
1564
 
1551
1565
  Entities are like the models in the Travis Client land. They keep the data and it's usually them you talk to if you want something.
@@ -2036,6 +2050,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
2036
2050
  * Add `--store-repo`/`-R` to repository commands to permanently store the slug for a repository.
2037
2051
  * Announce repository slug when first detected, ask for confirmation in interactive mode.
2038
2052
  * Have `travis repos` only print repository slugs in non-interactive mode.
2053
+ * Add `travis/auto_login` and `travis/pro/auto_login` to the Ruby API for easy authentication.
2039
2054
 
2040
2055
  **1.6.17** (July 25, 2014)
2041
2056
 
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.6.18.travis.605.5
4
+ version: 1.6.18.travis.606.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase