Commit Graph

156 Commits

Author SHA1 Message Date
Hakan Ensari
418d684343
Ensure consistent ordering by date and ISO code 2024-11-20 14:58:17 +01:00
Hakan Ensari
4ce9e46f92
Order by date?
I'm just troubleshooting a failed spec on ci, which i can't reproduce locally.
2024-11-20 14:46:47 +01:00
Hakan Ensari
6faa265834
Refactor date lookup 2024-11-20 14:22:08 +01:00
Hakan Ensari
7c99f214e6
Ensure intuitive behavior when querying across holidays (#71) 2024-11-20 14:15:42 +01:00
Hakan Ensari
e5815737c1
Spring cleaning
- bumped gems
- rm bots
- rm pry byebug
- added rubocop-shopify and corrected generated warnings
2024-11-20 14:14:27 +01:00
Hakan Ensari
ca0ceb376a
Bump ruby and gems 2024-10-03 22:17:17 +02:00
Hakan Ensari
6e09acc767
Add cache-control header to response 2023-03-01 14:28:18 +00:00
Hakan Ensari
62fd0e4b09
Fix rubocop offenses 2023-02-28 16:49:48 +00:00
Hakan Ensari
4b33029e22 Return error message in body 2022-03-07 12:02:12 +00:00
Hakan Ensari
6feaa0c372 Do housekeeping
- Bump ruby to 3.0.1
- Upgrade gems
- Add suggested rubocop rake plugin
- Fix rubocop warnings
- Add byebug and pry
2021-05-11 12:26:01 +01:00
Johannes Brinksmeier
a80818049c add missing import of digest module 2021-04-07 10:59:54 +01:00
Hakan Ensari
82666af2d6 Switch to Roda
A first stab at replacing Sinatra with Roda
2020-05-08 14:50:09 +01:00
Hakan Ensari
535471509b Fix link 2020-05-03 20:48:22 +01:00
Hakan Ensari
7e2c69132d Root returns link to docs 2020-05-02 19:38:36 +01:00
Hakan Ensari
ef683f0321 Revert "Fix error in ci?"
This reverts commit 59e780dbc0.
2020-05-02 18:34:20 +01:00
Hakan Ensari
59e780dbc0 Fix error in ci? 2020-05-02 18:20:04 +01:00
Hakan Ensari
f8cca4731d Fix ruby deprecations 2020-05-02 17:09:03 +01:00
Hakan Ensari
2d56ce2e77 Handle rounding edge case
A lower-rate base currency like IDR previously produced less precise quotes.

Fixes #14
2020-05-02 15:26:03 +01:00
Hakan Ensari
2e83b9d50d Fix 24b5435 2020-05-02 15:26:03 +01:00
Hakan Ensari
ec302e726c Refactor query building out of server 2020-05-02 15:14:47 +01:00
Hakan Ensari
72fe6022c9 Housekeeping
- Use setup ruby action
- Update gems
- Rubocop fixes
- Don't mutate params
2020-05-02 15:13:50 +01:00
Hakan Ensari
a756d9a025 Refactor currency#between 2020-04-02 14:52:56 +01:00
Hakan Ensari
cb51bca58b Work around ecb rate limiting 2020-04-02 14:38:07 +01:00
Hakan Ensari
24b5435e6d Sample weekly when querying over 365 days 2020-04-01 11:21:32 +01:00
Hakan Ensari
b3a557e8d6 Split Rubocop files and fix warning 2019-11-22 13:12:25 +00:00
Hakan Ensari
7e8fa60440 Allow domain root in robots.txt 2019-05-12 11:59:51 +01:00
Hakan Ensari
f62426797d Handle interval where base is missing on older dates 2019-05-02 20:36:35 +01:00
Hakan Ensari
6c48bcadbe Yank content from server 2019-04-25 16:58:29 +01:00
Hakan Ensari
7d171ac7be Minor tweaks 2018-10-18 13:34:21 +01:00
Hakan Ensari
c1e1644c52 Implement currencies endpoint 2018-10-10 13:55:55 +01:00
Hakan Ensari
8d61d97c69 Fix test task 2018-10-10 13:55:55 +01:00
Hakan Ensari
428f24ec64 Add link to Product Hunt 2018-10-09 17:52:43 +01:00
Hakan Ensari
63b898571d Add sitemap 2018-10-09 15:55:20 +01:00
Hakan Ensari
200d10122a Add Deploy to Heroku button 2018-10-07 01:08:45 +01:00
Hakan Ensari
cf373f3efb Denormalise database schema
This way, we will have no issue fitting the entire dataset on the free tier of Heroku
2018-10-07 01:08:45 +01:00
Hakan Ensari
fb7761bc05 Refactor daemon 2018-10-07 01:08:45 +01:00
Hakan Ensari
fb44818efb Implement fork-based daemon for scheduling jobs
Extracted from

https://github.com/discourse/discourse/blob/master/lib/demon/sidekiq.rb
2018-10-07 01:08:45 +01:00
Hakan Ensari
1da5f39405 Improve SEO? 2018-10-07 01:08:45 +01:00
Hakan Ensari
4df1d794c2 Don't return empty hashes
This happened when rebasing and converting to unavailable currencies. For instance, the following was returning empty hashes for dates prior to the release of the new Turkish Lira:

https://frankfurter.app/1999-01-01..?from=USD&to=TRY
2018-09-21 20:20:56 +01:00
Hakan Ensari
2b53906e41 Get time period up to the present 2018-09-18 13:16:10 +01:00
Hakan Ensari
b64a41b87f Visual tweaks 2018-09-18 13:15:58 +01:00
Hakan Ensari
603ad1c653 Remove obsolete code 2018-09-18 12:58:28 +01:00
Hakan Ensari
d107134548 Upcase symbols 2018-09-18 12:56:11 +01:00
Hakan Ensari
79f1972361 Fix tracking code 2018-09-17 22:14:21 +01:00
Hakan Ensari
0a2f6f443f Hide on mobile 2018-09-17 14:06:43 +01:00
Hakan Ensari
5eddb8cad0 Add cookie notice 2018-09-13 17:34:44 +01:00
Hakan Ensari
396427f0e4 Remove unused css 2018-09-12 11:08:17 +01:00
Hakan Ensari
5467b1b50e Fix js toggle 2018-09-11 18:41:51 +01:00
Hakan Ensari
e52cdd8512 Fix Rubocop offenses 2018-09-11 18:08:14 +01:00
Hakan Ensari
c6a04ae694 Fix ECB url 2018-09-11 18:05:14 +01:00