osem

https://github.com/opensuse/osem

Ruby

Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.

Conference#calculate_items_per_week

Calculates items per week from a hash.

====Returns
 * +Array+ -> e.g. [1, 3, 3, 5] -> first week 1, second week 2 registrations

Source | Google | Stack overflow

Edit

git clone [email protected]:opensuse/osem.git

cd osem

open app/models/conference.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Conference-calculate_items_per_week-for-pr


# Commit to git

git add app/models/conference.rbgit commit -m "better docs for Conference#calculate_items_per_week"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Conference-calculate_items_per_week-for-pr

hub pull-request


# Celebrate!