Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: v2 changes #153

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

WIP: v2 changes #153

wants to merge 23 commits into from

Conversation

bhornseth
Copy link
Member

@bhornseth bhornseth commented Jun 27, 2018

this will probably be a long-running PR while I tie up all the loose ends I'm hoping to tie up, but I figured I'd throw this up and let TravisCI run the tests while I tinker.

I started a v2.0 milestone a while ago with some goals, but in general, I'm looking to get all the dependencies up to date, make some breaking changes (e.g. merge the ListingCart / Collection models) that have been on the roadmap for a while, and collect a number of new models from our internal codebases that can be extracted here.


closes #131
closes #133
closes #139

@bhornseth
Copy link
Member Author

I aimed to keep all the commits small. They're all basically one change, though dba8bdf was a very large commit due to switching all the existing specs to the Rspec 3 DSL syntax. I followed the official guide for that, including using the transpec gem to auto-convert the specs, which worked shockingly well.

bhornseth and others added 21 commits April 20, 2020 10:31
 - update top section (encoding pragma, load path manipulation) to
   modern ruby standards
 - cleanup dependencies: for not mostly noting current versions along
   with their release date. Also removed a few dependencies that are
   unnecessary, e.g. builder, which we don't directly depend on,
Changelog here: https://github.com/flori/json/blob/master/CHANGES.md

Main note is that 2.0.0 dropped support for ruby 1.9.x
The cap we had in place wasn't really meaningful since the 1.0 series
started in April 2011 and has seen 13 minor releases
Ostensibly, we aren't using this. It's required, but none of the
highline methods seem to be invoked in our code
Again: this cap wasn't terribly meaningful. This gem has been on the 3.x
series since August 2011 and is stable enough it's unlikely to see a 4.0
anytime soon
 - temporarily drop guard-rspec, it's pulling in ruby-dep which doesn't
   like ruby < 2.2.5
 - we don't need to name both simplecov and simplecov-rcov since the
   latter depends on the former
 - grab ci_reporter_rspec rather than ci_reporter
Test run fine with the latest version
Take a chainsaw to some cruft that's accrued in here over the years
 - Coverage block can be simplified and shortened
 - We don't need to monkey patch a logger in anymore
 - don't re-require gems named in the gemspec
 - Drop the load path manipulation
 - rspec 3 uses `config.color`
No obvious breaking changes between 0.9.x and the current 0.15.x series
Catch MultiJson::ParseError exceptions and return a
SparkApi::InvalidJSON exception instead
Faraday supports this and passes it through to the underlying Net::HTTP
interface. There's little to no reason not to specify something
reasonable here. If clients can't connect in 1000ms, there are likely
some problems with the network in one fashion or another.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve handling of non-JSON responses Upgrade Will Paginate Rspec Upgrade
1 participant