Commit Graph

91 Commits

Author SHA1 Message Date
Hakan Ensari
92ed532543 Fix OPTIONS requests
#18
2016-04-25 19:10:15 +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
59df76477e Further refactor cross-origin
- Add all [required
headers](https://github.com/britg/sinatra-cross_origin/blob/master/lib/s
inatra/cross_origin.rb#L51-L58)
- Respond to preflight requests

#18
2016-04-24 16:19:36 +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
b6b697872e Set TargetRubyVersion to 2.3 in Rubocop 2016-04-11 15:05:15 +01:00
Hakan Ensari
9d0ed94abe Refactor quote validation 2016-04-11 14:40:24 +01:00
Hakan Ensari
be1dcce266 Set default date at run time
Fixes #11
2015-09-15 12:02:49 +01:00
Hakan Ensari
b35d1e4420 Add missing slash 2015-09-15 12:01:35 +01:00
Hakan Ensari
5094956f7c Add Last Modified header 2015-09-15 12:01:16 +01:00
Hakan Ensari
15e8d8b19b Round to five significant digits
Fixes #10
2015-09-02 22:12:42 +01:00
Hakan Ensari
ddc0439340 Revert custom error 2015-09-02 22:11:57 +01:00
Hakan Ensari
62f1ab2237 Use custom error 2015-09-01 13:04:29 +01:00
Hakan Ensari
60719cd215 Refactor Quote 2015-08-31 10:56:01 +01:00
Hakan Ensari
1c128eb84c Convert Snapshot into value object 2015-08-30 11:54:49 +01:00
Hakan Ensari
b95a2c5ee6 Refactor Currency 2015-08-30 11:54:48 +01:00
Hakan Ensari
4c72b6a139 Fix Rubocop warnings 2015-05-25 12:13:05 +01:00
hakanensari
f479803a92 Allow cross-origin
Closes #2
2014-10-07 12:08:28 +01:00
hakanensari
bada8638a4 Fix failing test 2014-07-08 15:38:40 +01:00
hakanensari
76aa21c239 Add root path 2014-06-19 12:31:35 +01:00
hakanensari
36a49d848c Merge branch 'master' of github.com:papercavalier/fixer-io
Conflicts:
	.ruby-version
	Gemfile.lock
	lib/snapshot.rb
	spec/api_spec.rb
2014-05-16 20:39:14 +01:00
hakanensari
3c146f643f Handle more edge cases 2014-05-16 20:35:16 +01:00
Hakan Ensari
a73e9ddc7d Handle malformed query 2014-05-13 03:08:33 +01:00
hakanensari
3c0f4a060c Ensure historical data is returned 2014-03-17 10:15:05 +00:00
hakanensari
0931da3add Improve error handling 2014-03-17 10:10:39 +00:00
hakanensari
a2659e4a9c Remove benchmark spec 2014-03-14 12:15:27 +00:00
hakanensari
4fdd65ac3c Use a minimal app framework 2014-03-14 12:15:27 +00:00
Hakan Ensari
4a8993cdfb Work around holidays 2012-11-28 02:16:33 +00:00
Hakan Ensari
15092bce7b Filter symbols 2012-11-23 14:28:55 +00:00
Hakan Ensari
631d42207b Refactor snapshot 2012-11-23 14:13:49 +00:00
Hakan Ensari
84135eac5b Run benchmark specs optionally 2012-11-22 13:25:14 +00:00
Hakan Ensari
9b6a9082b3 Benchmark endpoints 2012-11-21 18:17:38 +00:00
Hakan Ensari
55bcf91219 Fix spec language 2012-11-21 16:11:47 +00:00
Hakan Ensari
a4aeb8e015 History requests should work around holidays 2012-11-21 14:59:39 +00:00
Hakan Ensari
d581df31af We should be able to filter by symbols 2012-11-21 14:46:15 +00:00
Hakan Ensari
663f0a038b Remove yajl require in spec 2012-11-21 12:46:33 +00:00
Hakan Ensari
19b7a37563 Refactor rebasing 2012-11-21 12:44:33 +00:00
Hakan Ensari
6609da520e A first stab at rebasing 2012-11-21 12:31:17 +00:00
Hakan Ensari
26abb0d71d Rename spec 2012-11-21 11:35:32 +00:00
Hakan Ensari
6fb6ab7feb Set base currency 2012-11-21 11:31:50 +00:00
Hakan Ensari
68c6fb6c17 We should be able to set base currency 2012-11-21 00:10:18 +00:00
Hakan Ensari
db37382765 Bootstrap Minitest 2012-11-21 00:04:15 +00:00