Commit Graph

34 Commits

Author SHA1 Message Date
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
Gearnode
b858e8c487 Bump ruby version 2016-05-03 15:26:54 +02: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
Hakan Ensari
055017f68a Drop Virtus dependency 2016-04-11 15:05:41 +01:00
Hakan Ensari
b6b697872e Set TargetRubyVersion to 2.3 in Rubocop 2016-04-11 15:05:15 +01:00
Hakan Ensari
12efdf8a1b Update gems
- Moved pry to development group
- Updated fixer to drop Nokogiri dependency
2016-04-11 14:39:49 +01:00
Hakan Ensari
7284abfdd7 Bump Rails to 2.3.0 2015-12-30 19:50:56 +00:00
Hakan Ensari
4b8ae80a64 Bump Ruby version 2015-12-22 19:24:46 +00:00
Hakan Ensari
e59181dce5 Revert "Remove pry"
This reverts commit 0c8dfdbf01.
2015-09-10 19:49:08 +01:00
Hakan Ensari
0c8dfdbf01 Remove pry 2015-09-02 22:18:53 +01:00
Hakan Ensari
d4b98eef49 Remove Rollbar 2015-08-30 11:54:49 +01:00
Hakan Ensari
b95a2c5ee6 Refactor Currency 2015-08-30 11:54:48 +01:00
Hakan Ensari
214e8a8a1a Bump Ruby to 2.2.3 2015-08-30 11:54:48 +01:00
Hakan Ensari
3ed4e6575f Bump Ruby version 2015-05-25 12:13:37 +01:00
Hakan Ensari
14985cf3e8 Deploy to Digital Ocean 2015-03-09 14:56:52 +00:00
hakanensari
1d6c36eb3c Switch to Rollbar 2015-01-05 16:21:37 +01:00
hakanensari
44c3a6bb5c Update gems 2015-01-05 16:21:37 +01:00
hakanensari
449c5d641c Update Ruby and gems 2014-11-22 09:52:05 +00:00
hakanensari
f479803a92 Allow cross-origin
Closes #2
2014-10-07 12:08:28 +01:00
hakanensari
fb037c5234 Gardening 2014-09-30 10:48:20 +01:00
Hakan Ensari
6753fcc49f Add Librato Rack 2014-05-13 11:39:38 +01:00
Hakan Ensari
814087a602 Bump Ruby version 2014-05-13 03:08:21 +01:00
hakanensari
8b47118725 Add Newrelic 2014-05-01 11:59:27 +01:00
hakanensari
dc03a5838f Add Honeybadger 2014-03-14 12:48:58 +00:00
hakanensari
b2e001a706 Use sequel_pg 2014-03-14 12:22:04 +00:00
hakanensari
506368481e Set Ruby version 2014-03-14 12:16:50 +00:00
hakanensari
5fbe9ca0e4 Add Rake to Gemfile 2014-03-14 11:41:00 +00:00
Hakan Ensari
631d42207b Refactor snapshot 2012-11-23 14:13:49 +00:00
Hakan Ensari
4029108601 Add minitest to Gemfile to stub tests 2012-11-21 12:31:10 +00:00
Hakan Ensari
9c4da44db4 Use shotgun 2012-11-21 11:24:29 +00:00
Hakan Ensari
db37382765 Bootstrap Minitest 2012-11-21 00:04:15 +00:00
Hakan Ensari
97e34dbc14 First commit 2012-11-20 16:36:12 +00:00