From ed3446f97efc1c9127f422d341c01ea7831f2905 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Wed, 25 Sep 2019 15:51:32 +1000 Subject: [PATCH] Add some instructions to README about configuring the script --- README.md | 2 ++ bin/console | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index e6fb0dc..ae76374 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ gv = client.get_variations(asin: 'B00422MCUS') After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +If you create a file `config.rb`, it will be loaded by `bin/console`, allowing you to configure keys and markets. + 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](https://rubygems.org). ## Contributing diff --git a/bin/console b/bin/console index 822a2b8..93a47f6 100755 --- a/bin/console +++ b/bin/console @@ -11,4 +11,5 @@ require 'paapi' # Pry.start require 'irb' +load 'config.rb' if File.exist? 'config.rb' IRB.start(__FILE__)