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 +4 -4
- data/lib/puppetfile-updater/task.rb +16 -4
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67afad5138980f13a131de2838390bce5e7a282288c38dea365e4051ab525350
|
4
|
+
data.tar.gz: 85a0eade9472640b6f027f5b665f8013399bf6e1bd904ba22f8372433d6e53f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
49
|
-
|
50
|
-
|
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.
|
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:
|
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
|
-
|
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.
|