pretty_mailer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module PrettyMailer
13
13
  begin
14
14
  @doc.css(selector).each do |tag|
15
15
  tag['specificities'] = "#{tag['specificities']}#{specificity};"
16
- tag[specificity.to_s] = declarations.gsub /\s+/, ''
16
+ tag[specificity.to_s] = declarations.squeeze ' '
17
17
  end
18
18
  rescue Nokogiri::CSS::SyntaxError
19
19
  Rails.logger.debug "Ignoring invalid selector: #{selector}"
@@ -25,7 +25,7 @@ module PrettyMailer
25
25
  tags_with_specificities.each do |tag|
26
26
  specificities_on_tag(tag).each do |specificity|
27
27
  if tag['style'].blank?
28
- tag['style'] = "#{ tag[specificity] }"
28
+ tag['style'] = tag[specificity]
29
29
  else
30
30
  merge_in_styles tag, specificity
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module PrettyMailer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pretty_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-13 00:00:00.000000000 Z
12
+ date: 2013-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler