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

Expose EmberCLI generated index.html #226

Closed
wants to merge 1 commit into from
Closed

Conversation

seanpdoyle
Copy link
Contributor

Closes #220.

Exposes new public methods for EmberCLI::App:

  • #index_html - return the EmebrCLI generated index.html string
  • #application_assets - return the EmberCLI exposes app assets
  • #vendor_assets - return the EmberCLI exposes vendor assets

Exposes new Rails helper:

  • include_ember_index_html - Renders the index.html inline.
    Replaces EmberCLI asset paths with Sprockets asset paths

Ruby support
------------

According to [these release notes][1.9.3-eol], Ruby versions prior to `2.0.x`
has been end-of-lifed.

Additionally, this codebase makes use of [(required) keyword arguments][kwargs].

From `ember-cli-rails@0.4.0` and on, we will no longer support versions of Ruby
prior to `2.1.0`.

To use `ember-cli-rails` with older versions of Ruby, try the `0.3.x` series.

[kwargs]: https://robots.thoughtbot.com/ruby-2-keyword-arguments
[1.9.3-eol]: https://www.ruby-lang.org/en/news/2015/02/23/support-for-ruby-1-9-3-has-ended/

Rails support
-------------

According to the [Rails Maintenance Policy][version-policy], Rails versions
prior to `3.2.x` have been end-of-lifed. Additionally, the `4.0.x` series no
longer receives bug fixes of any sort.

From `ember-cli-rails@0.4.0` and on, we will no longer support versions of Rails
prior to `3.2.0`, nor will we support the `4.0.x` series of releases.

To use `ember-cli-rails` with older versions of Rails, try the `0.3.x` series.

[version-policy]: http://guides.rubyonrails.org/maintenance_policy.html
end

"#{ember_path} build #{watch} --environment #{environment} --output-path #{dist_path} #{log_pipe}"
"#{ember_path} build #{watch_flag} --environment #{environment} --output-path #{dist_path} #{log_pipe}"

Choose a reason for hiding this comment

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

Line is too long. [109/80]

@seanpdoyle seanpdoyle closed this Oct 29, 2015
@seanpdoyle seanpdoyle deleted the sd-ruby-versions branch October 29, 2015 22:41
@seanpdoyle seanpdoyle restored the sd-ruby-versions branch October 29, 2015 22:41
def initialize(options)
@app = options.fetch(:app)
@sprockets = options.fetch(:sprockets)
def initialize(app:, sprockets:)

Choose a reason for hiding this comment

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

@seanpdoyle Can you explain this syntax? I've never seen arguments with colons like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're required keyword arguments.

This PR is also related.

@seanpdoyle
Copy link
Contributor Author

This is an accidental duplicate of #224

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