github_user_data 0.0.1

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 +7 -0
  2. data/lib/github_user_data.rb +9 -0
  3. metadata +45 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c1fc39cbfb7fc640b7ac94fe63cd2c49d6e13fc207dd97f05ed1f4360ba5c95d
4
+ data.tar.gz: 69d172197446eeba0f0817452dcb9a3f71a2ed5f77e2d068d3b5b01528738c58
5
+ SHA512:
6
+ metadata.gz: 6061141529a30f27f4218758d932050a69a5301dac4eee1818dee0f3e28b79b27de42a10f8f557e97bfe9a54ce053f7f1829fb6292477018bba5e87c01c45206
7
+ data.tar.gz: ebbfc3441f78a787e78f899d36588150bb559e0ce5f921e1b6d50775993959e42c1df0dde34e23ff01fc79793b8d8c3a34637adb5991a113dddca077c45570dd
@@ -0,0 +1,9 @@
1
+ # get the distilled data from a username of Github.
2
+ require 'octokit'
3
+ class Github_user_data
4
+ def self.get_data(username)
5
+ client = Octokit::Client.new
6
+ user = client.user username
7
+ "Real name: #{user.name} \nCompany: #{user.company}\nMail: #{user.email}\nPublic repos: #{user.public_repos}\nFollowers: #{user.followers}\nFollowing: #{user.following}"
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: github_user_data
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rodrigo Ascencio
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: get the real name, email, company, repos, followers and following from
14
+ a github profile
15
+ email: yiyoascen@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/github_user_data.rb
21
+ homepage:
22
+ licenses:
23
+ - MIT
24
+ - GPL-3.0
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 3.1.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: quick stats from a github profile
45
+ test_files: []