-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Bump Active Support dependency to version >= 2 #257
Conversation
@jch @simeonwillbanks 👍 ? |
Sorry, I haven't had a chance to test this on Rails 5 yet. In addition to the tests, has this been used in a production app yet? We're still using a patched version of Rails 3 and moving towards 4. |
Yes, the RedDotRubyConf webiste uses HTML::Pipeline. And I created a Rails 5 app with some specs. For tests: I can setup a test suite with https://github.com/thoughtbot/appraisal. But I am also thinking create some real apps and put them under github.com/html-pipeline organization, what do you think? |
2f93f2f
to
663a4ae
Compare
8eb4f1d
to
08915cf
Compare
@jch Please review and 🚢:shipit::heart: |
e520fa2
to
2feae00
Compare
Because Rails 3's `try` method behavior does not dance with its successors: Rails 3: "".try(:call) => NoMethodError: undefined method `call' for "emoji":String Rails 4+: "".try(:call) => nil
Rationale: rubygems/bundler#3207 39KB => 29KB
2feae00
to
7925b72
Compare
Instead of |
Thanks Bart! ❤️ Updated |
Also now running on https://thredded.org/ with Rails 5.0.0 and this PR as of this comment. |
hi there! any news? |
@jch Just so you know, this has caused muchas problemas for systems using Ruby < 2.2.2, which isn't smart enough to install activesupport v4.x:
|
@parkr good catch. This has been a frustration each time html-pipeline upgrades it's dependencies be because of it's loose constraints on versions. I proposed splitting up the gem into smaller gems to narrow down these problems in #182, but did not make any changes at the time. Could you talk more about why this is breaking for specific versions of Ruby? What workaround have you taken for it? |
Absolutely. The issue affects anyone installing
The workaround we went for is to lock down |
How about release a patch version of Jemoji that stays with Active Support 4.x and a new major version that supports Active Support 5+? 😅
If we want to remove Active Support, we need to remove all usage of Active Support across the html-pipeline gem. Otherwise html-pipeline still depend on Active Support. The barrier is the use of coverting document to hash. 😓 |
We did this, actually. GitHub Pages uses Ruby 2.1.7 in production so we locked the downgrade and all was well. It's not the end of the world, but there were a couple days where anyone using Ruby < 2.2.2 couldn't install this gem in our projects. |
Hello, Sorry, I know it's been a long time ago, but I am curious why caching hasn't been enabled before this (i.e., since December 17, 2014, when it became available to open source projects). Thank you. |
Closes #252
This Pull Request unlocks Active Support dependency to
>= 2
, so that App usedHTML::Pipeline
can upgrade to Rails 5.Changes
try
because Rails 3 behavior breaks 788a2daAppraisal Usage
$ appraisal rails-3 rake
$ appraisal rails-4 rake
$ appraisal rails-5 rake
$ appraisal rake
Exclude builds
2.2.2
, so exclude Ruby version < 2.2.2 build with Rails 5.Allowed Failures
ruby-head
is nice to pass, but failed is fine.Test with Rails 5 apps
HTML::Pipeline
works great with these Rails 5.0.0 apps: