ru.Bee 1.1.0 → 1.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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rubee +3 -2
  3. data/lib/Dockerfile +1 -2
  4. data/readme.md +16 -13
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7997ccfa7b0bf78ebf9c643a4ca6370263f6c4fb6be0d31125d7b22cc6cdd730
4
- data.tar.gz: bbee43a818c09cd38fc2547b3b041d8e27c3f3b969080f7de29bef4e5e489d75
3
+ metadata.gz: a3080691c90ff2c8d48ac531c6534fe29906fc5e3392b49727701e7c2989024c
4
+ data.tar.gz: d9f6579a0a1bcd26caecf0bc518a53124c9890089c059953d92e4503f7c86a8b
5
5
  SHA512:
6
- metadata.gz: 5c42d7683c253a9c49dcb74ef9ab59075a52a44c97e91c3af7630dd9ee21fef3ca1f9d1556c358fa27ae24171ea42145965e306e5e4b94da92883bdf313edbe8
7
- data.tar.gz: c3ff336841bd2de71e04702b117270e6a8b0d5eaa051ea880fc6ce5686d48dcfd8475e9ac3eab26d3d883de51334b5795d07cd27e446955e5514bf1b4656160c
6
+ metadata.gz: 9699fce90a6a07ed7190c3e89bb4f0ea3b81d63dd25423909e9a7ace756a06f9ec14f09a25e289e2638c20955eefed886ed7b33767b7afc5e454607666a6ca9b
7
+ data.tar.gz: 8ff79bc9e18a9db76ac7b0c34531d5c3b36b2e31b80e5929b304a5a79fb46560408f199b9bacaa8ea38aa0db9ca2945090380475487d332471d7590394c25fbd
data/bin/rubee CHANGED
@@ -98,7 +98,7 @@ elsif command == "project"
98
98
  gemfile = <<~GEMFILE
99
99
  source 'https://rubygems.org'
100
100
 
101
- gem 'rubee', path: '../rubee'
101
+ gem 'ru.Bee'
102
102
  gem 'sequel'
103
103
  gem 'sqlite3'
104
104
  gem 'rake'
@@ -107,6 +107,7 @@ elsif command == "project"
107
107
  gem 'pry'
108
108
  gem 'pry-byebug'
109
109
  gem 'puma'
110
+ gem 'json'
110
111
 
111
112
  group :development do
112
113
  gem 'rerun'
@@ -128,7 +129,7 @@ elsif command == "project"
128
129
 
129
130
  require 'minitest/autorun'
130
131
  require 'rack/test'
131
- require 'rubee'
132
+ require 'ru.Bee'
132
133
 
133
134
  Rubee::Autoload.call
134
135
  RUBY
data/lib/Dockerfile CHANGED
@@ -15,8 +15,7 @@ RUN bundle install
15
15
  COPY .. .
16
16
 
17
17
  # Ensure scripts are executable (after the files are copied)
18
- RUN chmod +x ./com/db
19
- RUN chmod +x ./com/rubee
18
+ RUN chmod +x ./bin/rubee
20
19
 
21
20
  # Set the environment variable RACK_ENV to production
22
21
  ENV RACK_ENV=production
data/readme.md CHANGED
@@ -1,13 +1,16 @@
1
1
  ![Tests](https://github.com/nucleom42/rubee/actions/workflows/test.yml/badge.svg)
2
2
  ![License](https://img.shields.io/github/license/nucleom42/rubee)
3
+ ![Gem](https://img.shields.io/gem/dt/ru.Bee.svg)
4
+ ![GitHub last commit](https://img.shields.io/github/last-commit/nucleom42/rubee.svg)
5
+ ![Gem](https://img.shields.io/gem/v/ru.Bee.svg)
3
6
  ![GitHub Repo stars](https://img.shields.io/github/stars/nucleom42/rubee?style=social)
4
7
 
5
8
 
6
- # <img src="images/rubee.svg" alt="Rubee" height="40"> ... ruBee
9
+ # <img src="lib/images/rubee.svg" alt="ru.Bee" height="40"> ... ru.Bee
7
10
 
8
- ruBee is a fast and lightweight Ruby application server designed for minimalism and flexibility .
11
+ ru.Bee is a fast and lightweight Ruby application server designed for minimalism and flexibility .
9
12
 
10
- The main philosophy of ruBee is to focus on Ruby language explicit implementation of the MVC web application.
13
+ The main philosophy of ru.Bee is to focus on Ruby language explicit implementation of the MVC web application.
11
14
 
12
15
  Want to get a quick API server up and runing? You can do it for real quick!
13
16
  <br />
@@ -24,7 +27,7 @@ All greaet features are yet to come!
24
27
  - **Router**: Router driven - generates all required files from the routes.
25
28
  - **Databases**: Sqlite3, Postgres, Mysql and many more supported by sequel gem.
26
29
  - **Views**: Json, ERB and plain HTML
27
- - **Bundlable** Charge your ruBee with any gem you need and update your project with bundle.
30
+ - **Bundlable** Charge your ru.Bee with any gem you need and update your project with bundle.
28
31
  - **ORM** All models are natively ORM objects, however you can use it as a blueurpint for any datasources.
29
32
  - **Authentificatable** Add JWT authentification easily to any controller action.
30
33
  - **Hooks** Add logic before, after and around any action.
@@ -33,9 +36,9 @@ All greaet features are yet to come!
33
36
 
34
37
  ## Installation
35
38
 
36
- 1. Install ruBee
39
+ 1. Install ru.Bee
37
40
  ```bash
38
- gem install rubee
41
+ gem install ru.Bee
39
42
  ```
40
43
 
41
44
  2. Create your first project
@@ -47,7 +50,7 @@ cd my_project
47
50
  3. Install dependencies
48
51
 
49
52
  ***Prerequisites***<br />
50
- **ruBee** is using **Sqlite** as a default database. However you can pick up any other database supported by sequel gem.
53
+ **ru.Bee** is using **Sqlite** as a default database. However you can pick up any other database supported by sequel gem.
51
54
  Aside that, make sure:
52
55
  **Ruby** language (3+) is installed
53
56
  **Bundler** is installed
@@ -56,7 +59,7 @@ Aside that, make sure:
56
59
  bundle install
57
60
  ```
58
61
 
59
- 4. Run ruBee server. Default port is 7000
62
+ 4. Run ru.Bee server. Default port is 7000
60
63
  ```bash
61
64
  rubee start
62
65
  ```
@@ -94,7 +97,7 @@ rubee generate get /apples
94
97
  4. Fill those files with the logic you need and run the server again!
95
98
 
96
99
  ## Model
97
- Model in ruBee is just simple ruby object that can be serilalized in the view
100
+ Model in ru.Bee is just simple ruby object that can be serilalized in the view
98
101
  in the way it required (ie json).
99
102
 
100
103
  Here below is a simple example on how it can be used by rendering json from in memory object
@@ -143,11 +146,11 @@ So in the controller you would need to query your target object now.
143
146
  ```
144
147
 
145
148
  ## Views
146
- View in ruBee is just a plain html/erb file that can be rendered from the controller.
149
+ View in ru.Bee is just a plain html/erb file that can be rendered from the controller.
147
150
 
148
151
  ## Object hooks
149
152
 
150
- In ruBee by extending Hookable module any Ruby object can be charged with hooks (logic),
153
+ In ru.Bee by extending Hookable module any Ruby object can be charged with hooks (logic),
151
154
  that can be executed before, after and around a specific method execution.
152
155
 
153
156
  Here below a controller example. However it can be used in any Ruby object, like Model etc.
@@ -225,7 +228,7 @@ class UsersController < Rubee::BaseController
225
228
  # POST /usres/logout (logout logic)
226
229
  def logout
227
230
  unauthentificate! # AuthTokenable method aimed to handle logout action.
228
- # Make sure @zeroed_token_header is passed within headers options
231
+ # Make sure @zeroed_token_header is paRssed within headers options
229
232
  response_with type: :redirect, to: "/users/login", headers: @zeroed_token_header
230
233
  end
231
234
 
@@ -265,7 +268,7 @@ rubee console # start the console
265
268
  rubee test # run all tests
266
269
  rubee test auth_tokenable_test.rb # run specific tests
267
270
  ```
268
- If you want to run any ruBee command within a specific ENV make sure you added it before a command.
271
+ If you want to run any ru.Bee command within a specific ENV make sure you added it before a command.
269
272
  For instance if you want to run console in test environment you need to run the following command
270
273
 
271
274
  ```bash
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ru.Bee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Saltykov
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-16 00:00:00.000000000 Z
10
+ date: 2025-03-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler