- Notifications
You must be signed in to change notification settings - Fork0
Ruby client for Extreme Overclocking's Folding@home Data Export
License
blakegearin/extreme_overclocking_client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Ruby client forExtreme Overclocking's Folding@home Data Export
Need more data on projects and GPUs? Try outfolding_at_home_client
Install and add to Gemfile:
bundle add extreme_overclocking_client
Install without bundler:
gem install extreme_overclocking_client
Please read the fullusage statement from Extreme Overclocking before using. This client has some simplistic rate limiting built-in, but ultimately it's up to consumers of the gem to prevent excessive queries and abuse. Neglecting to do so may result in your IP being blocked.
Data can be retrieved via theService class or individual classes with a configuration parameter.
service=ExtremeOverclockingClient::Service.new(project_url:'https://github.com/blakegearin/extreme_overclocking_client',project_name:'ExtremeOverclockingClientTesting',project_version:'0.0.1',)user_id=32334name='EOC_Jason'team_id=11314# Useruser=service.user(id:user_id)user=service.user(name:name,team_id:team_id)# Usersusers=service.users(ids:[32334,811139])hashes=[{name:name,team_id:team_id},{name:name,team_id:team_id},]users=service.users(hashes:hashes)# Teamteam=service.team(id:team_id)# Teamsteams=service.teams(ids:[11314,223518])
Provide aproject_url andproject_name to let Extreme Overclocking know what your project is. These values populate referer and user-agent metadata sent with each request.
config=ExtremeOverclockingClient::Config.new(project_url:'https://github.com/blakegearin/extreme_overclocking_client',project_name:'ExtremeOverclockingClientTesting',project_version:'0.0.1',)
user_id=32334name='EOC_Jason'team_id=11314config=ExtremeOverclockingClient::Config.new(project_url:'https://github.com/blakegearin/extreme_overclocking_client',project_name:'ExtremeOverclockingClientTesting',project_version:'0.0.1',)# Fetch a user by id# Required: config, iduser=ExtremeOverclockingClient::User.new(config:config,id:user_id)# Fetch a user with a name and team_id# Required: config, name, team_iduser=ExtremeOverclockingClient::User.new(config:config,name:name,team_id:team_id)## Update a user with the latest statsuser.refresh
id=11314config=ExtremeOverclockingClient::Config.new(project_url:'https://github.com/blakegearin/extreme_overclocking_client',project_name:'ExtremeOverclockingClientTesting',project_version:'0.0.1',)# Fetch a team by idteam=ExtremeOverclockingClient::Team.new(config:config,id:id)## Update a team with the latest statsteam.refresh
After checking out the repo, runbin/setup to install dependencies. Then, runrake spec to run the tests. You can also runbin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, runbundle exec rake install. To release a new version, update the version number inversion.rb, and then runbundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the.gem file torubygems.org.
Bug reports, feature requests, and pull requests are welcome.
About
Ruby client for Extreme Overclocking's Folding@home Data Export
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.