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

Add Rails 5 compatible version #10

Conversation

GabrielSandoval
Copy link

Changes Proposed in this Pull Request:

@@ -24,7 +24,7 @@ def destroy
job.destroy
respond_with job
else
render nothing: true, status: 404
head 404
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, if you want something more verbose: head :not_found

http://guides.rubyonrails.org/layouts_and_rendering.html#the-status-option

@@ -19,15 +19,15 @@ Gem::Specification.new do |s|

s.add_dependency "kaminari"
s.add_dependency "api-pagination"
s.add_dependency "rails", "~> 4.0"
s.add_dependency "rails", ">= 4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s.add_dependency "rails", "~> 5.0" ?

Curious, wouldn't this mean Rails 4 apps would still be able to use this version, regardless of the following alterations?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Rails 4 apps would still be compatible.

See commit 22bb65f

i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
api-pagination (4.7.0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On asyncapi-client, I have the following on my changelog:

include Rails::Paginate for api-pagination 4.5 or higher

FYI in case you're using this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have it documented on commit 3a1ab7e

Thanks for the heads up! 👍

Copy link
Contributor

@foxlance foxlance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI

@GabrielSandoval GabrielSandoval force-pushed the ae-rails_5_upgrade_dependencies-155929975 branch from 7e81f0f to ed67b92 Compare March 26, 2018 04:35
Gabriel Sandoval added 2 commits March 26, 2018 12:50
@GabrielSandoval GabrielSandoval force-pushed the ae-rails_5_upgrade_dependencies-155929975 branch 6 times, most recently from 0c8a4fc to 754508f Compare March 27, 2018 00:32
Gabriel Sandoval added 2 commits March 27, 2018 08:34
- This allows the post method to support both Rails 4 and Rails 5 versions

- On Rails 5 applications use `asyncapi_post(url, params: params)` instead of `asyncapi_post(url, params)`
@GabrielSandoval GabrielSandoval force-pushed the ae-rails_5_upgrade_dependencies-155929975 branch from 754508f to 03797af Compare March 27, 2018 00:34
Copy link
Contributor

@foxlance foxlance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kimmy kimmy changed the base branch from master to ae-rails_5_upgrade_dependencies-155929975 November 27, 2018 05:41
@kimmy kimmy merged commit 8592554 into G5:ae-rails_5_upgrade_dependencies-155929975 Nov 27, 2018
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.

None yet

3 participants