roadie 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog.md CHANGED
@@ -1,9 +1,15 @@
1
1
  ### dev
2
2
 
3
- [full changelog](https://github.com/Mange/roadie/compare/v1.1.2...master)
3
+ [full changelog](https://github.com/Mange/roadie/compare/v1.1.3...master)
4
4
 
5
5
  * Nothing yet
6
6
 
7
+ ### 1.1.3
8
+
9
+ [full changelog](https://github.com/Mange/roadie/compare/v1.1.2...v1.1.3)
10
+
11
+ * Do not add another ".css" to filenames if already present - [Aliaxandr (saks)](https://github.com/saks)
12
+
7
13
  ### 1.1.2
8
14
 
9
15
  [full changelog](https://github.com/Mange/roadie/compare/v1.1.1...v1.1.2)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roadie (1.1.1)
4
+ roadie (1.1.3)
5
5
  actionmailer (~> 3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
@@ -30,9 +30,11 @@ GEM
30
30
  i18n (~> 0.6)
31
31
  activesupport (3.1.0)
32
32
  multi_json (~> 1.0)
33
+ addressable (2.2.6)
33
34
  bcrypt-ruby (3.0.0)
34
35
  builder (3.0.0)
35
- css_parser (1.1.9)
36
+ css_parser (1.2.5)
37
+ addressable
36
38
  diff-lcs (1.1.3)
37
39
  erubis (2.7.0)
38
40
  hike (1.2.1)
data/README.md CHANGED
@@ -78,7 +78,7 @@ class Notifier < ActionMailer::Base
78
78
  end
79
79
  ```
80
80
 
81
- This will look for a css file called `email.css` in your `public/stylesheets` folder. The `css` method can take either a string, a symbol or an array of both. You should pass the CSS filename without the ".css" extension.
81
+ This will look for a css file called `email.css` in your `public/stylesheets` folder. The `css` method can take either a string, a symbol or an array of both. The ".css" extension will be added automatically.
82
82
 
83
83
  ### Image URL rewriting ###
84
84
 
@@ -123,6 +123,14 @@ Bugs / TODO
123
123
  * Improve overall performance
124
124
  * Clean up stylesheet assignment code
125
125
 
126
+ Getting segmentation faults or other C-like problems?
127
+ -----------------------------------------------------
128
+
129
+ 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.
130
+ Instructions on how to do this on most platforms, see [Nokogiri's official install guide](http://nokogiri.org/tutorials/installing_nokogiri.html).
131
+
132
+ 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.
133
+
126
134
  Documentation
127
135
  -------------
128
136
 
data/lib/roadie.rb CHANGED
@@ -23,7 +23,10 @@ module Roadie
23
23
 
24
24
  private
25
25
  def self.css_files_from_targets(root, targets)
26
- targets.map { |target| root.join("#{target}.css") }
26
+ targets.map do |target|
27
+ target = "#{target}.css" unless target.to_s.end_with? '.css'
28
+ root.join(target)
29
+ end
27
30
  end
28
31
  end
29
32
 
@@ -1,3 +1,3 @@
1
1
  module Roadie
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -13,6 +13,7 @@ describe Roadie do
13
13
 
14
14
  it "loads files matching the target names under root/public/stylesheets" do
15
15
  Roadie.load_css(fixtures_root, ['foo']).should == 'contents of foo'
16
+ Roadie.load_css(fixtures_root, ['foo.css']).should == 'contents of foo'
16
17
  end
17
18
 
18
19
  it "loads files in order and join them with a newline" do
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 2
10
- version: 1.1.2
5
+ version: 1.1.3
11
6
  platform: ruby
12
7
  authors:
13
8
  - Magnus Bergmark
@@ -15,7 +10,8 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-09-01 00:00:00 Z
13
+ date: 2011-09-20 00:00:00 +02:00
14
+ default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: nokogiri
@@ -25,11 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 1
31
- - 4
32
- - 4
33
24
  version: 1.4.4
34
25
  type: :runtime
35
26
  version_requirements: *id001
@@ -41,9 +32,6 @@ dependencies:
41
32
  requirements:
42
33
  - - ">="
43
34
  - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
35
  version: "0"
48
36
  type: :runtime
49
37
  version_requirements: *id002
@@ -55,10 +43,6 @@ dependencies:
55
43
  requirements:
56
44
  - - ~>
57
45
  - !ruby/object:Gem::Version
58
- hash: 7
59
- segments:
60
- - 3
61
- - 0
62
46
  version: "3.0"
63
47
  type: :runtime
64
48
  version_requirements: *id003
@@ -70,11 +54,6 @@ dependencies:
70
54
  requirements:
71
55
  - - ">="
72
56
  - !ruby/object:Gem::Version
73
- hash: 15
74
- segments:
75
- - 2
76
- - 0
77
- - 0
78
57
  version: 2.0.0
79
58
  type: :development
80
59
  version_requirements: *id004
@@ -128,6 +107,7 @@ files:
128
107
  - spec/support/have_selector_matcher.rb
129
108
  - spec/support/have_styling_matcher.rb
130
109
  - spec/support/parse_styling.rb
110
+ has_rdoc: true
131
111
  homepage: http://github.com/Mange/roadie
132
112
  licenses: []
133
113
 
@@ -141,23 +121,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
121
  requirements:
142
122
  - - ">="
143
123
  - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
146
- - 0
147
124
  version: "0"
148
125
  required_rubygems_version: !ruby/object:Gem::Requirement
149
126
  none: false
150
127
  requirements:
151
128
  - - ">="
152
129
  - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
130
  version: "0"
157
131
  requirements: []
158
132
 
159
133
  rubyforge_project:
160
- rubygems_version: 1.8.8
134
+ rubygems_version: 1.6.2
161
135
  signing_key:
162
136
  specification_version: 3
163
137
  summary: Making HTML emails comfortable for the Rails rockstars