inline_styles 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Jack Danger Canty
1
+ Copyright (c) 2011 Jack Danger Canty
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -27,7 +27,7 @@ end
27
27
  </pre>
28
28
 
29
29
  ## Requirements
30
- InlineStyles uses the [css_parser](http://github.com/DanaDanger/css_parser) and [Hpricot](http://github.com/hpricot/hpricot) gems
30
+ InlineStyles uses the [css_parser](http://github.com/DanaDanger/css_parser) and [Nokogiri](http://nokogiri.org) gems
31
31
 
32
32
  ### Copyright
33
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -0,0 +1,56 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{inline_styles}
8
+ s.version = "1.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jack Danger Canty"]
12
+ s.date = %q{2011-04-10}
13
+ s.description = %q{To make your HTML display properly when stylesheet support isn't available (e.g. Gmail) this lets you attach all your CSS to the 'style' attribute of each element.}
14
+ s.email = %q{gitcommit@6brand.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.markdown"
18
+ ]
19
+ s.files = [
20
+ "LICENSE",
21
+ "README.markdown",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "inline_styles.gemspec",
25
+ "lib/inline_styles.rb",
26
+ "test/helper.rb",
27
+ "test/test_inline_styles.rb"
28
+ ]
29
+ s.homepage = %q{http://github.com/JackDanger/inline_styles}
30
+ s.require_paths = ["lib"]
31
+ s.rubygems_version = %q{1.4.2}
32
+ s.summary = %q{Squish a CSS stylesheet into any semantic HTML}
33
+ s.test_files = [
34
+ "test/helper.rb",
35
+ "test/test_inline_styles.rb"
36
+ ]
37
+
38
+ if s.respond_to? :specification_version then
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
43
+ s.add_runtime_dependency(%q<css_parser>, [">= 0"])
44
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
45
+ else
46
+ s.add_dependency(%q<nokogiri>, [">= 0"])
47
+ s.add_dependency(%q<css_parser>, [">= 0"])
48
+ s.add_dependency(%q<shoulda>, [">= 0"])
49
+ end
50
+ else
51
+ s.add_dependency(%q<nokogiri>, [">= 0"])
52
+ s.add_dependency(%q<css_parser>, [">= 0"])
53
+ s.add_dependency(%q<shoulda>, [">= 0"])
54
+ end
55
+ end
56
+
@@ -6,6 +6,7 @@ class TestInlineStyles < Test::Unit::TestCase
6
6
  div {display: block;}
7
7
  div small {font-size: 14px}
8
8
  small {font-size: 0.7em}
9
+ #missing_element {color: #123}
9
10
  img {border: none}
10
11
  div small img {border: 1px solid #000}
11
12
  EOCSS
@@ -68,6 +69,9 @@ EOHTML
68
69
  "border: none;"
69
70
  )
70
71
  end
72
+ should "ignore styles that needn't apply" do
73
+ assert !@inline.include?("#missing_element")
74
+ end
71
75
  should "render inline html exactly as expected" do
72
76
  assert_equal <<-NEWHTML, @inline
73
77
  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_styles
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jack Danger Canty
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-20 00:00:00 -07:00
18
+ date: 2011-04-10 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -74,6 +74,7 @@ files:
74
74
  - README.markdown
75
75
  - Rakefile
76
76
  - VERSION
77
+ - inline_styles.gemspec
77
78
  - lib/inline_styles.rb
78
79
  - test/helper.rb
79
80
  - test/test_inline_styles.rb
@@ -82,8 +83,8 @@ homepage: http://github.com/JackDanger/inline_styles
82
83
  licenses: []
83
84
 
84
85
  post_install_message:
85
- rdoc_options:
86
- - --charset=UTF-8
86
+ rdoc_options: []
87
+
87
88
  require_paths:
88
89
  - lib
89
90
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  requirements: []
108
109
 
109
110
  rubyforge_project:
110
- rubygems_version: 1.3.7
111
+ rubygems_version: 1.4.2
111
112
  signing_key:
112
113
  specification_version: 3
113
114
  summary: Squish a CSS stylesheet into any semantic HTML