contribution-checker 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 241c4ee2503dc6c454248088914459b8e6c0d306
4
- data.tar.gz: e7a88db8ca3da98b428460e47b129b5d22148ecb
3
+ metadata.gz: 12f84acc057e88e25dbbcc411e9b45d158312c71
4
+ data.tar.gz: a9e1487a52039a654a49e288809eb75134bf38d0
5
5
  SHA512:
6
- metadata.gz: 1d7c6fa55868b8f9fc153534d801156ac4b57554ff819f2c84a61479d3c78ee9d974b2b41a8853165972b2f6d904d80598fefbc21ad361bf7fed03ebfddbd05b
7
- data.tar.gz: f45f611e4d0823cbd1a5fe06541c7c34c5c0aa402af4e6ec20612a92d01f06523ad395bfe7b77cd1da2d23a0e3efcf85466495a863f27f771c7f0d3c85fbc682
6
+ metadata.gz: 5a4bf963fbea1af77db0e86001d7052fe2a9eb17e771984bb4707c9d70585816cfa3edb4c1121ebe02de016568ec0f1ae689d3b28be7591b1817d64dfd631e82
7
+ data.tar.gz: 69269ac23e769db4d6c35b428fa0c99e5fdb3d4248f01b6c4c1c469ccfc937d09604f993e26ea243f85c78ea781fa3bda287408119b967b2b9a3012d70ce8372
data/README.md CHANGED
@@ -29,4 +29,14 @@ checker.check
29
29
  }
30
30
  ```
31
31
 
32
+ You might also like to try out the [Contribution Checker][app] app built on top of this library:
33
+
34
+ ![checker](https://cloud.githubusercontent.com/assets/65057/3230693/8b10fb9c-f0a5-11e3-8223-45fd47c34aa6.png)
35
+
36
+ Created by [@izuzak][izuzak] and [@jdennes][jdennes] at the [Hamburg Hackathon][hamburg-hackathon], June 2014.
37
+
32
38
  [contributions]: https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile
39
+ [app]: http://contribution-checker.herokuapp.com/
40
+ [izuzak]: https://github.com/izuzak
41
+ [jdennes]: https://github.com/jdennes
42
+ [hamburg-hackathon]: http://hamburg-hackathon.de/hackathon/
@@ -207,7 +207,9 @@ module ContributionChecker
207
207
  potential_fork_nwo = "#{@user[:login]}/#{@repo[:name]}"
208
208
  begin
209
209
  potential_fork = @client.repository potential_fork_nwo
210
- return true if potential_fork[:parent][:full_name] == @repo[:full_name]
210
+ if potential_fork[:fork]
211
+ return true if potential_fork[:parent][:full_name] == @repo[:full_name]
212
+ end
211
213
  rescue Octokit::NotFound
212
214
  # Keep going...
213
215
  end
@@ -1,3 +1,3 @@
1
1
  module ContributionChecker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contribution-checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Dennes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit