No commit activity in last 3 years
No release in over 3 years
Groups POIs with the xp points from weekly challenges. Use FortniteAPI.io.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.1
~> 11.2, >= 11.2.2
~> 3.5
~> 0.42.0
~> 2.1

Runtime

~> 0.13.7
 Project Readme

FortniteExperience

Gem Version

This gem provides a class to group the total experience of the current Fortnite season weekly challenges by Point Of Interest (POI). It uses FortniteApi.io API to retrieve the information about POIs and weekly challenges.

Installation

Add this line to your application's Gemfile:

gem 'fortnite_experience'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install fortnite_experience

Usage

To use this gem, you need to be registered at FortniteApi.io and have a developer key (FORTNITE_API_IO_KEY).

require 'fortnite_experience'

# Initialize with a valid FortniteApi.io key
fortnite_calculator = FortniteExperience::Calculator.new('FORTNITE_API_IO_KEY')
fortnite_calculator.experience_by_pois #=> { 'CRAGGY CLIFFS' => 50_000, 'CATTY CORNER' => 25_000 }

# Initialize with an invalid FortniteApi.io key
fortnite_calculator = FortniteExperience::Calculator.new('INVALID_KEY')
fortnite_calculator.experience_by_pois #=> *** FortniteExperience::Services::FortniteAPI::APIKeyNotValidError

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also 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, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/francoprud/fortnite_experience. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

  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. Run rubocop (bundle exec rubocop Gemfile lib spec)
  5. Run rspec (bundle exec rspec)
  6. Push your branch (git push origin my-new-feature)
  7. Create a new Pull Request

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the FortniteExperience project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.