aranha-parsers 0.23.0 → 0.23.1

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: 29047ecc46278ee7a2a65dbd78f68e02274cbff544eb40c975468ce0f5e01111
4
- data.tar.gz: b99153904aab532fae9fe1bb2e73b6e21b69a0650bebb80cf8c1e6d20edb8b2c
3
+ metadata.gz: 6a199311d583a58c2c57bd9440cf4427cacb84b2dea969c576f1be3e0fba1a33
4
+ data.tar.gz: 6f8ec7116bdeca022910267fcc27ebd64295fd70f93f99ceb0d409859c64601e
5
5
  SHA512:
6
- metadata.gz: c5292e264c641a4fd05d44f1799abe47c2a9672de472bcbeca7fe1f9de60b94c4e6ce0b33029736c906f4043df14c4be47a39b98150c68db9a91bfd57d7b1f90
7
- data.tar.gz: f2b9d85ea85c9902fb9ebbcfc2f2cc80fc66711fb93ebc569b9e32e7e5e007ea1917c707211919aa85125970449ebf07472df9cc3efd735288da6a6adbf129e6
6
+ metadata.gz: 75994fd4861bf9dab93c2fa9196ebb022004c9dcdc2d88702385d62d0b55fb81b985df82b42d980decd410e5c8d0dd8664e0e3bfe9b83c27f056f560b61da247
7
+ data.tar.gz: 5798eebdd9d63c3cd6717bbc33a58feec336e0d033df20181db42a49fb19b70e01b7264d8cdaa303bb1c649ed950d64793b612425ada4d65f29afeb1c84b7f64
@@ -58,7 +58,7 @@ module Aranha
58
58
 
59
59
  def content
60
60
  request = http_request
61
- request.response.body_str
61
+ request.response.body_str!
62
62
  rescue ::EacEnvs::Http::Error => e
63
63
  raise ::Aranha::Parsers::SourceAddress::FetchContentError, e.message, request
64
64
  end
@@ -38,12 +38,14 @@ module Aranha
38
38
  @final_url
39
39
  end
40
40
 
41
+ # @return [String]
42
+ # @raise [Aranha::Parsers::SourceAddress::FetchContentError]
41
43
  def content
42
44
  request = ::EacEnvs::Http::Request.new.url(url).retry(true).follow_redirect(true)
43
45
  .header('user-agent', self.class.name)
44
- request.response.body_str
46
+ request.response.body_str!
45
47
  rescue ::EacEnvs::Http::Error => e
46
- raise ::Aranha::Parsers::SourceAddress::FetchContentError, e.message, request
48
+ raise ::Aranha::Parsers::SourceAddress::FetchContentError.new(e.message, request)
47
49
  end
48
50
 
49
51
  def serialize
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aranha
4
4
  module Parsers
5
- VERSION = '0.23.0'
5
+ VERSION = '0.23.1'
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.23.0
4
+ version: 0.23.1
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: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -50,48 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.5'
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: 0.5.1
57
- type: :runtime
58
- prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '0.5'
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: 0.5.1
67
- - !ruby/object:Gem::Dependency
68
- name: eac_ruby_gem_support
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '0.10'
53
+ version: '0.6'
74
54
  type: :runtime
75
55
  prerelease: false
76
56
  version_requirements: !ruby/object:Gem::Requirement
77
57
  requirements:
78
58
  - - "~>"
79
59
  - !ruby/object:Gem::Version
80
- version: '0.10'
60
+ version: '0.6'
81
61
  - !ruby/object:Gem::Dependency
82
62
  name: eac_ruby_utils
83
63
  requirement: !ruby/object:Gem::Requirement
84
64
  requirements:
85
65
  - - "~>"
86
66
  - !ruby/object:Gem::Version
87
- version: '0.122'
67
+ version: '0.123'
88
68
  type: :runtime
89
69
  prerelease: false
90
70
  version_requirements: !ruby/object:Gem::Requirement
91
71
  requirements:
92
72
  - - "~>"
93
73
  - !ruby/object:Gem::Version
94
- version: '0.122'
74
+ version: '0.123'
95
75
  - !ruby/object:Gem::Dependency
96
76
  name: nokogiri
97
77
  requirement: !ruby/object:Gem::Requirement
@@ -132,14 +112,14 @@ dependencies:
132
112
  requirements:
133
113
  - - "~>"
134
114
  - !ruby/object:Gem::Version
135
- version: '0.9'
115
+ version: '0.10'
136
116
  type: :development
137
117
  prerelease: false
138
118
  version_requirements: !ruby/object:Gem::Requirement
139
119
  requirements:
140
120
  - - "~>"
141
121
  - !ruby/object:Gem::Version
142
- version: '0.9'
122
+ version: '0.10'
143
123
  description:
144
124
  email:
145
125
  executables: []