New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

owemegod

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

owemegod

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Owemegod

Owemegod is a tool made for distributing costs of events or parties among a bunch of people.

Usage

Set up a bunch of people

me = Owemegod::Person.new(name: "Josep Jaume")
petula = Owemegod::Person.new(name: "Petula Clark")
chaplin = Owemegod::Person.new(name: "Charles Chaplin")
napoleon = Owemegod::Person.new(name: "Napoleon Dynamite")

Assign them a bunch of expenses

me.add_expense("Food", 50)
me.add_expense("Bitches", 100)
petula.add_expense("Drinks", 40)

Create a group

group = Owemegod::Group.new [me, petula, chaplin]

Distribute the costs

distribution = group.distribute

Inspect the results

puts distribution.debts.inspect
=> [[#<Owemegod::Person name="Petula Clark">, #<Owemegod::Person name="Josep Jaume">, 7.5], [#<Owemegod::Person name="Napoleon Dynamite">, #<Owemegod::Person name="Josep Jaume">, 47.5], [#<Owemegod::Person name="Charles Chaplin">, #<Owemegod::Person name="Josep Jaume">, 47.5]]

Todo

  • Create a prettier API
  • Create prettier output
  • Simplify internals (refactoring)
  • Add documentation
  • Create a web interface

License

MIT License. Copyright 2011 Josep Jaume

FAQs

Package last updated on 19 Feb 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc