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 +4 -4
- data/README.md +10 -0
- data/lib/contribution-checker/checker.rb +3 -1
- data/lib/contribution-checker/version.rb +1 -1
- 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: 12f84acc057e88e25dbbcc411e9b45d158312c71
|
|
4
|
+
data.tar.gz: a9e1487a52039a654a49e288809eb75134bf38d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+

|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|