ronin-support-web 0.1.0.1 → 0.1.1

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: 7a22a8bad9dd4e7bf8aaa18ef69f11b647f813272b456e9aec2ee3634a59e23d
4
- data.tar.gz: 59922f669cc81a255a013a7143ec3d376605afea9022802929dc1bece49628e6
3
+ metadata.gz: e7c88ea4e411ed33939ca3bc8d2685173655ac5e4dbfd77f081b5c1fc6bd52b4
4
+ data.tar.gz: c9fe7a7c8914090ab8442173a714c23f612c6c40a3b98050cf2e6799366ff9e4
5
5
  SHA512:
6
- metadata.gz: 0feea2b24067ad3f2a7abee47a20eaee7fd9f987f72ae21e7ef582c47b269afa4efeaf01632af7cc33bb261c7ba47782f6761fa82e2c4673c837dc0b6ced3d17
7
- data.tar.gz: a1f1d5cc654f2ab2cf15a628e81250975f91374e7eab8c29dcd97e89f68531b1ccbad2508d251b4f6449ae9204f7cb78ff9b2256c974000e11c7096fb54db4b0
6
+ metadata.gz: 69cfd911ce6e6cba67bbea447e90248e69864ceee09c7d429c8455808b5ff4b0e9ab421f9719548056b7f37cd8b81e5cb0d5f7cde78b21bc6045efc156b5ad6e
7
+ data.tar.gz: 001b324d916fe70a4c012fd4bb6464c4fe6f4513e5bd809529a09079b58493ceee2384a504ecc2c6899936cb49ae054cafb77dac7e460ba2298f7b866f8d4efc
@@ -13,6 +13,7 @@ jobs:
13
13
  - '3.1'
14
14
  - '3.2'
15
15
  - '3.3'
16
+ - '3.4'
16
17
  - jruby
17
18
  # - truffleruby
18
19
  name: Ruby ${{ matrix.ruby }}
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.1.1 / 2025-02-14
2
+
3
+ * Use `require_relative` to improve load times.
4
+ * Documentation improvements.
5
+
1
6
  ### 0.1.0.1 / 2024-07-22
2
7
 
3
8
  * Require [ronin-support] ~> 1.1.
data/README.md CHANGED
@@ -298,7 +298,7 @@ gem.add_dependency 'ronin-support-web', '~> 0.1'
298
298
 
299
299
  ronin-support-web - A web support library for ronin-rb.
300
300
 
301
- Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
301
+ Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
302
302
 
303
303
  ronin-support-web is free software: you can redistribute it and/or modify
304
304
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -5,7 +5,7 @@ description: |
5
5
  ronin-support-web provides many helper methods for parsing HTML/XML,
6
6
  fetching web pages, and WebSockets.
7
7
 
8
- license: LGPL-3.0
8
+ license: LGPL-3.0-or-later
9
9
  authors: Postmodern
10
10
  email: postmodern.mod3@gmail.com
11
11
  homepage: https://ronin-rb.dev/
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/agent'
21
+ require_relative '../agent'
22
22
 
23
23
  module Ronin
24
24
  module Support
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -83,6 +83,12 @@ module Ronin
83
83
  #
84
84
  # Initializes the Web agent.
85
85
  #
86
+ # @param [Boolean] follow_redirects
87
+ # Specifies whether HTTP redirects will automatically be followed.
88
+ #
89
+ # @param [Integer] max_redirects
90
+ # The maximum number of redirects to follow. Defaults to 20.
91
+ #
86
92
  # @param [String, URI::HTTP, Addressable::URI, nil] proxy
87
93
  # The optional proxy to send requests through.
88
94
  #
@@ -1036,6 +1042,12 @@ module Ronin
1036
1042
  # @param [URI::HTTP, Addressable::URI, String] url
1037
1043
  # The URL to create the HTTP GET request for.
1038
1044
  #
1045
+ # @param [Boolean] follow_redirects
1046
+ # Overrides whether HTTP redirects will automatically be followed.
1047
+ #
1048
+ # @param [Integer] max_redirects
1049
+ # Overrides the maximum number of redirects to follow.
1050
+ #
1039
1051
  # @!macro request_kwargs
1040
1052
  #
1041
1053
  # @yield [response]
@@ -1086,6 +1098,12 @@ module Ronin
1086
1098
  # @param [URI::HTTP, Addressable::URI, String] url
1087
1099
  # The URL to create the HTTP GET request for.
1088
1100
  #
1101
+ # @option kwargs [Boolean] :follow_redirects
1102
+ # Overrides whether HTTP redirects will automatically be followed.
1103
+ #
1104
+ # @option kwargs [Integer] :max_redirects
1105
+ # Overrides the maximum number of redirects to follow.
1106
+ #
1089
1107
  # @!macro request_kwargs
1090
1108
  #
1091
1109
  # @return [Nokogiri::HTML::Document]
@@ -1119,6 +1137,12 @@ module Ronin
1119
1137
  # @param [URI::HTTP, Addressable::URI, String] url
1120
1138
  # The URL to create the HTTP GET request for.
1121
1139
  #
1140
+ # @option kwargs [Boolean] :follow_redirects
1141
+ # Overrides whether HTTP redirects will automatically be followed.
1142
+ #
1143
+ # @option kwargs [Integer] :max_redirects
1144
+ # Overrides the maximum number of redirects to follow.
1145
+ #
1122
1146
  # @!macro request_kwargs
1123
1147
  #
1124
1148
  # @return [Nokogiri::XML::Document]
@@ -1152,6 +1176,12 @@ module Ronin
1152
1176
  # @param [URI::HTTP, Addressable::URI, String] url
1153
1177
  # The URL to create the HTTP GET request for.
1154
1178
  #
1179
+ # @option kwargs [Boolean] :follow_redirects
1180
+ # Overrides whether HTTP redirects will automatically be followed.
1181
+ #
1182
+ # @option kwargs [Integer] :max_redirects
1183
+ # Overrides the maximum number of redirects to follow.
1184
+ #
1155
1185
  # @!macro request_kwargs
1156
1186
  #
1157
1187
  # @return [Hash{String => Object}, Array]
@@ -1186,6 +1216,12 @@ module Ronin
1186
1216
  # @param [URI::HTTP, Addressable::URI, String] url
1187
1217
  # The URL to create the HTTP GET request for.
1188
1218
  #
1219
+ # @param [Boolean] follow_redirects
1220
+ # Overrides whether HTTP redirects will automatically be followed.
1221
+ #
1222
+ # @param [Integer] max_redirects
1223
+ # Overrides the maximum number of redirects to follow.
1224
+ #
1189
1225
  # @!macro request_kwargs
1190
1226
  #
1191
1227
  # @yield [response]
@@ -1234,6 +1270,12 @@ module Ronin
1234
1270
  # @param [URI::HTTP, Addressable::URI, String] url
1235
1271
  # The URL to create the HTTP POST request for.
1236
1272
  #
1273
+ # @option kwargs [Boolean] :follow_redirects
1274
+ # Overrides whether HTTP redirects will automatically be followed.
1275
+ #
1276
+ # @option kwargs [Integer] :max_redirects
1277
+ # Overrides the maximum number of redirects to follow.
1278
+ #
1237
1279
  # @!macro request_kwargs
1238
1280
  #
1239
1281
  # @return [Nokogiri::HTML::Document]
@@ -1270,6 +1312,12 @@ module Ronin
1270
1312
  # @param [URI::HTTP, Addressable::URI, String] url
1271
1313
  # The URL to create the HTTP POST request for.
1272
1314
  #
1315
+ # @option kwargs [Boolean] :follow_redirects
1316
+ # Overrides whether HTTP redirects will automatically be followed.
1317
+ #
1318
+ # @option kwargs [Integer] :max_redirects
1319
+ # Overrides the maximum number of redirects to follow.
1320
+ #
1273
1321
  # @!macro request_kwargs
1274
1322
  #
1275
1323
  # @return [Nokogiri::XML::Document]
@@ -1306,6 +1354,12 @@ module Ronin
1306
1354
  # @param [URI::HTTP, Addressable::URI, String] url
1307
1355
  # The URL to create the HTTP POST request for.
1308
1356
  #
1357
+ # @option kwargs [Boolean] :follow_redirects
1358
+ # Overrides whether HTTP redirects will automatically be followed.
1359
+ #
1360
+ # @option kwargs [Integer] :max_redirects
1361
+ # Overrides the maximum number of redirects to follow.
1362
+ #
1309
1363
  # @!macro request_kwargs
1310
1364
  #
1311
1365
  # @return [Hash{String => Object}, Array]
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/html'
21
+ require_relative '../html'
22
22
 
23
23
  module Ronin
24
24
  module Support
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,10 +18,10 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/html/mixin'
22
- require 'ronin/support/web/xml/mixin'
23
- require 'ronin/support/web/agent/mixin'
24
- require 'ronin/support/web/websocket/mixin'
21
+ require_relative 'html/mixin'
22
+ require_relative 'xml/mixin'
23
+ require_relative 'agent/mixin'
24
+ require_relative 'websocket/mixin'
25
25
 
26
26
  module Ronin
27
27
  module Support
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -22,7 +22,7 @@ module Ronin
22
22
  module Support
23
23
  module Web
24
24
  # ronin-support-web version
25
- VERSION = '0.1.0.1'
25
+ VERSION = '0.1.1'
26
26
  end
27
27
  end
28
28
  end
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,9 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/websocket/socket'
22
- require 'ronin/support/web/websocket/url_methods'
21
+ require_relative 'socket'
22
+ require_relative 'url_methods'
23
+
23
24
  require 'ronin/support/network/tcp'
24
25
  require 'ronin/support/network/ssl'
25
26
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/websocket'
21
+ require_relative '../websocket'
22
22
 
23
23
  require 'uri/ws'
24
24
  require 'uri/wss'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,8 +18,9 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/websocket/socket'
22
- require 'ronin/support/web/websocket/url_methods'
21
+ require_relative 'socket'
22
+ require_relative 'url_methods'
23
+
23
24
  require 'ronin/support/network/tcp'
24
25
  require 'ronin/support/network/ssl'
25
26
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/websocket/url_methods'
21
+ require_relative 'url_methods'
22
22
 
23
23
  module Ronin
24
24
  module Support
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,9 +18,9 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/websocket/client'
22
- require 'ronin/support/web/websocket/server'
23
- require 'ronin/support/web/websocket/mixin'
21
+ require_relative 'websocket/client'
22
+ require_relative 'websocket/server'
23
+ require_relative 'websocket/mixin'
24
24
 
25
25
  require 'ronin/support/network/tcp'
26
26
  require 'ronin/support/network/ssl'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,7 +18,7 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/xml'
21
+ require_relative '../xml'
22
22
 
23
23
  module Ronin
24
24
  module Support
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-support-web - A web support library for ronin-rb.
4
4
  #
5
- # Copyright (c) 2023-2024 Hal Brodigan (postmodern.mod3@gmail.com)
5
+ # Copyright (c) 2023-2025 Hal Brodigan (postmodern.mod3@gmail.com)
6
6
  #
7
7
  # ronin-support-web is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published
@@ -18,10 +18,10 @@
18
18
  # along with ronin-support-web. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/support/web/xml'
22
- require 'ronin/support/web/html'
23
- require 'ronin/support/web/mixin'
24
- require 'ronin/support/web/version'
21
+ require_relative 'web/xml'
22
+ require_relative 'web/html'
23
+ require_relative 'web/mixin'
24
+ require_relative 'web/version'
25
25
 
26
26
  module Ronin
27
27
  module Support
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-support-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.1
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2025-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -121,7 +121,7 @@ files:
121
121
  - ronin-support-web.gemspec
122
122
  homepage: https://ronin-rb.dev/
123
123
  licenses:
124
- - LGPL-3.0
124
+ - LGPL-3.0-or-later
125
125
  metadata:
126
126
  documentation_uri: https://ronin-rb.dev/docs/ronin-support-web
127
127
  source_code_uri: https://github.com/ronin-rb/ronin-support-web
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.5.11
146
+ rubygems_version: 3.5.22
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A web support library for ronin-rb.