eyeliner 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eyeliner/version.rb +1 -1
- data/lib/eyeliner.rb +2 -1
- data/spec/eyeliner_spec.rb +1 -1
- metadata +4 -4
data/lib/eyeliner/version.rb
CHANGED
data/lib/eyeliner.rb
CHANGED
@@ -76,7 +76,8 @@ class Eyeliner
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def read_stylesheet(name)
|
79
|
-
|
79
|
+
name_without_query = name.sub(%r{\?.*}, '')
|
80
|
+
full_path = File.join(@eyeliner.stylesheet_base, name_without_query)
|
80
81
|
File.read(full_path)
|
81
82
|
end
|
82
83
|
|
data/spec/eyeliner_spec.rb
CHANGED
@@ -176,7 +176,7 @@ describe Eyeliner do
|
|
176
176
|
@input = <<-HTML
|
177
177
|
<html>
|
178
178
|
<head>
|
179
|
-
<link rel="stylesheet" href="styles.css" type="text/css" />
|
179
|
+
<link rel="stylesheet" href="styles.css?version=123" type="text/css" />
|
180
180
|
</head>
|
181
181
|
<body class="email">
|
182
182
|
<h1>Hello</h1>
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: eyeliner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mike Williams
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-07-
|
14
|
+
date: 2011-07-19 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nokogiri
|
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
hash: -
|
70
|
+
hash: -2830479909873352028
|
71
71
|
segments:
|
72
72
|
- 0
|
73
73
|
version: "0"
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
hash: -
|
79
|
+
hash: -2830479909873352028
|
80
80
|
segments:
|
81
81
|
- 0
|
82
82
|
version: "0"
|