Sha256: ac01c6eea7a05bde4bddebf28542cee266a2f25c3f1f7efc28b2a0e1140bd635
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
# lunchmoney This gem and readme are very much a work in progress. More to come! This gem is a library of the [LunchMoney API](https://lunchmoney.dev/) for the wonderful [LunchMoney](http://lunchmoney.app/) web app for personal finance & budgeting. You can find the yard docs for this gem [here](https://halorrr.github.io/lunchmoney/) ## Usage ### Installation Add this line to your application's `Gemfile`: ```Ruby gem "lunchmoney" ``` ### Set your lunchmoney token There are a few ways you can set your API token. You can set it manually using a configure block: ```Ruby LunchMoney.configure do |config| config.api_key = "your_api_key" end ``` The config will also _automatically_ pull in the token if set via environment variable named `LUNCHMONEY_TOKEN` You can also override the config and set your LunchMoney token for a specific API instance via kwarg: ```Ruby LunchMoney::Api.new(api_key: "your_api_key") ``` ### Using the API Create an instance of the api, then call the endpoint you need: ```Ruby api = LunchMoney::Api.new api.categories ``` ## Contributing to this repo Feel free to contribute and submit PRs to improve this gem ## Releasing a new gem version 1. Bump the `VERSION` constant in `lib/lunchmoney/version.rb` 2. Run `bundle install` 3. Commit and push up the change in a PR 4. Merge the PR 5. Create a new tag and release with the name version as v0.0.0 6. A Github action will kick off and publish the new gem version
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lunchmoney-0.10.0 | README.md |