0.0
No commit activity in last 3 years
No release in over 3 years
Easy to use gem for downloading and parsing Oldschool Runescape highscores
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
 Project Readme

RsHighscores

Code Climate

Easy to use gem for downloading and parsing Runescape highscores. Inspired to some extent by Partyhat

Rename and compatibility changes

This gem was previously called osrshighscores and only worked with Oldschool Runescape. The current version has been renamed to reflect the future version-agnostic highscore parsing that the gem will do. As of version 2.1.0, Oldschool Runescape is supported alongside Runescape 3. There are aliases in place to make code from 1.x work without issue in 2.1.x onwards, so if you were using 1.x you need not change anything.

Why the change at all?

I was asked to port the gem to Runescape 3 by a friend. I figured it would be better to immediately roll-out a working version and then work on merging branches later.

Installation

Add this line to your application's Gemfile:

gem 'rshighscores'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rshighscores

Usage

require 'rshighscores'

foot = RsHighscores::Player.new "Foot", force: true
highscores = foot.stats
puts highscores.hunter.level # => 99

jebrim = OSRS::Player.new "Jebrim", force: true # RsHighscores::OldSchool::Player would work too
highscores = jebrim.stats
puts highscores.agility.level # => 99

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request