emcee 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emcee/document.rb +11 -10
- data/lib/emcee/version.rb +1 -1
- data/test/document_test.rb +9 -14
- data/test/dummy/log/test.log +14059 -0
- data/test/dummy/tmp/cache/assets/test/sass/2505765e5337e60c61ad37feba05eaa8ae47b342/test.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/0130956d872089cd4fa2d57c1575a980 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/069d8fd6c288adff1fb286d0d6c21606 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/108bf05a6850b381294db898334ef67d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1b7d7e2b19107a97fe8848cf58c57a54 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1d7a60187eaded08c39d01faf8a23419 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2a5f4dce58244bf7ff11dbe3d7afc515 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/458351c9b3b38136f089d00567fa2ab9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/55ed67200221237d737e680c44d26a53 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/647c67d866fa7e8f94434810d4e2b4d2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/68469204e225a843ed6724382c3fe5f1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8391c1e1d3c4665ea42bedc592a7061a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/8865b0f9494de13cdba1654429db7211 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/88d5d991418d69ace2337e9eadebd140 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/97b8f5f4c23ddfb02a3af691907e15bc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b531ab2f17b1bd7ad78ebb395c4730bb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d3aec885f7ac739563d30835e6866b48 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d62af6048f647d62782174dfb26e302c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e0561b1cebd62df57d5d6ac9d2b23033 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f16d30b33e206690649697e498a2f1a8 +0 -0
- data/test/node_test.rb +11 -5
- metadata +2 -2
data/test/dummy/tmp/cache/assets/test/sass/2505765e5337e60c61ad37feba05eaa8ae47b342/test.scssc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/node_test.rb
CHANGED
@@ -5,17 +5,23 @@ class NodeTest < ActiveSupport::TestCase
|
|
5
5
|
setup do
|
6
6
|
@body = "<link rel=\"stylesheet\" href=\"test.css\">"
|
7
7
|
@document = Nokogiri::HTML.fragment(@body)
|
8
|
-
@
|
9
|
-
@node = Emcee::Node.new(@parser_node)
|
8
|
+
@node = Emcee::Node.new(@document.children.first)
|
10
9
|
end
|
11
10
|
|
12
|
-
test "should have path" do
|
11
|
+
test "should have a stylesheet path" do
|
13
12
|
assert_equal "test.css", @node.path.to_s
|
14
13
|
end
|
15
14
|
|
15
|
+
test "should have a script path" do
|
16
|
+
document = Nokogiri::HTML.fragment("<script src=\"test.js\"></script>")
|
17
|
+
node = Emcee::Node.new(document.children.first)
|
18
|
+
assert_equal "test.js", node.path.to_s
|
19
|
+
end
|
20
|
+
|
16
21
|
test "should remove itself" do
|
17
|
-
@
|
18
|
-
|
22
|
+
assert_difference "@document.children.length", -1 do
|
23
|
+
@node.remove
|
24
|
+
end
|
19
25
|
end
|
20
26
|
|
21
27
|
test "can be replaced by a <style>" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emcee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Huth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|