rxerces 0.4.0 → 0.6.0

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.
@@ -37,6 +37,50 @@ RSpec.describe "Nokogiri compatibility" do
37
37
  end
38
38
  end
39
39
 
40
+ describe "Nokogiri::HTML" do
41
+ it "exists" do
42
+ expect(defined?(Nokogiri::HTML)).to eq('constant')
43
+ end
44
+
45
+ describe ".parse" do
46
+ it "parses HTML" do
47
+ html = '<html><body><h1>Hello</h1></body></html>'
48
+ doc = Nokogiri::HTML.parse(html)
49
+ expect(doc).to be_a(RXerces::XML::Document)
50
+ end
51
+ end
52
+ end
53
+
54
+ describe "Nokogiri.HTML" do
55
+ it "parses HTML" do
56
+ html = '<html><body><h1>Hello</h1></body></html>'
57
+ doc = Nokogiri.HTML(html)
58
+ expect(doc).to be_a(RXerces::XML::Document)
59
+ end
60
+ end
61
+
62
+ describe "Nokogiri::HTML class aliases" do
63
+ it "aliases Document" do
64
+ expect(Nokogiri::HTML::Document).to eq(RXerces::XML::Document)
65
+ end
66
+
67
+ it "aliases Node" do
68
+ expect(Nokogiri::HTML::Node).to eq(RXerces::XML::Node)
69
+ end
70
+
71
+ it "aliases Element" do
72
+ expect(Nokogiri::HTML::Element).to eq(RXerces::XML::Element)
73
+ end
74
+
75
+ it "aliases Text" do
76
+ expect(Nokogiri::HTML::Text).to eq(RXerces::XML::Text)
77
+ end
78
+
79
+ it "aliases NodeSet" do
80
+ expect(Nokogiri::HTML::NodeSet).to eq(RXerces::XML::NodeSet)
81
+ end
82
+ end
83
+
40
84
  describe "Nokogiri::XML::Document" do
41
85
  it "is an alias for RXerces::XML::Document" do
42
86
  expect(Nokogiri::XML::Document).to eq(RXerces::XML::Document)
@@ -4,7 +4,7 @@ require 'rxerces'
4
4
 
5
5
  RSpec.shared_examples RXerces do
6
6
  example 'version number is set to the expected value' do
7
- expect(RXerces::VERSION).to eq('0.4.0')
7
+ expect(RXerces::VERSION).to eq('0.6.0')
8
8
  expect(RXerces::VERSION).to be_frozen
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rxerces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -92,6 +92,13 @@ files:
92
92
  - LICENSE
93
93
  - README.md
94
94
  - Rakefile
95
+ - benchmarks/README.md
96
+ - benchmarks/css_benchmark.rb
97
+ - benchmarks/parse_benchmark.rb
98
+ - benchmarks/run_all.rb
99
+ - benchmarks/serialization_benchmark.rb
100
+ - benchmarks/traversal_benchmark.rb
101
+ - benchmarks/xpath_benchmark.rb
95
102
  - certs/djberg96_pub.pem
96
103
  - examples/basic_usage.rb
97
104
  - examples/schema_example.rb
metadata.gz.sig CHANGED
Binary file