taurus 0.1.5 → 0.1.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 204e55e83ac39587ba8714718fb705a0d66d2dc3f5bc6ccc334d14e9b965b508
4
- data.tar.gz: 83f8cee64a97396718431e7a4d2d33cd2bb1efc7c0a261d37c1dd8cff420fa35
3
+ metadata.gz: 68fba60e679aed2662fe75f70ee6088d19eb69ac765b26a5a9578cb2fe9b08e6
4
+ data.tar.gz: 33cf2183616c45825f9a5b93465d1eac2bf8cff02b3c2a7668fe70b70e8a4a9e
5
5
  SHA512:
6
- metadata.gz: 5b938564cf41d4d254dacbba27b6762bfdfd93ecd12bb21379418fed6f24a9d452cb6f1c443b0bac239c37f7fe92139acfdc53f06ae02dce6c16cc2aa2f4d5ec
7
- data.tar.gz: 6d743828a9c5e3ff1612d3bfb3ea7fa6a82ccc4236213e0a08ea23549976b18d31d2a1dc47f077dd319bc58db0e48205cc2eec8261592607629f4e7081323022
6
+ metadata.gz: 9dc2b109bca0edc75b345f4b480bb02db5ae4ea01660bf8b525b0f121f6ffbb4078937abc6ba06a7c783d35a83c2a70bc790e9e538bc6ea67b813f50d6e0d0b3
7
+ data.tar.gz: ca6f3bd28838f88daa9cd17fa7f7bf51f513c23073c1a4b00aceaa0a69894ec73af984272dc3668db1ab7446e3c48454872e572c0ff424857aa1e6c3c5296a59
data/README.adoc CHANGED
@@ -397,7 +397,7 @@ bundle exec rspec spec/xml/xpath_spec.rb:42 # one example by line
397
397
  bundle exec rubocop # lint
398
398
  ----
399
399
 
400
- CI pins libtaurus to a released tag (currently v0.26.2) and builds it
400
+ CI pins libtaurus to a released tag (currently v0.26.4) and builds it
401
401
  from source on each runner; see `.github/workflows/build.yml`.
402
402
 
403
403
  == License
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Taurus
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
data/lib/taurus/xml.rb CHANGED
@@ -21,6 +21,16 @@ module Taurus
21
21
  autoload :SAX, "taurus/xml/sax"
22
22
  require "taurus/xml/c14n" # module-level helper, eager load
23
23
 
24
+ # Nokogiri-style top-level entry points (Nokogiri::XML(...) /
25
+ # Nokogiri::XML.parse). Delegates to Document.parse.
26
+ def self.parse(xml_or_io)
27
+ Document.parse(xml_or_io)
28
+ end
29
+
30
+ def self.parse_file(path)
31
+ Document.parse_file(path)
32
+ end
33
+
24
34
  class Error < StandardError; end
25
35
  class ParseError < Error; end
26
36
  class XPathError < Error; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taurus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.