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

Eliminate overlapping app/assets load path #21794

Conversation

jeremy
Copy link
Member

@jeremy jeremy commented Sep 28, 2015

  • Move app/assets/manifest.js to app/assets/config/manifest.js. Avoid the suggestion that you can/should deep-link stylesheets/foo.
  • Pull in all toplevel stylesheets and JavaScripts, not just application.js and .css. Demonstrate how to use link_directory with a specified .js/.css type.
  • Fix RAILS_ENV handling in assets tests.
  • Shush warnings spam from third-party libs that distract from tests.
  • Remove the app/assets toplevel path in Drop toplevel app/assets load path sprockets-rails#277

jeremy added a commit to jeremy/sprockets-rails that referenced this pull request Sep 28, 2015
`app/assets` was added to give `manifest.js` a place to live, but it
suggests that `require 'stylesheets/foo.css'` might be the right way to
refer to `require 'foo.css'`.

We resolve the overlap and clarify that `manifest.js` is config by
moving it from `app/assets/` to `app/assets/config/`. Put it up on a
pedestal: rails/rails#21794

This reverts rails#232 and commit 39ecb27,
reversing changes made to 3a44d47.
@@ -1,4 +1,6 @@
require 'concurrent'
# FIXME: clean up warning spam from concurrent lib
Copy link
Member

Choose a reason for hiding this comment

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

I think they are already fixed. Can we just point to master branch of it just to avoid having patches on Rails?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure can.

Copy link
Member Author

Choose a reason for hiding this comment

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

The warnings are fixed, except for ruby-concurrency/concurrent-ruby#419

Copy link
Contributor

Choose a reason for hiding this comment

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

I plan to publish a new build of concurrent-ruby today. That should fix the warnings. I'll create a Rails PR pointing to the new version as soon as I do.

@jeremy jeremy force-pushed the sprockets/move-asset-manifest-from-toplevel-to-config-subdir branch from 5fd64f8 to 10b43a2 Compare September 29, 2015 00:35
@rafaelfranca
Copy link
Member

:shipit:

@@ -154,6 +154,11 @@ PATH
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)

PATH
remote: ~/source/concurrent-ruby
Copy link
Member

Choose a reason for hiding this comment

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

That doesn't sound quite right

Copy link
Member

Choose a reason for hiding this comment

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

😁

Copy link
Member Author

Choose a reason for hiding this comment

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

🚢

@jeremy jeremy force-pushed the sprockets/move-asset-manifest-from-toplevel-to-config-subdir branch from 10b43a2 to 8736357 Compare September 29, 2015 03:50
jeremy added a commit to jeremy/sprockets-rails that referenced this pull request Sep 29, 2015
Bump version to 3.0.0.beta3

`app/assets` was added to give `manifest.js` a place to live, but it
suggests that `require 'stylesheets/foo.css'` might be the right way to
refer to `require 'foo.css'`.

We resolve the overlap and clarify that `manifest.js` is config by
moving it from `app/assets/` to `app/assets/config/`. Put it up on a
pedestal: rails/rails#21794

This reverts rails#232 and commit 39ecb27,
reversing changes made to 3a44d47.
* Move `app/assets/manifest.js` to `app/assets/config/manifest.js`.
  Avoid the suggestion that you can/should deep-link `stylesheets/foo`.
* Pull in all toplevel stylesheets and JavaScripts, not just
  `application.js` and `.css`. Demonstrate how to use `link_directory`
  with a specified `.js`/`.css` type.
* Fix RAILS_ENV handling in assets tests.
* Shush warnings spam from third-party libs that distract from tests.
@jeremy jeremy force-pushed the sprockets/move-asset-manifest-from-toplevel-to-config-subdir branch from 8736357 to 20ec1e9 Compare September 29, 2015 18:57
jeremy added a commit that referenced this pull request Sep 29, 2015
…rom-toplevel-to-config-subdir

Eliminate overlapping `app/assets` load path
@jeremy jeremy merged commit bb25c67 into rails:master Sep 29, 2015
@jeremy jeremy deleted the sprockets/move-asset-manifest-from-toplevel-to-config-subdir branch September 29, 2015 20:22
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

4 participants