denmark 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/denmark/version.rb +1 -1
- data/lib/denmark.rb +0 -49
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73d9e39f18a874e61b889ce6adae3f7793e40af5f0077aede656c47c02305c14
|
|
4
|
+
data.tar.gz: d3b7d990966b04a22a66fb44ccc53202bb2046eecbd5f696f0e7496e6b07be03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7bfbddb66940d3433376f357ccd41f9fd34e5cb077a2b5274492f078636a4c5cc65d68740c397f384375dbfd072137a8cd80e2962009dfdf805c0a403384f2e
|
|
7
|
+
data.tar.gz: c90ba1f9cf0af6a71301cd0592e0ae3322cbf68c9d1630e4ff22ee9574252f8265f968a2d39b956b9c7754a396f75dfb86b1c2e84e231c3cc22769d45e5b0b1f
|
data/lib/denmark/version.rb
CHANGED
data/lib/denmark.rb
CHANGED
|
@@ -70,54 +70,5 @@ class Denmark
|
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
def self.info(slug)
|
|
75
|
-
mod = PuppetForge::Module.find(slug)
|
|
76
|
-
|
|
77
|
-
puts mod.owner.username
|
|
78
|
-
puts mod.owner.display_name
|
|
79
|
-
puts mod.current_release.version
|
|
80
|
-
puts mod.current_release.created_at
|
|
81
|
-
puts mod.current_release.changelog
|
|
82
|
-
puts mod.current_release.reference
|
|
83
|
-
puts mod.current_release.license
|
|
84
|
-
puts mod.homepage_url
|
|
85
|
-
puts mod.current_release.metadata['project_page']
|
|
86
|
-
puts mod.current_release.metadata['source']
|
|
87
|
-
puts mod.issues_url
|
|
88
|
-
|
|
89
|
-
client = Octokit::Client.new
|
|
90
|
-
repo = Octokit::Repository.from_url(mod.homepage_url, options)
|
|
91
|
-
|
|
92
|
-
require 'pry'
|
|
93
|
-
binding.pry
|
|
94
|
-
|
|
95
|
-
puts client.pull_requests(repo)
|
|
96
|
-
puts client.list_issues(repo)
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
def github_client
|
|
101
|
-
@token ||= ENV['GITHUB_TOKEN'] || `git config --global github.token`.chomp
|
|
102
|
-
|
|
103
|
-
if @token.empty?
|
|
104
|
-
puts "You need to generate a GitHub token:"
|
|
105
|
-
puts "\t * https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line"
|
|
106
|
-
puts "\t * git config --global github.token <token>"
|
|
107
|
-
puts
|
|
108
|
-
puts "Export that as the `GITHUB_TOKEN` environment variable or put it in your ~/.gitconfig."
|
|
109
|
-
exit 1
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
begin
|
|
113
|
-
client = Octokit::Client.new(:access_token => @token)
|
|
114
|
-
rescue => e
|
|
115
|
-
puts "Github login error: #{e.message}"
|
|
116
|
-
exit 1
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
client
|
|
120
|
-
end
|
|
121
|
-
|
|
122
73
|
end
|
|
123
74
|
|