-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compability, Versioning and Upgrading Penthouse and Using Docker & CircleCI for Developer Experience #16
Conversation
We should split out the CI upgrade and move it into it's own PR. Then we can proceed with the refactor. |
.circleci/config.yml
Outdated
- run: RUBY_VERSION=2.4.1 RAILS_VERSION=5.1.7 PG_VERSION=0.21.0 bundle install | ||
- run: RUBY_VERSION=2.4.1 RAILS_VERSION=5.1.7 PG_VERSION=0.21.0 bundle exec rspec | ||
- run: rm Gemfile.lock | ||
# Uncomment when adding support for greater rails versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we try and add support these versions might need bumped
spec.add_development_dependency 'activesupport', '~> 4.2.6' | ||
spec.add_development_dependency 'activerecord', '~> 4.2.6' | ||
spec.add_development_dependency 'pg', '~> 0.21.0' | ||
spec.add_development_dependency "ar-octopus", "~> 0.10.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryantownsend this is the only change.
See the release thiagopradi/octopus@1c99859
Our version lock: https://github.com/shiftcommerce/flex-platform/blob/4e1e9040e31e95c8975ec23acc4c0e014feb5f1d/Gemfile#L38-L42
Looks like v0.9.2 could be an option aswell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to perform the platform update first; then perform the Penthouse update
Merged as I had only bumped a dev dependency. |
This branch is a work in progress that will allow penthouse to be used with multiple versions of Rails.
Requirement
Working through these changes it's clear that there will be a little more work that needs to reach 5.2.0.
This diff command is really helpful for anyone looking to see the reason behind these changes:
Major Changes
Dockerfile.test
for how to inject Ruby, ActiveRecord and pg versions into the gemfile.Makefile
standardrb
for linting.Version Support
Testing has been set up to support ActiveRecord:
alias_method': undefined method
any?' for class `ActiveRecord::Associations::CollectionAssociation' (NameError) thiagopradi/octopus#540Post Merge
Seeking Feedback On