aranha-parsers 0.22.0 → 0.23.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: d2ddf8d96b3eb46a3690802194d7bac810d77955dc2f79e6c0329c80ef326592
4
- data.tar.gz: 7caeceb58462533b58c9976ed6ab942f995a8756d4db00ff50f61fd730f98735
3
+ metadata.gz: 29047ecc46278ee7a2a65dbd78f68e02274cbff544eb40c975468ce0f5e01111
4
+ data.tar.gz: b99153904aab532fae9fe1bb2e73b6e21b69a0650bebb80cf8c1e6d20edb8b2c
5
5
  SHA512:
6
- metadata.gz: 394353da9e1e5859005fcb65104629535162e9a89d2acf70c515f71358e2fca7b1291b6210549f4f1f9d64577aaef6a947670f8ae1903af4f16af1ade346c4ca
7
- data.tar.gz: 0bba5dff7e92e219a978f4708ccaa083a208671c0a810ad204da7397760e633645228aa2ddb718d33e508ca76ca8cb3da6f7c3f1b043a5d6d241c6d3cf2b8e37
6
+ metadata.gz: c5292e264c641a4fd05d44f1799abe47c2a9672de472bcbeca7fe1f9de60b94c4e6ce0b33029736c906f4043df14c4be47a39b98150c68db9a91bfd57d7b1f90
7
+ data.tar.gz: f2b9d85ea85c9902fb9ebbcfc2f2cc80fc66711fb93ebc569b9e32e7e5e007ea1917c707211919aa85125970449ebf07472df9cc3efd735288da6a6adbf129e6
@@ -45,8 +45,17 @@ module Aranha
45
45
  @content ||= log_content(source_address_content)
46
46
  end
47
47
 
48
+ # @return [String, nil]
49
+ def content_encoding
50
+ nil
51
+ end
52
+
48
53
  # @return [String]
49
- delegate :content, to: :source_address, prefix: true
54
+ def source_address_content
55
+ source_address.content.then do |r|
56
+ content_encoding.if_present(r) { |v| r.force_encoding(v) }
57
+ end
58
+ end
50
59
 
51
60
  private
52
61
 
@@ -15,7 +15,7 @@ module Aranha
15
15
  end
16
16
 
17
17
  def initialize(source)
18
- super source.to_s.gsub(/\A#{Regexp.quote(SCHEME)}/, '')
18
+ super(source.to_s.gsub(/\A#{Regexp.quote(SCHEME)}/, ''))
19
19
  end
20
20
 
21
21
  def url
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.22.0'
5
+ VERSION = '0.23.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.22.0
4
+ version: 0.23.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-11-18 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '2.8'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 2.8.5
36
+ version: 2.8.7
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,47 +43,55 @@ dependencies:
43
43
  version: '2.8'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.8.5
46
+ version: 2.8.7
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_envs-http
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.4'
53
+ version: '0.5'
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: 0.4.1
56
+ version: 0.5.1
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '0.4'
63
+ version: '0.5'
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 0.4.1
66
+ version: 0.5.1
67
67
  - !ruby/object:Gem::Dependency
68
- name: eac_ruby_utils
68
+ name: eac_ruby_gem_support
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.119'
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 0.119.2
73
+ version: '0.10'
77
74
  type: :runtime
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
80
77
  requirements:
81
78
  - - "~>"
82
79
  - !ruby/object:Gem::Version
83
- version: '0.119'
84
- - - ">="
80
+ version: '0.10'
81
+ - !ruby/object:Gem::Dependency
82
+ name: eac_ruby_utils
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.122'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
85
93
  - !ruby/object:Gem::Version
86
- version: 0.119.2
94
+ version: '0.122'
87
95
  - !ruby/object:Gem::Dependency
88
96
  name: nokogiri
89
97
  requirement: !ruby/object:Gem::Requirement
@@ -93,7 +101,7 @@ dependencies:
93
101
  version: '1.15'
94
102
  - - ">="
95
103
  - !ruby/object:Gem::Version
96
- version: 1.15.4
104
+ version: 1.15.6
97
105
  type: :runtime
98
106
  prerelease: false
99
107
  version_requirements: !ruby/object:Gem::Requirement
@@ -103,7 +111,7 @@ dependencies:
103
111
  version: '1.15'
104
112
  - - ">="
105
113
  - !ruby/object:Gem::Version
106
- version: 1.15.4
114
+ version: 1.15.6
107
115
  - !ruby/object:Gem::Dependency
108
116
  name: ofx-parser
109
117
  requirement: !ruby/object:Gem::Requirement