Permalink
Browse files

add CPAN perl support

  • Loading branch information...
fayland committed Nov 17, 2013
1 parent cd2f64d commit 88eb1ad55ace8f3ba27f0df7edb01b828d35a442
Showing with 21 additions and 9 deletions.
  1. +4 −1 README.md
  2. +1 −0 contributor.coffee
  3. +2 −1 contributor.js
  4. +3 −2 package.json
  5. +5 −2 test/test.coffee
  6. +6 −3 test/test.js
View
@@ -3,7 +3,7 @@ contributor.io
[![Build Status](https://travis-ci.org/eighttrackmind/contributor.io.png)](https://travis-ci.org/eighttrackmind/contributor.io.png)
Fetch counts of a user's contributions to various platforms (Github, NPM, Gem, ...)
Fetch counts of a user's contributions to various platforms (Github, NPM, Gem, CPAN, ...)
*Web service coming soon...*
@@ -14,6 +14,7 @@ Fetch counts of a user's contributions to various platforms (Github, NPM, Gem, .
- Github
- NPM
- Rubygems
- CPAN
### Future
@@ -29,13 +30,15 @@ contributor
gem: 'bcherny'
github: 'eighttrackmind'
npm: 'bcherny'
cpan: 'FAYLAND'
.then (counts) ->
# returns an object with counts, eg.:
# {
# gem: 20
# github: 50
# npm: 45
# cpan: 67
# }
```
View
@@ -7,6 +7,7 @@ apis =
gem: require 'gem-count'
github: require 'github-repos'
npm: require 'npm-packages'
cpan: require 'cpan-count'
# contributor
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "contributor.io",
"version": "0.0.3",
"description": "Fetch counts of a user's contributions to various platforms (Github, NPM, Gem, ...)",
"description": "Fetch counts of a user's contributions to various platforms (Github, NPM, Gem, CPAN, ...)",
"main": "contributor.js",
"scripts": {
"test": "./node_modules/.bin/nodeunit test"
@@ -33,7 +33,8 @@
"npm-packages": "0.0.1",
"lodash": "~2.3.0",
"when": "~2.6.0",
"gem-count": "0.0.1"
"gem-count": "0.0.1",
"cpan-count": "0.0.1"
},
"devDependencies": {
"nodeunit": "~0.8.2"
View
@@ -3,20 +3,23 @@ contributor = require '../contributor'
exports.contributor = (test) ->
test.expect 3
test.expect 4
contributor
gem: 'bcherny'
github: 'eighttrackmind'
npm: 'bcherny'
cpan: 'FAYLAND'
.then (counts) ->
gemIsZero = counts.gem is 0
githubIsMoreThan10 = counts.github > 10
npmIsMoreThan10 = counts.npm > 10
cpanIsMoreThan10 = counts.cpan > 10
test.equals gemIsZero, true
test.equals githubIsMoreThan10, true
test.equals npmIsMoreThan10, true
test.equals cpanIsMoreThan10, true
test.done()
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 88eb1ad

Please sign in to comment.