Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Update dependencies - #15

Open
JamesGlover wants to merge 11 commits into
developfrom
update_dependencies
Open

Update dependencies#15
JamesGlover wants to merge 11 commits into
developfrom
update_dependencies

Conversation

@JamesGlover

Copy link
Copy Markdown
Contributor

The service had languished somewhat, so there are a few changes here to bring it up to standard:

  1. Update ruby version
  2. Update dependencies
  3. Switch to null database adapter for dev/test
  • I'm not hugely happy with this, as we use methods on the Oracle adaptor not actually supported here, so need to mock them. But installing Oracle dependencies is a pain. Not sure how much time to spend on this given issue#11
  1. Refactoring inspired by Rubocop, plus some general simplification.

James Glover added 11 commits January 19, 2022 15:35
We're not actually using the database in
development, so lets switch out MySQL
for the null database.
Broad-scale update of dependencies.
Testing the actual Oracle integration is a pain, due to the difficulties
in creating development oracle databases, or even building the gems. So
we test the mocked adapter, which is far from ideal.
We were entirely lacking tests.
Less importantly we lacked linting.
This adds both.
- Remove redundand versionstrings file
- Set RAILS_ENV at top of file
- require 'bundler/setup' instead of bundler
- require files eagerly
- Remove APP_ROOT constant
- Use File.read, not File.open to avoid leaving files open
- Use Yaml.load_file
- Extract next_sequence into its own method
- Convert number to integer on initialization
- Move content-type handling into the Sinatra methods
- Hide presenter from Sinatra
- Run tests
- Run linters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant