-
Notifications
You must be signed in to change notification settings - Fork 45
Add bin/newver
script for creating new Rubocop channels.
#129
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
Conversation
|
||
ed Gemfile <<-EDITS | ||
/gem "parser",/c | ||
gem "parser" |
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.
is this replacing the line with the same line?
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.
It's replacing the version-specific line on master
with one that doesn't specify a version. Master is pinned to an oddly-old parser, it seemed to me.
gem "rubocop", "~> ${NEWVER}", require: false | ||
. | ||
wq | ||
EDITS |
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.
TIL some ed
basics, that's neat 👍
bin/newver
Outdated
wq | ||
EDITS | ||
|
||
bundle update |
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.
should we do something more scoped like, bundle update rubocop
?
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.
Note: in order for this to work, it would be necessary to add a make image
before the ed
line
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.
Whoops, this comment was meant to go on the thread about using docker, not the thread about scoping the bundle update 😅
bin/newver
Outdated
wq | ||
EDITS | ||
|
||
bundle update |
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.
wdyt about doing this in docker? In general we try to avoid needing to have non-docker things installed on your host. We could do something like:
docker run --user root --rm --volume "$(pwd)":/usr/src/app --workdir /usr/src/app codeclimate/codeclimate-rubocop bundle update rubocop
In a lot of our code bases, we've added such a task to the Makefile as make bundle
. If we did that, we might invoke it here as make bundle -e BUNDLE_ARGS='update rubocop'
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.
That seems like a nice improvement; I will change it to invoke docker like your example.
retval=$? | ||
if [ $retval -ne 0 ]; then | ||
>&2 echo "If tests fail, you may need to modify spec/support/currently_undocumented_cops.txt" | ||
exit $retval |
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.
this is a nice CLI UX 👏
* Make bundle uses docker, Following up on PR review and to be consistency with how we update gems in other repos
@maxjacobson I updated the script. I think it would be nice to merge this because it helps with releasing new versions. Can i get another review? |
* Add `bin/newver` script for creating new Rubocop channels. * Adds make bundle and updates newver script * Make bundle uses docker, Following up on PR review and to be consistency with how we update gems in other repos
* Add `bin/newver` script for creating new Rubocop channels. (#129) * Add `bin/newver` script for creating new Rubocop channels. * Adds make bundle and updates newver script * Make bundle uses docker, Following up on PR review and to be consistency with how we update gems in other repos * Updates rubocop-rspec 1.30
No description provided.