inline_styles_mailer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,2 @@
1
+ rvm:
2
+ - 1.9.2
data/README.md CHANGED
@@ -1,16 +1,51 @@
1
- ## Inline Styles Mailer
1
+ ## Inline Styles Mailer [![Build Status](https://secure.travis-ci.org/billhorsman/inline_styles_mailer.png)](http://travis-ci.org/billhorsman/inline_styles_mailer)
2
2
 
3
- Using Jack Danger's excellent [Inline Styles](https://github.com/jackdanger/inline_styles) gem is even easier if you're using Rails 3.1 too.
3
+ Using Jack Danger's excellent [Inline Styles](https://github.com/jackdanger/inline_styles) gem is even easier if you're using Rails 3.1 and this gem.
4
4
 
5
5
  The Inline Styles gem helps you embed CSS styles into your markup so that you can send pretty HTML emails that won't get butchered by email clients that strip out CSS. Or, more precisely, will help reduce the amount of butchering (even with inline CSS some styles, like background images, are often cut out).
6
6
 
7
- This gem stands on the shoulder's of the [inline_styles](https://github.com/jackdanger/inline_styles) and [sass-rails](https://github.com/rails/sass-rails) gem, merely adding some code to make it more convenient to use.
7
+ This gem stands on the shoulders of the [inline_styles](https://github.com/jackdanger/inline_styles) and [sass-rails](https://github.com/rails/sass-rails) gem, merely adding some code to make it more convenient to use.
8
+
9
+ ## What do you mean, "inline style"?
10
+
11
+ Let's say you have a mail template like this:
12
+
13
+ ```html
14
+ <html>
15
+ <body>
16
+ <p>Hello World</p>
17
+ </body>
18
+ </html>
19
+ ```
20
+
21
+ And a CSS file like this:
22
+
23
+ ```css
24
+ p {
25
+ color: red;
26
+ }
27
+ ```
28
+
29
+ Then this gem will mash that all up into:
30
+
31
+ ```html
32
+ <html>
33
+ <body>
34
+ <p style="color: red;">Hello World</p>
35
+ </body>
36
+ </html>
37
+ ```
38
+
39
+ So you can keep your templates clean and take advantage of CSS preprocessing goodness if you want without compromising the portability of your HTML in various email clients.
40
+
41
+ MailChimp have a nice article: [How To Code HTML Emails](http://kb.mailchimp.com/article/how-to-code-html-emails/).
8
42
 
9
43
  ## Installation
10
44
 
11
45
  If you're using Bundler:
12
46
 
13
47
  ```ruby
48
+ source 'http://rubygems.org'
14
49
  gem 'inline_styles_mailer'
15
50
  ```
16
51
 
@@ -57,8 +92,22 @@ class FooMailer < ActionMailer::Base
57
92
  end
58
93
  ```
59
94
 
95
+ ## Rails 3.0?
96
+
97
+ Maybe. This gem might work with Rails 3.0 (or Rails 3.1 without the asset pipeline enabled) but I haven't tested it. You'd have to use the <code>stylesheet_path</code> option for starters.
98
+
99
+ ## Rails 2.3?
100
+
101
+ Unlikely. Let me know if I'm wrong.
102
+
103
+ ## Ruby 1.8.7?
104
+
105
+ Not at the moment. I needlessly make use of some Ruby 1.9.2 syntax so this isn't going to work with Ruby 1.8.7. Patches welcome!
106
+
60
107
  ## Development
61
108
 
62
109
  Questions or problems? Please post them on the [issue tracker](https://github.com/billhorsman/inline_styles_mailer/issues). You can contribute changes by forking the project and submitting a pull request. You can ensure the tests passing by running `bundle` and `rake`.
63
110
 
64
- This gem was created by Bill Horsman and is under the MIT License.
111
+ The tests also run on [Travis CI](http://travis-ci.org/#!/billhorsman/inline_styles_mailer).
112
+
113
+ This gem was created by Bill Horsman and is under the MIT License.
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  # specify any dependencies here; for example:
22
+ s.required_ruby_version = '>= 1.9.2'
22
23
  s.add_development_dependency "rspec"
23
24
  s.add_runtime_dependency "inline_styles"
24
25
  s.add_runtime_dependency "rails", "~> 3.1"
@@ -1,3 +1,3 @@
1
1
  module InlineStylesMailer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_styles_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70249576618260 !ruby/object:Gem::Requirement
16
+ requirement: &70197361758100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70249576618260
24
+ version_requirements: *70197361758100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: inline_styles
27
- requirement: &70249576617160 !ruby/object:Gem::Requirement
27
+ requirement: &70197361757240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70249576617160
35
+ version_requirements: *70197361757240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &70249576615600 !ruby/object:Gem::Requirement
38
+ requirement: &70197361756400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.1'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70249576615600
46
+ version_requirements: *70197361756400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sass-rails
49
- requirement: &70249576614380 !ruby/object:Gem::Requirement
49
+ requirement: &70197361755480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70249576614380
57
+ version_requirements: *70197361755480
58
58
  description: Convenient use of inline_styles gem with Rails 3.1
59
59
  email:
60
60
  - bill@logicalcobwebs.com
@@ -65,6 +65,7 @@ files:
65
65
  - .gitignore
66
66
  - .rspec
67
67
  - .rvmrc
68
+ - .travis.yml
68
69
  - CHANGELOG.md
69
70
  - Gemfile
70
71
  - LICENSE
@@ -94,10 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
95
  requirements:
95
96
  - - ! '>='
96
97
  - !ruby/object:Gem::Version
97
- version: '0'
98
- segments:
99
- - 0
100
- hash: 1023047105202860642
98
+ version: 1.9.2
101
99
  required_rubygems_version: !ruby/object:Gem::Requirement
102
100
  none: false
103
101
  requirements:
@@ -106,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
104
  version: '0'
107
105
  segments:
108
106
  - 0
109
- hash: 1023047105202860642
107
+ hash: 1994760373707209580
110
108
  requirements: []
111
109
  rubyforge_project: inline_styles_mailer
112
110
  rubygems_version: 1.8.10