puppetfile-updater 0.5.0 → 0.6.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: 60e02e6b035bd9810d8292e50b3c4213ec687fdf0d6a7c9848bcec3141de7329
4
- data.tar.gz: aa8c8182320447b00dabad5a20e35b96f53432690379de0a91012dfdf6fa9340
3
+ metadata.gz: 67afad5138980f13a131de2838390bce5e7a282288c38dea365e4051ab525350
4
+ data.tar.gz: 85a0eade9472640b6f027f5b665f8013399bf6e1bd904ba22f8372433d6e53f7
5
5
  SHA512:
6
- metadata.gz: 0c2f1b4504a1c3aaa5b49df475014539f631fc2444314120819b76ca80c967149c760ed0b57b108a92a3359e0d4c846fadf05862f86480d20be1162ea46849d0
7
- data.tar.gz: 3a1b9add9a9d2bd8f072cafcb56d62ba4e34e22a9624b1555adf9ab511a84c5abd1b48fca37aa22919ad382ac29f095982991764bb1dd69dcd2dd2908c0230b9
6
+ metadata.gz: c004f77860c1d0c7bc3f24468ec5cf60a368302b81fef164d56c37440b504c4ef40992b68e654fd554f34ee7501599a8365ab2f93ef60f4457f50698261fae7f
7
+ data.tar.gz: e36fa66babe89ed420b98fd72522d4385b59de76be8b55551b8220bbdf1c355df671782ad73f4602403a2bbfb7e41c76c26c11e30cf5d944d0612d4814b8d68a
@@ -17,6 +17,7 @@ class PuppetfileUpdater
17
17
  attr_accessor :skip_git
18
18
  attr_accessor :gh_login
19
19
  attr_accessor :gh_password
20
+ attr_accessor :gh_token
20
21
  attr_accessor :debug
21
22
 
22
23
  # Public: Initialise a new PuppetfileUpdater::RakeTask.
@@ -45,10 +46,21 @@ class PuppetfileUpdater
45
46
 
46
47
  @user ||= '.*'
47
48
 
48
- gh_opts = @gh_login.nil? ? { } : {
49
- :login => @gh_login,
50
- :password => @gh_password,
51
- }
49
+ gh_opts = {}
50
+
51
+ unless @gh_user.nil?
52
+ gh_opts = {
53
+ :login => @gh_login,
54
+ :password => @gh_password,
55
+ }
56
+ end
57
+
58
+ unless @gh_token.nil?
59
+ gh_opts = {
60
+ :access_token => @gh_token,
61
+ }
62
+ end
63
+
52
64
  github = Octokit::Client.new gh_opts
53
65
 
54
66
  libdir = File.dirname(__FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetfile-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-05 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -96,7 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.0.3
99
+ rubyforge_project:
100
+ rubygems_version: 2.7.7
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: Keep your Puppetfile up-to-date.