- Lazily load actionmailer (@c960657, #260)
- HTTP request for CSS files now have an
Accept: text/css
header (@ElMassimo, #261) - Added support for Propshaft (@Intrepidd, #277)
- Check if
Rails.application
is defined (@pabloh, #250)
- Remove
force_encoding!
- Remove upper version constraint for actionmailer
- Explicitly check for assets_manifest (@derekwheel, #214)
- Catch error when sprockets can't find asset (@kirs, #209)
- Drop support for hpricot now that premailer-rails also doesn't support it
- Use
Rails.application.assets_manifest
instead ofRails.application.assets
in Asset Pipeline loader (@kirs, #201) - Introduce
:strategies
config option that allows to control CSS fetching stragies
- Use
Rails.root
inFileSystemLoader
(@stanhu, #195)
- Handle
relative_url_root
in when loading CSS from file system
- Mention license in gemspec
- Improve check for Rails module
- Preserve body encoding to prevent garbled mails
- Add support for rails'
relative_url_root
config - Fix link tag removal under Hpricot
- Pass url to
asset_host
if it responds tocall
- Fixed issue where urls may conflict with folder names.
- Update rails dependency to allow rails 5
- Respect data-premailer="ignore" on link tags
- Ensure content-transfer-encoding is maintained
- Improved CSS loading and caching.
- Fixed incompatibility with newer rails and sprockets versions.
Premailer::Rails::CSSLoaders::NetworkLoader
is more resilient and works even if the Rails asset host is set without a URI scheme. (panthomakos)- Remove stylesheet links from the HTML that have been processed.
- Add support for longer fingerprint generated by sprocket 3.
ActionMailer
interceptors are registered after Rails initialization and no longer when loading this gem. If you were using this gem outside Rails, you'll need to callPremailer::Rails.register_interceptors
manually.
-
Register preview hook for the new previewing functionality introduced in rails 4.1.0
-
Add example rails application
-
Remove Nokogiri unicode fix since it's working properly without it by now
-
Make sure html part comes before text part
-
Only use asset pipeline if Rails is defined and if compile is true
-
Depend on actionmailer instead of rails
-
Check whether
::Rails
is defined before using it -
Add ability to skip premailer
-
Test against multiple action mailer versions on travis
-
Ensure CSS strings are always UTF-8 encoded
-
Require premailer version >= 1.7.9
-
Prefer precompiled assets over asset pipeline
-
Improve construction of file URL when requesting from CDN
-
No longer use open-uri
-
Remove gzip unzipping after requesting file
-
No longer support ruby 1.8
-
Find linked stylesheets by
rel='stylesheet'
attribute instead oftype='text/css'
-
Don't test hpricot on JRuby due to incompatibility
- Fix attachments
-
Rename gem to premailer-rails (drop the 3)
-
Add support for rails 4
-
Refactor code
-
Add support for precompiled assets
-
No longer include default
email.css
-
Fixed several bugs
-
Strip asset digest from CSS path
-
Improve nokogiri support
-
Request CSS file if asset is not found locally
This allows you to host all your assets on a CDN and deploy the app without the
app/assets
folder.
Thanks to everyone who contributed!