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
Fix version numbers #319
Fix version numbers #319
Conversation
@eliasjpr Travis is failing Maybe |
More accurate to Command Line Interface
Finally works! :) |
@drujensen @fridgerator I think this PR is ready, WDYT? 😅 |
src/amber/cli/commands/database.cr
Outdated
@@ -19,6 +19,8 @@ module Amber::CLI | |||
end | |||
|
|||
def run | |||
migrations_path, migrations_table_suffix = Micrate::Cli.parse_command_arguments |
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.
Why was this necessary. Looks like we're just passing commands back into Micrate that it gave us in the same scope.
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.
I just fixed it to work with latest version of micrate shard see: amberframework/micrate@af301fc
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.
I reverted these changes, please check this PR again 😄
src/amber/cli/commands/migrate.cr
Outdated
@@ -20,25 +20,26 @@ module Amber::CLI | |||
end | |||
|
|||
def run | |||
migrations_path, migrations_table_suffix = Micrate::Cli.parse_command_arguments |
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.
Ditto.
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.
I just fixed it to work with latest version of micrate shard see: amberframework/micrate@af301fc
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.
I reverted these changes, please check this PR again 😄
|
||
require "sentry" | ||
|
||
module Sentry |
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 meant to replace watch
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.
No, It's just a helper to avoid using https://github.com/TechMagister/sentry/tree/change_cli
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.
I moved this file and rename to more explicit name
@elorest This PR is removing fork as shards successfully, Also I reverted micrate changes, (using |
Please squash before merge, I did more than 20 commits because I was using github from web 😅 |
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.
Excellent work. I tested your branch and everything seems to be working.
Hey guys, can this be merged/released before crystal 0.24.0 ? |
because test_app still depends on Amber 0.3.0, which depends on kilt 0.3.3, so there is a dependency resolution problem. That test should be automatically fixed once you bump a version or prepare a new release.
This reverts commit 2bef546.
For some reason Amber Task merged here 👉 #318 needs a old version of However, this PR is working now 👍 We can figure out about updating new dependencies on future I will open a new issue about this 😉 |
* Add dependency badge * Update dependencies * Change CMD to CLI More accurate to Command Line Interface * Add sentry_command helper * Use local sentry command * Use local sentry command * Remove sentry fork * Add sentry dependency * Remove icr fork and use original repo * Update dependencies * Fix watch option * Add support for new options in Micrate::Cli * Fix wrong number of arguments for run_dbversion * Fix arguments for report_unordered_migrations * Fix & update ICR version * Update Micrate::Cli arguments * Fix micrate version * Remove parameter changes * Remove parameter changes * Moving file * Create sentry command helper * Fix require * Fix require * Update Kilt * Return old version because test_app still depends on Amber 0.3.0, which depends on kilt 0.3.3, so there is a dependency resolution problem. That test should be automatically fixed once you bump a version or prepare a new release. * Revert "Merge branch 'master' into fix-version-numbers" This reverts commit 9b27a5e, reversing changes made to b8a34f1. * Revert "Revert "Merge branch 'master' into fix-version-numbers"" This reverts commit 2bef546. * Return old version of mosop/cli
* Add dependency badge * Update dependencies * Change CMD to CLI More accurate to Command Line Interface * Add sentry_command helper * Use local sentry command * Use local sentry command * Remove sentry fork * Add sentry dependency * Remove icr fork and use original repo * Update dependencies * Fix watch option * Add support for new options in Micrate::Cli * Fix wrong number of arguments for run_dbversion * Fix arguments for report_unordered_migrations * Fix & update ICR version * Update Micrate::Cli arguments * Fix micrate version * Remove parameter changes * Remove parameter changes * Moving file * Create sentry command helper * Fix require * Fix require * Update Kilt * Return old version because test_app still depends on Amber 0.3.0, which depends on kilt 0.3.3, so there is a dependency resolution problem. That test should be automatically fixed once you bump a version or prepare a new release. * Revert "Merge branch 'master' into fix-version-numbers" This reverts commit 9b27a5e, reversing changes made to b8a34f1. * Revert "Revert "Merge branch 'master' into fix-version-numbers"" This reverts commit 2bef546. * Return old version of mosop/cli
* Add dependency badge * Update dependencies * Change CMD to CLI More accurate to Command Line Interface * Add sentry_command helper * Use local sentry command * Use local sentry command * Remove sentry fork * Add sentry dependency * Remove icr fork and use original repo * Update dependencies * Fix watch option * Add support for new options in Micrate::Cli * Fix wrong number of arguments for run_dbversion * Fix arguments for report_unordered_migrations * Fix & update ICR version * Update Micrate::Cli arguments * Fix micrate version * Remove parameter changes * Remove parameter changes * Moving file * Create sentry command helper * Fix require * Fix require * Update Kilt * Return old version because test_app still depends on Amber 0.3.0, which depends on kilt 0.3.3, so there is a dependency resolution problem. That test should be automatically fixed once you bump a version or prepare a new release. * Revert "Merge branch 'master' into fix-version-numbers" This reverts commit 943e0d1 [formerly 9b27a5e], reversing changes made to 1572211 [formerly b8a34f1]. * Revert "Revert "Merge branch 'master' into fix-version-numbers"" This reverts commit 5ce6ebc [formerly 2bef546]. * Return old version of mosop/cli Former-commit-id: 9f605f8
Description of the Change
Fix version numbers on
shard.yml
and updates dependencieshttps://shards.rocks/github/amberframework/amber
Alternate Designs
No
Benefits
No
Possible Drawbacks
No