ronin-web-server 0.1.1 → 0.1.2

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: 7641f362f496605dc130ab2e58bade6d6d22f47224f132d5c963c3f6179ff51e
4
- data.tar.gz: ee3cc24d4ecc115259754d441e2d351a9c0ca8d1490468ee993b14f8f8981967
3
+ metadata.gz: 9155c2a628bcc7700944fd70ea163cb06470f6de45820c214731b4e90d911598
4
+ data.tar.gz: d9f67cd7014a6ac39fdaf6587ecde76ca44f9a398898ab1ee215fa900518ba33
5
5
  SHA512:
6
- metadata.gz: cce961a47f97df03f1819fa8ab1f601d15a7ab1f86091eca0e6faf663813314e461bb22e458c05ca63f2b21cb5940f3272de8dffcd1515c0d0d1346b0bd43c99
7
- data.tar.gz: 57675264ab3fa96514c2330616b2e2f410e1e5fad091989fb2a062c51a126cbb4a06e7ebb77026b767c17bf54a90133ac348bd4faefdc91d0c356dcf5587ceeb
6
+ metadata.gz: ceb2d0e49978d96730d42b54a5a67a29c39a57c75f20f3bfbe1789c49aa01fc45474102b072abd244b49b92b4cdcb61d1170f1fe13de2582e2ffb25f4382ed5e
7
+ data.tar.gz: e024503b093c9c6e9a8ed8db5c6ee752c4d2fb825a50a0f5b08651707f2ae52d6eb9d493a4950566abc7f7263ffe044b180bb59a9f2bcf74cf468d68c2bf2793
@@ -12,11 +12,13 @@ jobs:
12
12
  - '3.0'
13
13
  - '3.1'
14
14
  - '3.2'
15
+ - '3.3'
16
+ - '3.4'
15
17
  - jruby
16
18
  - truffleruby
17
19
  name: Ruby ${{ matrix.ruby }}
18
20
  steps:
19
- - uses: actions/checkout@v2
21
+ - uses: actions/checkout@v4
20
22
  - name: Set up Ruby
21
23
  uses: ruby/setup-ruby@v1
22
24
  with:
@@ -31,7 +33,7 @@ jobs:
31
33
  rubocop:
32
34
  runs-on: ubuntu-latest
33
35
  steps:
34
- - uses: actions/checkout@v2
36
+ - uses: actions/checkout@v4
35
37
  - name: Set up Ruby
36
38
  uses: ruby/setup-ruby@v1
37
39
  with:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1
1
+ ruby-3.3
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.1.2 / 2025-02-14
2
+
3
+ * Use `require_relative` to improve load times.
4
+ * Documentation improvements.
5
+
1
6
  ### 0.1.1 / 2023-03-01
2
7
 
3
8
  * Correctly set the `bind` setting in {Ronin::Web::Server::Base} to ensure it
data/README.md CHANGED
@@ -9,7 +9,6 @@
9
9
  * [Issues](https://github.com/ronin-rb/ronin-web-server/issues)
10
10
  * [Documentation](https://ronin-rb.dev/docs/ronin-web-server/frames)
11
11
  * [Discord](https://discord.gg/6WAb3PsVX9) |
12
- [Twitter](https://twitter.com/ronin_rb) |
13
12
  [Mastodon](https://infosec.exchange/@ronin_rb)
14
13
 
15
14
  ## Description
@@ -183,7 +182,7 @@ gem 'ronin-web-server', '~> 0.1'
183
182
 
184
183
  ronin-web-server - A custom Ruby web server based on Sinatra.
185
184
 
186
- Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
185
+ Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
187
186
 
188
187
  ronin-web-server is free software: you can redistribute it and/or modify
189
188
  it under the terms of the GNU Lesser General Public License as published
data/gemspec.yml CHANGED
@@ -4,7 +4,7 @@ description: |
4
4
  ronin-web-server is a custom Ruby web server based on Sinatra tailored for
5
5
  security research and development.
6
6
 
7
- license: LGPL-3.0
7
+ license: LGPL-3.0-or-later
8
8
  authors: Postmodern
9
9
  email: postmodern.mod3@gmail.com
10
10
  homepage: https://ronin-rb.dev/
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/base'
21
+ require_relative 'base'
22
22
 
23
23
  module Ronin
24
24
  module Web
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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,11 +18,11 @@
18
18
  # along with ronin-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/request'
22
- require 'ronin/web/server/response'
23
- require 'ronin/web/server/routing'
24
- require 'ronin/web/server/helpers'
25
- require 'ronin/web/server/conditions'
21
+ require_relative 'request'
22
+ require_relative 'response'
23
+ require_relative 'routing'
24
+ require_relative 'helpers'
25
+ require_relative 'conditions'
26
26
 
27
27
  require 'rack'
28
28
  require 'sinatra/base'
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/request'
21
+ require_relative '../request'
22
22
 
23
23
  module Ronin
24
24
  module Web
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/response'
21
+ require_relative '../response'
22
22
 
23
23
  module Ronin
24
24
  module Web
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/reverse_proxy/request'
22
- require 'ronin/web/server/reverse_proxy/response'
23
- require 'ronin/support/network/http'
21
+ require_relative 'reverse_proxy/request'
22
+ require_relative 'reverse_proxy/response'
24
23
 
24
+ require 'ronin/support/network/http'
25
25
  require 'rack'
26
26
 
27
27
  module Ronin
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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 Web
23
23
  module Server
24
24
  # ronin-web-server version
25
- VERSION = '0.1.1'
25
+ VERSION = '0.1.2'
26
26
  end
27
27
  end
28
28
  end
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # ronin-web-server - A custom Ruby web server based on Sinatra.
4
4
  #
5
- # Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com)
5
+ # Copyright (c) 2006-2025 Hal Brodigan (postmodern.mod3 at gmail.com)
6
6
  #
7
7
  # ronin-web-server 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,8 @@
18
18
  # along with ronin-web-server. If not, see <https://www.gnu.org/licenses/>.
19
19
  #
20
20
 
21
- require 'ronin/web/server/base'
22
- require 'ronin/web/server/app'
21
+ require_relative 'server/base'
22
+ require_relative 'server/app'
23
23
 
24
24
  module Ronin
25
25
  #
@@ -34,6 +34,15 @@ module Ronin
34
34
  # @param [Hash] options
35
35
  # Additional options.
36
36
  #
37
+ # @option options [String] :host
38
+ # The host the server will listen on.
39
+ #
40
+ # @option options [Integer] :port
41
+ # The port the server will bind to.
42
+ #
43
+ # @option options [String] :server
44
+ # The Web Server to run on.
45
+ #
37
46
  # @yield [server]
38
47
  # If a block is given, it will be passed the current web server.
39
48
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-web-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 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: webrick
@@ -133,7 +133,7 @@ files:
133
133
  - ronin-web-server.gemspec
134
134
  homepage: https://ronin-rb.dev/
135
135
  licenses:
136
- - LGPL-3.0
136
+ - LGPL-3.0-or-later
137
137
  metadata:
138
138
  documentation_uri: https://ronin-rb.dev/docs/ronin-web-server
139
139
  source_code_uri: https://github.com/postmodern/ronin-web-server
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.3.26
158
+ rubygems_version: 3.5.22
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: A custom Ruby web server based on Sinatra.