aranha-parsers 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa915be6016406435fb47dc3eecb8901579b8c6d5b32b72a4e90b546f9213ad0
4
- data.tar.gz: 30ad5a0bd9abaf92282de9441feb949f0d83f32293cb11040f197c89246f37d4
3
+ metadata.gz: 6020b51d20ef2c677664058978015a69c4ed80c15c7c169f300acaa5b5335a22
4
+ data.tar.gz: 44bfaaa2b28b7cacd935074b9f48bfaf9cf62e9d952f2744e8bb76fe4045a72f
5
5
  SHA512:
6
- metadata.gz: 4d6c8edf3a17ceec908482b6dd9ecce69a35ab6b178e5daf44c7f55a0b3cfe2ed326ad275f02d7856a36b881e7a5261a7575fe7f1972842854b1c2c2e20b1490
7
- data.tar.gz: aa3804298dbc0540306cccc4f9546392092de04d052ab7af9c4dac17b3bc126735ae6ec79c1f9fdc062b6003a35975f71c7acb773a3aac3f79a6df01f9e50d9b
6
+ metadata.gz: f1a926d3f7b051f17ee9df3c4642fcf9cf7707c9c9c70600d9a58be63bce9f80fdc35e589c41899365a854e0c506ddcf038cb96776761c2fb0916f7acd8e84da
7
+ data.tar.gz: c27820771a1fd288597218fc7af862c43a4eed9eb3d9c87454cc4da84814b8e270782507d16a697bd42ffc85c859b1a672978fbe02401ec4978fb81eb22cbb78
@@ -25,6 +25,13 @@ module Aranha
25
25
  from_string(node.to_html)
26
26
  end
27
27
 
28
+ # @param node [String]
29
+ # @param klass [String]
30
+ # @return [String]
31
+ def xpath_contains_class(klass, node = '@class')
32
+ "contains(concat(' ', normalize-space(#{node}), ' '), ' #{klass} ')"
33
+ end
34
+
28
35
  # @param haystack [String]
29
36
  # @param needle [String]
30
37
  # @return [String]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.20.0'
5
+ VERSION = '0.21.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aranha-parsers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -50,20 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.3'
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: 0.3.2
53
+ version: '0.4'
57
54
  type: :runtime
58
55
  prerelease: false
59
56
  version_requirements: !ruby/object:Gem::Requirement
60
57
  requirements:
61
58
  - - "~>"
62
59
  - !ruby/object:Gem::Version
63
- version: '0.3'
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: 0.3.2
60
+ version: '0.4'
67
61
  - !ruby/object:Gem::Dependency
68
62
  name: eac_ruby_utils
69
63
  requirement: !ruby/object:Gem::Requirement