Commit Graph

82 Commits

Author SHA1 Message Date
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
706e084eb2 Ditch codeclimate 2020-04-02 12:40:06 +01:00
Hakan Ensari
7b47dc5744 Pin simplecov to 0.17 2020-04-01 21:57:56 +01:00
Hakan Ensari
3ff98a244e Bump ruby to 2.7.1 2020-04-01 21:10:11 +01:00
Hakan Ensari
2b658b3d13 Update gems 2020-04-01 11:20:27 +01:00
Hakan Ensari
1099346973 Remove pry 2020-01-02 19:57:25 +03:00
Hakan Ensari
1adadecf6e Upgrade to Ruby 2.7.0 2020-01-02 19:57:25 +03:00
Hakan Ensari
e8edb4314a Update gems 2020-01-02 01:17:12 +03:00
Hakan Ensari
3b09ef7830 Remove shotgun 2019-12-24 15:21:51 +00:00
Hakan Ensari
2ef2c23aee Upgrade Ruby to 2.6.5
https://github.com/actions/setup-ruby/issues/24#issuecomment-526928674
2019-12-24 15:15:13 +00:00
Hakan Ensari
c222476d6a Update gems 2019-12-20 01:04:22 +00:00
dependabot[bot]
4f135d19da
Bump rack from 2.0.7 to 2.0.8
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-19 04:43:07 +00:00
Hakan Ensari
94bb47ba6e Add SimpleCov 2019-11-22 14:56:04 +00:00
Hakan Ensari
97c886700d Bump Ruby back down to 2.6.3 2019-11-22 14:38:37 +00:00
Hakan Ensari
13c0240d54 Update gems 2019-11-22 13:12:10 +00:00
dependabot[bot]
ba31595709
Bump rack-cors from 1.0.3 to 1.0.5
Bumps [rack-cors](https://github.com/cyu/rack-cors) from 1.0.3 to 1.0.5.
- [Release notes](https://github.com/cyu/rack-cors/releases)
- [Changelog](https://github.com/cyu/rack-cors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cyu/rack-cors/compare/v1.0.3...v1.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-15 21:10:43 +00:00
Hakan Ensari
b94b3f2bec Update gems 2019-07-19 17:11:07 +03:00
Hakan Ensari
9cf19975f5 Update gems 2019-05-15 13:21:59 +01:00
Hakan Ensari
5057365be9 Add Rubocop Performance gem 2019-05-02 20:35:03 +01:00
Hakan Ensari
6c48bcadbe Yank content from server 2019-04-25 16:58:29 +01:00
Hakan Ensari
7e880dd7e4 Update runtime and gems 2019-04-25 16:37:56 +01:00
Hakan Ensari
694803dd35 Bump Ruby and gems 2019-04-09 17:31:38 +01:00
Hakan Ensari
067a3251dc Update Ruby and gems 2019-01-19 13:11:26 +00: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
63b898571d Add sitemap 2018-10-09 15:55:20 +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
82a5c59cb6 Update gems 2018-09-21 20:17:48 +01:00
Hakan Ensari
c07c84ad1f Revert "Replace Unicorn with Puma"
This reverts commit 11c2d760bc.
2018-09-12 00:54:39 +01:00
Hakan Ensari
21a357521f Update gems 2018-09-11 18:08:01 +01:00
Hakan Ensari
5789880a59 Update homepage 2018-09-11 17:59:42 +01:00
Hakan Ensari
09ec280a81 Drop Guard, use Sass 2018-07-20 21:14:26 +01:00
Hakan Ensari
11c2d760bc Replace Unicorn with Puma 2018-07-20 21:02:46 +01:00
Hakan Ensari
2c91173ecf Rebrand, serve HTML 2018-06-08 15:32:52 +01:00
Hakan Ensari
b30c23d0d8 Fix failing build 2018-03-22 22:53:02 +00:00
Hakan Ensari
cfbb4ac4ac Repack app
I'm moving my company's server to a private location now that I have sold the domain. While prepping for this, I've done some cleanup and also threw in changes I had lingering on my hard drive.

- Run a single database query instead of two
- Fold the gem into the app and use Ox instead of REXML
- Simplify error handling logic
- Relax throttling
2018-03-08 23:51:36 +00:00
Hakan Ensari
3319c49dca Spring clean code base
- Bump ruby version
- Remove obsolete files, including deploy artefacts
- Don't use pride when testing
- Store gem and app in same repo
- Switch to asdf
2017-11-09 23:30:13 +00:00
Hakan Ensari
3c4f70cf49 Remove New Relic agent 2017-06-14 23:01:27 +01:00
Hakan Ensari
90146aa630 Update gems 2017-06-14 23:01:27 +01:00
Hakan Ensari
cc539ebdd0 Update Ruby version 2017-06-14 22:26:02 +01:00
Hakan Ensari
e5cb17d0b9 Drop caching 2017-01-10 12:21:19 +00:00
Hakan Ensari
4dd1acec95 Use rack-cache 2017-01-10 12:06:03 +00:00
Hakan Ensari
a4384ce225 Update gems 2017-01-08 23:21:57 +00:00
Hakan Ensari
7b653b1fd8 Cache responses 2017-01-08 23:21:56 +00:00
Hakan Ensari
4a1f4ca3c1 Use Rubocop and fix existing offences 2017-01-03 12:36:05 +00:00
Hakan Ensari
77f9fedaca Update gems 2016-06-08 14:50:30 +01:00
Hakan Ensari
250095d262 Use rack-cors
We will only return Access-Control headers if request includes an
Origin header

Fixes #18
2016-05-09 11:51:54 +01:00
Hakan Ensari
07781b6d76 Use Oj to generate JSON
Warming up --------------------------------------
                json    16.465k i/100ms
                yajl    18.574k i/100ms
                  oj    34.073k i/100ms
Calculating -------------------------------------
                json    182.828k (± 7.8%) i/s -    922.040k in
5.075699s
                yajl    196.839k (± 4.5%) i/s -    984.422k in
5.011087s
                  oj    384.813k (± 5.9%) i/s -      1.942M in
5.065475s

Comparison:
                  oj:   384813.2 i/s
                yajl:   196839.0 i/s - 1.95x slower
                json:   182827.5 i/s - 2.10x slower
2016-05-09 11:51:54 +01:00
Hakan Ensari
702f6ac9aa Refactor internals
- Removed yajl-ruby
- Removed sinatra-jsonp
- Inlined #halt_with_message
- Added last_modified header to root path
2016-04-24 17:15:02 +01:00
Hakan Ensari
1d059cd049 Refactor cross-origin
- Drop cross_origin gem
- Add header to all responses

#18
2016-04-24 15:39:08 +01:00