bbserver 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 02244715c71e9fb55237c70a09d89a145b9949365a5e5d379c4f1d40d2eeeb81
4
+ data.tar.gz: 6975e80113ea1c6adfd57ea0145e5b6f8cfc9642a73713d3bc37640e24974389
5
+ SHA512:
6
+ metadata.gz: 9b21c97f518bb8759d2717db6f8e2bcd6cc703ddc11278eea249fc6bad8b429cf44ef9665d8dc66402772364d1f3fd4e673664649c2d7b68cb041d4653f147a2
7
+ data.tar.gz: 8cb7330834c359e8934e3c63e8b28dc431ed1afc130cfca1ea7cc2c860c3a4f92c2deaaba6596dba3e0dab82981ecc2c4c4a007c74011eeb168af200433cf511
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Juliano Soares da Silva
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # BBServer
2
+
3
+ A lightweight, Express-inspired HTTP server framework for Ruby, built on top of Rack.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'bbserver'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ bundle install
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```bash
22
+ gem install bbserver
23
+ ```
24
+
25
+ ## Quick Start
26
+
27
+ `bbserver` is designed to be used with any Rack-compliant server like Puma.
28
+
29
+ 1. Create your application file (e.g., `app.rb`):
30
+
31
+ ```ruby
32
+ require 'bbserver'
33
+
34
+ # Currently returns a basic "Hello BBServer" response
35
+ App = BBServer::Server.new
36
+ ```
37
+
38
+ 2. Create a `config.ru` file in the same directory:
39
+
40
+ ```ruby
41
+ require_relative 'app'
42
+ run App
43
+ ```
44
+
45
+ 3. Run your server:
46
+
47
+ ```bash
48
+ rackup config.ru
49
+ ```
50
+
51
+ ## Running Tests
52
+
53
+ This project uses RSpec for testing. To run the suite:
54
+
55
+ ```bash
56
+ rspec
57
+ ```
58
+
59
+ ## License
60
+
61
+ The gem is available as open source under the terms of the [MIT License](LICENSE).
@@ -0,0 +1,14 @@
1
+
2
+ module BBServer
3
+
4
+ class Server
5
+ def call(env)
6
+ [
7
+ 200,
8
+ { "content-type" => "text/plain" },
9
+ ["Hello BBServer"]
10
+ ]
11
+ end
12
+ end
13
+
14
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BBServer
4
+ VERSION = "0.1.0"
5
+ end
data/lib/bbserver.rb ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "zeitwerk"
4
+
5
+ loader = Zeitwerk::Loader.for_gem
6
+
7
+ loader.inflector.inflect(
8
+ "bbserver" => "BBServer"
9
+ )
10
+
11
+ loader.setup
12
+
13
+ module BBServer
14
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bbserver
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Juliano Soares da Silva
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: zeitwerk
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '2.6'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '2.6'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rack
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: rspec
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3.0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rack-test
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ description: A lightweight Rack-based web framework inspired by Express.js, designed
69
+ for simplicity and speed.
70
+ email:
71
+ - bytebytebug@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - README.md
78
+ - lib/bbserver.rb
79
+ - lib/bbserver/server.rb
80
+ - lib/bbserver/version.rb
81
+ homepage: https://github.com/bytebytebug/bbserver
82
+ licenses:
83
+ - MIT
84
+ metadata:
85
+ allowed_push_host: https://rubygems.org
86
+ homepage_uri: https://github.com/bytebytebug/bbserver
87
+ source_code_uri: https://github.com/bytebytebug/bbserver
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 3.0.0
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubygems_version: 4.0.10
103
+ specification_version: 4
104
+ summary: An express-like HTTP server for Ruby.
105
+ test_files: []