oss-contributions 0.0.0 → 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 +4 -4
  2. data/lib/oss-contributions.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6580e65c3d39a1bc5671b36a34797c2a6e9409bd
4
- data.tar.gz: fc365c7c285c9b3dd6f6ac604010077519a32948
3
+ metadata.gz: 771c507603bbef35085312fc942f8f2bd2109b3f
4
+ data.tar.gz: ede307b1fffe8175dd7731de2924b268e6cc5a1f
5
5
  SHA512:
6
- metadata.gz: 0a6b95037966ff28c7a958b31e227b67bb838c6922ad0f7a33743a89f604b94333145b20552f1a06e6e05422035c748c3d192c46cc4a5df46b04a9008dd2038f
7
- data.tar.gz: 874e5eaa027ac21069cbbe16c6770951c9c98003f5b64d263dea66fca05221658f00d81a7e52eab3dafcb7603e4768854f1e7dc463da023d1d876b7b26c9771a
6
+ metadata.gz: 931139107c780542f55d48ebd95a68f6b8d18dc22506a261e4acbdcea05e7cd29e7a8f30ea0ab02f42a139fbae9943b7a8eec0a9e6cd36041eee697dd9963521
7
+ data.tar.gz: 9b188c0a067c717531e0e5d8210ca39180bfb52840a6d967c9a527ba6bca2998f7b6f8b14835d67a9f6184d729139d9121846d2a25216fbc398e06d4457832ff
@@ -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
- api "/users/#{user}/repos"
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.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-07-30 00:00:00.000000000 Z
11
+ date: 2014-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday