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

Testing against other jruby versions #476

Closed

Conversation

williamweckl
Copy link

@williamweckl williamweckl commented Aug 6, 2016

The only obstacle to upgrade the gem to Rails 5 is passing in jruby tests. Since the tests are running with an old jruby version, I made this poc to see if it passes in newer versions.

seanpdoyle and others added 19 commits July 8, 2016 14:36
Closes [tricknotes#376].

Required changes
----------------

Run test suite against the latest `5.0.0.betaX` and `master` branches of
[`rails/rails`][rails].

Since `EmberController` extends `ApplicationController`, which can now
extend from either `ActionController::Base` (which implements
`helper_method`) and `ActionController::API` (which doesn't implement
`helper_method`), we can't depend on that API existing.

Remove call to `helper_method` from `EmberController`, as it is no
longer supported.

Support changes
---------------

Rails 5 depends on `[email protected]`, which **requires** Ruby `2.2.2` or
greater.

In order to support Rails 5, we will no longer support versions of Ruby
prior to `2.2.2`.

[tricknotes#376]: tricknotes#376
[rails]: https://github.com/rails/rails
* Don't overwrite `gemfiles/` changes with `appraisal install`
* Localize Ember setup to `bin/setup_ember`
* Always invoke, let `bin/setup_ember` decide whether or not to no-op
The `EmberCli::EmberController` used to inherit from
`ApplicationController` in order to reap the benefits of
application-wide configurations and behavior (such as
authentication-based `before_action` calls and other macros).

Unfortunately, with the introduction of Rails 5's `rails new --api`,
applications' `ApplicationController` can now inherit from
[`ActionController::API`][api], which doesn't serve HTML by default.

To support Rails 5's default `--api` behavior,
`EmberCli::EmberController` must inherit from `ActionController::Base`,
forcing the controller to forfeit all the benefits of sharing behavior
with `ApplicationController`.

[api]: http://edgeapi.rubyonrails.org/classes/ActionController/API.html
```
Ruby 2.2+ has removed test/unit from the core library. Rails requires
this as a dependency. Please add test-unit gem to your Gemfile:
`gem 'test-unit', '~> 3.0'` (cannot load such file -- test/unit)"
```
@seanpdoyle seanpdoyle force-pushed the sd-rails-5 branch 3 times, most recently from ceed542 to 876720b Compare August 10, 2016 15:08
@seanpdoyle
Copy link
Contributor

Thanks for getting this started.

There have been some changes to our CI setup in the mean time, could you rebase off the latest master and push again?

@seanpdoyle
Copy link
Contributor

I'm sorry that this has sat for so long.

The failing CI test suite has been corrected.

Could you please rebase off of master?

@tricknotes tricknotes deleted the branch tricknotes:sd-rails-5 October 8, 2024 13:58
@tricknotes tricknotes closed this Oct 8, 2024
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.

3 participants