teodoro 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/teodoro/xml.rb CHANGED
@@ -10,6 +10,8 @@ module Teodoro
10
10
 
11
11
  public
12
12
 
13
+ extend Forwardable
14
+
13
15
  def [](*path)
14
16
  node_set = xml.css("*/#{path.join('/')}")
15
17
 
@@ -27,5 +29,9 @@ module Teodoro
27
29
  def *(path) # rubocop:disable Naming/BinaryOperatorParameterName
28
30
  xml.css("*/#{path}").map { |node| self.class.new(Nokogiri::XML(node.to_s)) }
29
31
  end
32
+
33
+ def css(path)
34
+ xml.css(path)
35
+ end
30
36
  end
31
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clavius Tales
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri