osem
https://github.com/opensuse/osem
Ruby
Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.
Conference#affiliation_distribution
Returns a hash with affiliation =>
{value: count of registration whose user has that affilation, color: color}
In case that the affiliation is blank, it groups them in None and
if the number of persons that have an affiliation are less than the 2% of
the total number of registered people, they are grouped in others.
====Returns
* +hash+ -> hashEdit
git clone [email protected]:opensuse/osem.git
cd osem
open app/models/conference.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Conference-affiliation_distribution-for-pr
# Commit to gitgit add app/models/conference.rbgit commit -m "better docs for Conference#affiliation_distribution"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Conference-affiliation_distribution-for-pr
hub pull-request
# Celebrate!