oss-contributions 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oss-contributions.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771c507603bbef35085312fc942f8f2bd2109b3f
|
4
|
+
data.tar.gz: ede307b1fffe8175dd7731de2924b268e6cc5a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 931139107c780542f55d48ebd95a68f6b8d18dc22506a261e4acbdcea05e7cd29e7a8f30ea0ab02f42a139fbae9943b7a8eec0a9e6cd36041eee697dd9963521
|
7
|
+
data.tar.gz: 9b188c0a067c717531e0e5d8210ca39180bfb52840a6d967c9a527ba6bca2998f7b6f8b14835d67a9f6184d729139d9121846d2a25216fbc398e06d4457832ff
|
data/lib/oss-contributions.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require "faraday"
|
2
2
|
require "hashie"
|
3
3
|
require "json"
|
4
|
-
require "pry"
|
5
4
|
|
6
5
|
module OSS
|
7
6
|
class Contributions
|
@@ -43,7 +42,8 @@ module OSS
|
|
43
42
|
end
|
44
43
|
|
45
44
|
def repos(user)
|
46
|
-
|
45
|
+
# TODO get multiple pages
|
46
|
+
api "/users/#{user}/repos?per_page=100"
|
47
47
|
end
|
48
48
|
|
49
49
|
def repo(owner, repo)
|
@@ -74,6 +74,8 @@ module OSS
|
|
74
74
|
if repo_ok
|
75
75
|
l[type] << Hashie::Mash.new({
|
76
76
|
name: r.name,
|
77
|
+
owner: r.owner.login,
|
78
|
+
repo: "#{r.owner.login}/#{r.name}",
|
77
79
|
stars: r.stargazers_count,
|
78
80
|
commits: "#{r.html_url}/commits?author=#{user}"
|
79
81
|
})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oss-contributions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JD Isaacks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|