gitget 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitget/github_api.rb +5 -0
- data/lib/gitget/github_developer.rb +8 -2
- data/lib/gitget/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ab3309c17520f0fabbb153fdb977f9d1565c98
|
4
|
+
data.tar.gz: e31acf546428da5867c252196e40305795557aec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934fe5da28be29a33ee0264bf9c538aedb8c55874ddce12caa811dc1022a2f0cc6dc05b1d13480e823ced0ce60d21ab18bbc91564159c7db67f2624ff0877573
|
7
|
+
data.tar.gz: 6d4d61c17b467c8b44cf63c748b2adeb21428efc5d3e1e1e7fc3414f729fe109d95a31c4e81974682ce27e8c75808534572f797079332931c9b1bd17b99cad6b
|
data/lib/gitget/github_api.rb
CHANGED
@@ -40,6 +40,11 @@ module Github
|
|
40
40
|
github_api_get(route)
|
41
41
|
end
|
42
42
|
|
43
|
+
def self.user_starred(username)
|
44
|
+
route = '/users/' + username + '/starred'
|
45
|
+
github_api_get(route)
|
46
|
+
end
|
47
|
+
|
43
48
|
def self.user_repos(username)
|
44
49
|
route = '/users/' + username + '/repos'
|
45
50
|
github_api_get(route)
|
@@ -21,13 +21,19 @@ module Github
|
|
21
21
|
def followers
|
22
22
|
return @followers if @followers
|
23
23
|
|
24
|
-
@followers = Github::API.user_followers @
|
24
|
+
@followers = Github::API.user_followers @username
|
25
25
|
end
|
26
26
|
|
27
27
|
def following
|
28
28
|
return @following if @following
|
29
29
|
|
30
|
-
@following = Github::API.user_following @
|
30
|
+
@following = Github::API.user_following @username
|
31
|
+
end
|
32
|
+
|
33
|
+
def starred
|
34
|
+
return @starred if @starred
|
35
|
+
|
36
|
+
@starred = Github::API.user_starred @username
|
31
37
|
end
|
32
38
|
|
33
39
|
def load_data(repo_data)
|
data/lib/gitget/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renaud Jollet
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-12-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.
|
204
|
+
rubygems_version: 2.4.8
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: Gets public information about Github developers
|