pax_global_header 0000666 0000000 0000000 00000000064 13525031240 0014505 g ustar 00root root 0000000 0000000 52 comment=1c8e2762e0db697a2dbe573fe1179ab74db8fbee ruby-premailer-rails-1.10.3/ 0000775 0000000 0000000 00000000000 13525031240 0015636 5 ustar 00root root 0000000 0000000 ruby-premailer-rails-1.10.3/.coveralls.yml 0000664 0000000 0000000 00000000030 13525031240 0020422 0 ustar 00root root 0000000 0000000 service_name: travis-ci ruby-premailer-rails-1.10.3/.gitignore 0000664 0000000 0000000 00000000141 13525031240 0017622 0 ustar 00root root 0000000 0000000 *.gem doc/ Gemfile.lock coverage/ spec/rails_app/tmp/ spec/rails_app/log/ .ruby-version /.bundle ruby-premailer-rails-1.10.3/.rspec 0000664 0000000 0000000 00000000025 13525031240 0016750 0 ustar 00root root 0000000 0000000 --format doc --color ruby-premailer-rails-1.10.3/.travis.yml 0000664 0000000 0000000 00000000427 13525031240 0017752 0 ustar 00root root 0000000 0000000 sudo: false language: ruby cache: bundler script: bundle exec rspec rvm: - 2.6.1 env: matrix: - ACTION_MAILER_VERSION=4 - ACTION_MAILER_VERSION=5 - ACTION_MAILER_VERSION=master matrix: fast_finish: true allow_failures: - env: ACTION_MAILER_VERSION=master ruby-premailer-rails-1.10.3/CHANGELOG.md 0000664 0000000 0000000 00000006374 13525031240 0017461 0 ustar 00root root 0000000 0000000 # Changelog ## v1.10.3 - Remove upper version constraint for actionmailer ## v1.10.2 - Explicitly check for assets_manifest (@derekwheel, #214) ## v1.10.1 - Catch error when sprockets can't find asset (@kirs, #209) ## v1.10.0 - Drop support for hpricot now that premailer-rails also doesn't support it - Use `Rails.application.assets_manifest` instead of `Rails.application.assets` in Asset Pipeline loader (@kirs, #201) - Introduce `:strategies` config option that allows to control CSS fetching stragies ## v1.9.7 - Use `Rails.root` in `FileSystemLoader` (@stanhu, #195) ## v1.9.6 - Handle `relative_url_root` in when loading CSS from file system ## v1.9.5 - Mention license in gemspec ## v1.9.4 - Improve check for Rails module - Preserve body encoding to prevent garbled mails ## v1.9.3 - Add support for rails' `relative_url_root` config - Fix link tag removal under Hpricot - Pass url to `asset_host` if it responds to `call` - Fixed issue where urls may conflict with folder names. ## v1.9.2 - Update rails dependency to allow rails 5 ## v1.9.1 - Respect data-premailer="ignore" on link tags - Ensure content-transfer-encoding is maintained ## v1.9.0 - Improved CSS loading and caching. - Fixed incompatibility with newer rails and sprockets versions. ## v1.8.2 - `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. ## v1.8.1 - Add support for longer fingerprint generated by sprocket 3. ## v1.8.0 - `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 call `Premailer::Rails.register_interceptors` manually. ## v1.7.0 - Register preview hook for the new previewing functionality introduced in rails 4.1.0 - Add example rails application ## v1.6.1 - Remove Nokogiri unicode fix since it's working properly without it by now - Make sure html part comes before text part ## v1.6.0 - 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 ## v1.5.1 - 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 ## v1.5.0 - No longer support ruby 1.8 - Find linked stylesheets by `rel='stylesheet'` attribute instead of `type='text/css'` - Don't test hpricot on JRuby due to incompatibility ## v1.4.0 - Fix attachments ## v1.3.2 - 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` ## v1.1.0 - 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! ruby-premailer-rails-1.10.3/Gemfile 0000664 0000000 0000000 00000000712 13525031240 0017131 0 ustar 00root root 0000000 0000000 source 'https://rubygems.org' gemspec rails_version = ENV.fetch('ACTION_MAILER_VERSION', '5') if rails_version == 'master' git 'git://github.com/rails/rails.git' do gem 'rails' end gem 'sprockets-rails', github: 'rails/sprockets-rails' gem 'arel', github: 'rails/arel' else gem 'rails', "~> #{rails_version}" end gem 'byebug' platforms :rbx do gem 'rubysl' gem 'racc' end gem 'tins', '< 1.7' if RUBY_VERSION.split('.').first.to_i < 2 ruby-premailer-rails-1.10.3/LICENSE 0000664 0000000 0000000 00000002060 13525031240 0016641 0 ustar 00root root 0000000 0000000 Copyright (C) 2011-2012 Philipe Fatio (fphilipe) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ruby-premailer-rails-1.10.3/README.md 0000664 0000000 0000000 00000016503 13525031240 0017122 0 ustar 00root root 0000000 0000000 # premailer-rails CSS styled emails without the hassle. [![Build Status][build-image]][build-link] [![Gem Version][gem-image]][gem-link] [![Dependency Status][deps-image]][deps-link] [![Code Climate][gpa-image]][gpa-link] [![Coverage Status][cov-image]][cov-link] ## Introduction This gem is a drop in solution for styling HTML emails with CSS without having to do the hard work yourself. Styling emails is not just a matter of linking to a stylesheet. Most clients, especially web clients, ignore linked stylesheets or `
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.