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

Rails 5 alpha: valid_asset_uri?': undefined methodstart_with?' for #Regexp #960

Closed
chasik opened this issue Sep 3, 2015 · 4 comments
Closed
Milestone

Comments

@chasik
Copy link

chasik commented Sep 3, 2015

With run server (rails s) get error: gems/sprockets-7b913165d54b/lib/sprockets/uri_utils.rb:75:in valid_asset_uri?': undefined methodstart_with?' for #Regexp:0x00000006e76228 (NoMethodError)

valid_asset_uri? waiting string but gets rexexp from engine.rb:8

app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular.(?:eot|svg|ttf|woff2?)$)

@chasik chasik changed the title Rails 5 alpha Rails 5 alpha: valid_asset_uri?': undefined methodstart_with?' for #Regexp Sep 3, 2015
@chasik
Copy link
Author

chasik commented Sep 3, 2015

I do not know the reason ... To get rid of the errors connected https://github.com/twbs/bootstrap-rubygem - everything works well ...

@tjgrathwell
Copy link

The cause of the error seems to be this line which adds %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$) to the assets precompile path.

At some point in the transition to Sprockets 4 adding a RegExp to the precompile list has started crashing.

@tjgrathwell
Copy link

Apparently passing a regexp into 'precompile' is deprecated.

Relevant issues are rails/sprockets#117 (sprockets) and rails/sprockets-rails#269 (sprockets-rails)

It looks like this will be fixed in bootstrap-sass if #965 is accepted

@glebm glebm added this to the v3.3.6 milestone Sep 27, 2015
@glebm
Copy link
Member

glebm commented Sep 27, 2015

Merged the PR and now testing with Rails HEAD.

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

No branches or pull requests

3 participants