roadie 2.3.0.pre1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,9 +1,15 @@
1
1
  ### dev
2
2
 
3
- [full changelog](https://github.com/Mange/roadie/compare/v2.3.0.pre1...master)
3
+ [full changelog](https://github.com/Mange/roadie/compare/v2.3.0...master)
4
4
 
5
5
  * Nothing yet
6
6
 
7
+ ### 2.3.0
8
+
9
+ [full changelog](https://github.com/Mange/roadie/compare/v2.3.0.pre1...v2.3.0)
10
+
11
+ * Nothing, really
12
+
7
13
  ### 2.3.0.pre1
8
14
 
9
15
  [full changelog](https://github.com/Mange/roadie/compare/v2.2.0...v2.3.0.pre1)
data/Gemfile CHANGED
@@ -6,6 +6,6 @@ group :guard do
6
6
  gem 'guard-rspec'
7
7
 
8
8
  # Guard for Mac
9
- gem 'rb-fsevent'
9
+ gem 'rb-fsevent', '>= 0.9.0.pre5'
10
10
  gem 'growl'
11
11
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roadie (2.3.0.pre1)
4
+ roadie (2.3.0)
5
5
  actionmailer (> 3.0.0, < 3.3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
@@ -38,14 +38,15 @@ GEM
38
38
  activesupport (= 3.1.3)
39
39
  activesupport (3.1.3)
40
40
  multi_json (~> 1.0)
41
- addressable (2.2.6)
41
+ addressable (2.2.7)
42
42
  appraisal (0.4.0)
43
43
  bundler
44
44
  rake
45
45
  arel (2.2.1)
46
46
  builder (3.0.0)
47
- css_parser (1.2.5)
47
+ css_parser (1.2.6)
48
48
  addressable
49
+ rdoc
49
50
  diff-lcs (1.1.3)
50
51
  erubis (2.7.0)
51
52
  ffi (1.0.11)
@@ -64,7 +65,7 @@ GEM
64
65
  treetop (~> 1.4.8)
65
66
  mime-types (1.17.2)
66
67
  multi_json (1.0.4)
67
- nokogiri (1.5.0)
68
+ nokogiri (1.5.2)
68
69
  polyglot (0.3.3)
69
70
  rack (1.3.6)
70
71
  rack-cache (1.1)
@@ -91,7 +92,7 @@ GEM
91
92
  rdoc (~> 3.4)
92
93
  thor (~> 0.14.6)
93
94
  rake (0.9.2.2)
94
- rb-fsevent (0.4.3.1)
95
+ rb-fsevent (0.9.0.pre5)
95
96
  rdoc (3.12)
96
97
  json (~> 1.4)
97
98
  rspec (2.7.0)
@@ -127,6 +128,6 @@ DEPENDENCIES
127
128
  guard
128
129
  guard-rspec
129
130
  rails
130
- rb-fsevent
131
+ rb-fsevent (>= 0.9.0.pre5)
131
132
  roadie!
132
133
  rspec-rails
data/README.md CHANGED
@@ -56,10 +56,6 @@ Features
56
56
 
57
57
  ²: This might be removed in a future version, though. You really ought to create a good layout and not let Roadie guess how you want to have it structured
58
58
 
59
- ### What about Sass / Less? ###
60
-
61
- Sass is supported as long as the stylesheets are generated and stored in the asset directories. You are recommended to add a deploy task that generates the stylesheets to make sure that they are present at all times on the machine generating the emails.
62
-
63
59
  Install
64
60
  -------
65
61
 
@@ -83,6 +79,8 @@ Usage
83
79
 
84
80
  Just add a `<link rel="stylesheet" />` or `<style type="text/css"></style>` element inside your email layout and it will be inlined automatically.
85
81
 
82
+ **Note:** Do not use `stylesheet_link_tag` in your mail views. Just use a regular tag pointing to the logical asset name instead; e.g. `emails.css` instead of `emails-<SHA>.css`. This should hopefully be fixed in a later version. You are recommended to use the `:css` option to the mailer (detailed below) instead if you want to avoid problems with this.
83
+
86
84
  You can also specify the `:css` option to mailer to have it inlined automatically without you having to make a layout:
87
85
 
88
86
  ```ruby
@@ -166,20 +164,33 @@ Bugs / TODO
166
164
 
167
165
  * Improve overall performance
168
166
  * Clean up stylesheet assignment code
167
+ * Assets referenced with digest URLs should be findable
168
+ * Roadie should be able to have multiple asset providers in a specific order
169
169
 
170
- Getting segmentation faults or other C-like problems?
171
- -----------------------------------------------------
170
+ FAQ
171
+ ---
172
+
173
+ ## I'm getting segmentation faults (or other C-like problems)! What should I do? ##
172
174
 
173
175
  Roadie uses Nokogiri to parse the HTML of your email, so any C-like problems like segfaults are likely in that end. The best way to fix this is to first upgrade libxml2 on your system and then reinstall Nokogiri.
174
176
  Instructions on how to do this on most platforms, see [Nokogiri's official install guide](http://nokogiri.org/tutorials/installing_nokogiri.html).
175
177
 
176
- Note that on my Mac OS X boxes, I don't have to do it as complex as they do it in the guide since I didn't install libxslt. YMMW.
178
+ ## My `:hover` selectors don't work. How can I fix them? ##
179
+
180
+ Put any styles using `:hover` in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
181
+
182
+ ## My `@media` queries don't work. How can I fix them? ##
183
+
184
+ Put any styles using them in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
185
+
186
+ ## My vendor-specific styles don't work. How can I fix them? ##
187
+
188
+ Put any styles using them in a separate stylesheet and make sure it is ignored. (See "Ignoring stylesheets" above)
177
189
 
178
190
  Documentation
179
191
  -------------
180
192
 
181
- * [Online documentation for 2.0.0](http://rubydoc.info/gems/roadie/2.0.0/frames)
182
- * [Online documentation for 1.1.3](http://rubydoc.info/gems/roadie/1.1.3/frames)
193
+ * [Online documentation for 2.3.0](http://rubydoc.info/gems/roadie/2.3.0/frames)
183
194
  * [Online documentation for master](http://rubydoc.info/github/Mange/roadie/master/frames)
184
195
  * [Changelog](https://github.com/Mange/roadie/blob/master/Changelog.md)
185
196
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mange/Projects/roadie
3
3
  specs:
4
- roadie (2.3.0.pre1)
4
+ roadie (2.3.0)
5
5
  actionmailer (> 3.0.0, < 3.3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
@@ -37,14 +37,15 @@ GEM
37
37
  activemodel (= 3.0.11)
38
38
  activesupport (= 3.0.11)
39
39
  activesupport (3.0.11)
40
- addressable (2.2.6)
40
+ addressable (2.2.7)
41
41
  appraisal (0.4.0)
42
42
  bundler
43
43
  rake
44
44
  arel (2.0.10)
45
45
  builder (2.1.2)
46
- css_parser (1.2.5)
46
+ css_parser (1.2.6)
47
47
  addressable
48
+ rdoc
48
49
  diff-lcs (1.1.3)
49
50
  erubis (2.6.6)
50
51
  abstract (>= 1.0.0)
@@ -57,7 +58,8 @@ GEM
57
58
  mime-types (~> 1.16)
58
59
  treetop (~> 1.4.8)
59
60
  mime-types (1.17.2)
60
- nokogiri (1.5.0)
61
+ multi_json (1.1.0)
62
+ nokogiri (1.5.2)
61
63
  polyglot (0.3.3)
62
64
  rack (1.2.5)
63
65
  rack-mount (0.6.14)
@@ -94,8 +96,9 @@ GEM
94
96
  activesupport (~> 3.0)
95
97
  railties (~> 3.0)
96
98
  rspec (~> 2.7.0)
97
- sprockets (2.1.2)
99
+ sprockets (2.3.1)
98
100
  hike (~> 1.2)
101
+ multi_json (~> 1.0)
99
102
  rack (~> 1.0)
100
103
  tilt (~> 1.1, != 1.3.0)
101
104
  thor (0.14.6)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mange/Projects/roadie
3
3
  specs:
4
- roadie (2.3.0.pre1)
4
+ roadie (2.3.0)
5
5
  actionmailer (> 3.0.0, < 3.3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
@@ -38,14 +38,15 @@ GEM
38
38
  activesupport (= 3.1.3)
39
39
  activesupport (3.1.3)
40
40
  multi_json (~> 1.0)
41
- addressable (2.2.6)
41
+ addressable (2.2.7)
42
42
  appraisal (0.4.0)
43
43
  bundler
44
44
  rake
45
45
  arel (2.2.1)
46
46
  builder (3.0.0)
47
- css_parser (1.2.5)
47
+ css_parser (1.2.6)
48
48
  addressable
49
+ rdoc
49
50
  diff-lcs (1.1.3)
50
51
  erubis (2.7.0)
51
52
  hike (1.2.1)
@@ -57,7 +58,7 @@ GEM
57
58
  treetop (~> 1.4.8)
58
59
  mime-types (1.17.2)
59
60
  multi_json (1.0.4)
60
- nokogiri (1.5.0)
61
+ nokogiri (1.5.2)
61
62
  polyglot (0.3.3)
62
63
  rack (1.3.6)
63
64
  rack-cache (1.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mange/Projects/roadie
3
3
  specs:
4
- roadie (2.3.0.pre1)
4
+ roadie (2.3.0)
5
5
  actionmailer (> 3.0.0, < 3.3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
@@ -39,14 +39,15 @@ GEM
39
39
  activesupport (3.2.0.rc1)
40
40
  i18n (~> 0.6)
41
41
  multi_json (~> 1.0)
42
- addressable (2.2.6)
42
+ addressable (2.2.7)
43
43
  appraisal (0.4.0)
44
44
  bundler
45
45
  rake
46
46
  arel (3.0.0.rc1)
47
47
  builder (3.0.0)
48
- css_parser (1.2.5)
48
+ css_parser (1.2.6)
49
49
  addressable
50
+ rdoc
50
51
  diff-lcs (1.1.3)
51
52
  erubis (2.7.0)
52
53
  hike (1.2.1)
@@ -59,7 +60,7 @@ GEM
59
60
  treetop (~> 1.4.8)
60
61
  mime-types (1.17.2)
61
62
  multi_json (1.0.4)
62
- nokogiri (1.5.0)
63
+ nokogiri (1.5.2)
63
64
  polyglot (0.3.3)
64
65
  rack (1.3.6)
65
66
  rack-cache (1.1)
@@ -1,3 +1,3 @@
1
1
  module Roadie
2
- VERSION = '2.3.0.pre1'
2
+ VERSION = '2.3.0'
3
3
  end
@@ -51,7 +51,7 @@ describe Roadie::Inliner do
51
51
  it "combines multiple selectors into one" do
52
52
  use_css 'p { color: green; }
53
53
  .tip { float: right; }'
54
- rendering('<p class="tip"></p>').should have_styling('color' => 'green', 'float' => 'right')
54
+ rendering('<p class="tip"></p>').should have_styling([['color', 'green'], ['float', 'right']])
55
55
  end
56
56
 
57
57
  it "uses the attributes with the highest specificity when conflicts arises" do
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.pre1
5
- prerelease: 6
4
+ version: 2.3.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Magnus Bergmark
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-04 00:00:00.000000000Z
12
+ date: 2012-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70348227069780 !ruby/object:Gem::Requirement
16
+ requirement: &70286498619780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70348227069780
24
+ version_requirements: *70286498619780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: css_parser
27
- requirement: &70348227069320 !ruby/object:Gem::Requirement
27
+ requirement: &70286498618020 !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: *70348227069320
35
+ version_requirements: *70286498618020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionmailer
38
- requirement: &70348227068760 !ruby/object:Gem::Requirement
38
+ requirement: &70286498616720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>'
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 3.3.0
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70348227068760
49
+ version_requirements: *70286498616720
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: sprockets
52
- requirement: &70348227068080 !ruby/object:Gem::Requirement
52
+ requirement: &70286498631180 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *70348227068080
60
+ version_requirements: *70286498631180
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rails
63
- requirement: &70348227067600 !ruby/object:Gem::Requirement
63
+ requirement: &70286498625240 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70348227067600
71
+ version_requirements: *70286498625240
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: rspec-rails
74
- requirement: &70348227008540 !ruby/object:Gem::Requirement
74
+ requirement: &70286498624180 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70348227008540
82
+ version_requirements: *70286498624180
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: appraisal
85
- requirement: &70348227008120 !ruby/object:Gem::Requirement
85
+ requirement: &70286498623560 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70348227008120
93
+ version_requirements: *70286498623560
94
94
  description: Roadie tries to make sending HTML emails a little less painful in Rails
95
95
  3 by inlining stylesheets and rewrite relative URLs for you.
96
96
  email:
@@ -168,16 +168,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  segments:
170
170
  - 0
171
- hash: -3727812369412640023
171
+ hash: -3760537061728724086
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
175
- - - ! '>'
175
+ - - ! '>='
176
176
  - !ruby/object:Gem::Version
177
- version: 1.3.1
177
+ version: '0'
178
+ segments:
179
+ - 0
180
+ hash: -3760537061728724086
178
181
  requirements: []
179
182
  rubyforge_project:
180
- rubygems_version: 1.8.10
183
+ rubygems_version: 1.8.15
181
184
  signing_key:
182
185
  specification_version: 3
183
186
  summary: Making HTML emails comfortable for the Rails rockstars