oga 2.11 → 2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -389,6 +389,7 @@
389
389
 
390
390
  element_start = '<' ident_char;
391
391
  element_end = '</';
392
+ element_start_pattern = '<' identifier (':' identifier)?;
392
393
 
393
394
  # Machine used for lexing the name/namespace of an element.
394
395
  element_name := |*
@@ -551,6 +552,7 @@
551
552
  # Machine used for processing the contents of an XML element's starting tag.
552
553
  element_head := |*
553
554
  newline => advance_newline;
555
+ element_start_pattern;
554
556
 
555
557
  # Attribute names and namespaces.
556
558
  identifier ':' => {
@@ -578,6 +580,7 @@
578
580
  # tag.
579
581
  html_element_head := |*
580
582
  newline => advance_newline;
583
+ element_start_pattern;
581
584
 
582
585
  html_identifier => {
583
586
  callback(id_on_attribute, data, encoding, ts, te);
@@ -1,3 +1,3 @@
1
1
  module Oga
2
- VERSION = '2.11'
2
+ VERSION = '2.12'
3
3
  end # Oga
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.authors = ['Yorick Peterse']
7
7
  s.email = 'yorickpeterse@gmail.com'
8
8
  s.summary = 'Oga is an XML/HTML parser written in Ruby.'
9
- s.homepage = 'https://github.com/yorickpeterse/oga/'
9
+ s.homepage = 'https://gitlab.com.com/yorickpeterse/oga/'
10
10
  s.description = s.summary
11
11
  s.license = 'MPL-2.0'
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oga
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.11'
4
+ version: '2.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast
@@ -206,7 +206,7 @@ files:
206
206
  - lib/oga/xpath/lexer.rb
207
207
  - lib/oga/xpath/parser.rb
208
208
  - oga.gemspec
209
- homepage: https://github.com/yorickpeterse/oga/
209
+ homepage: https://gitlab.com.com/yorickpeterse/oga/
210
210
  licenses:
211
211
  - MPL-2.0
212
212
  metadata: {}
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.6.13
229
+ rubygems_version: 2.7.0
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Oga is an XML/HTML parser written in Ruby.