Vanitas stillife by N.L. Peschier, 1660.
Rijksbot is a twitter bot that responds to mentions with an image from the Rijksmuseum, using the tweet as a serch term.
This project was started at a Rails Girls Berlin Code & Cake event in 2017.
We gladly accept contributions to this project. Get in touch with thoughts and ideas.
Add an account and ask for a Rijksmuseum API Key. You will recieve the key via email. It will only take you few minutes.
Add a .env file in the root file with your API key:
# .env
RIJKSMUSEUM_API_KEY=ZuSiGYl9 # without quotes, this is an example & fake key
- install gems
bundle
- Change :record => :none to :once to record new episodes. # test/support/vcr.rb
config.default_cassette_options = { allow_unused_http_interactions: false, :record => :once }
- run:
rake test
- change 'test/support/vcr.rb' again to
:record => :none
or rather:
git checkout test/support/vcr.rb
- check the failing test, and change the timestamp to the actual one. Example:
# failing test output:
--- expected
+++ actual
@@ -1 +1 @@
-"Wed, 02 May 2018 22:14:01 GMT"
+"Tue, 22 May 2018 10:27:02 GMT"
# rijksmus-api/client_test.rb:18
subject.images.headers["date"].must_equal "Tue, 22 May 2018 00:00:29 GMT"
- Git add and commit your changes. Example:
git add . # check your changes before with git diff and do the propper cleaning/commits.
git commit -m 'update timestamp client_test'
- Congratulations! All tests should be green/passing and you are start doing your first contribution!
MIT
Thanks goes to these wonderful people (emoji key):
Nynne Just Christoffersen 💻 🖋 🎨 📖 🚇 🚧 |
Tonio Serna 💻 📖 🤔 🚇 🧑🏫 |
Sarah 💻 🚧 |
Daniel Senff 💻 🚧 |
Christian Buggle 🚧 |
Stephen Best 💬 🖋 🔣 🎨 📖 🤔 🧑🏫 |
This project follows the all-contributors specification. Contributions of any kind welcome!