GGXrd::Frames
This gem scrapes GGXrd official frame data page (http://www.4gamer.net/guide/ggxrd/) and gives you the result as a hash.
Installation
Add this line to your application's Gemfile:
gem 'ggxrd-frames'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ggxrd-frames
Usage
require 'ggxrd/frames'
client = GGXrd::Frames.new
pp client.frame_of('SO')[25]
The argumet is the abbrev. of each character name. You can confirm all names by:
pp GGXrd::Frames::CHARACTERS.keys
Caveat
The result is written in Japanese because the official site is written in Japanese.
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
- Fork it ( https://github.com/[my-github-username]/ggxrd-frames/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request