Ruby on Rails Friday, July 7, 2017

> On Jul 7, 2017, at 5:44 AM, Ralph Shnelvar <ralphs@dos32.com> wrote:
>
> Rubyonrails-talk,
>
> I commented out the line
> config.active_record.raise_in_transactional_callbacks = true
>
> and did a
> rails s
>
> And got a slew or warnings, e.g.
> WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
> on line 10 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate'
> from line 17 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecate.scss, in `_bourbon-deprecate-for-prefixing'
> from line 422 of /home/real-estate-data-mining/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/bourbon-4.3.4/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `box-sizing'
> from line 13 of /home/zoom-out-001/app/assets/stylesheets/style.scss
> from line 24 of /home/zoom-out-001/app/assets/stylesheets/application.css.scss
>
> I then ran
> bundle update
> reran
> rails s
>
> And the warnings went away.
>
> Hence the question in the subject line: Does application.rb interact with bundle update?

Not as such. You are seeing the result of running bundle update without any arguments -- it seeks out updates to every gem in your application. You should actually only run bundle update with arguments unless you have specified a version or version range for every gem in your Gemfile, because you can end up with a combination of gem versions that, while they may _say_ that they are compatible, are not, and have a heck of a time getting back to a running app. Better to say bundle update autoprefixer, which will give you updates for that gem and any of its dependencies. Then run your tests again to make sure everything is still good.

Walter

>
>
> Ralph Shnelvar
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1835888511.20170707034423%40dos32.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/FE8D6070-6215-44E9-8E6C-15334C6EC275%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment