lesli_bell 1.0.0 → 1.0.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: a314f359bb1e0ef4d971fc23128c7b57e6e02655f6ce248d26539331e10affcc
4
- data.tar.gz: 5a5f4327f3c7a2f34da5068746a0cec6648dca0579355eecb5f5f8bce5dfa0ed
3
+ metadata.gz: 5a4dee8fc902a97c53747e95dae3ae04957ae41537bfd2e51212b641811a5dcc
4
+ data.tar.gz: c1c5174fc3597fe9af63c560d16f3eb73abdf33b577a6e7453838ef5dfb0e1d8
5
5
  SHA512:
6
- metadata.gz: 01d5550b5e3a873cd3046008189346601c5996528ca010ed2d16231a44e5a2ade357337022721c40df8cf48c9f41de587a889392665fc76e12a0f6d6f2d1e45f
7
- data.tar.gz: 90db0aad0cf9b93eabca7c42a597478a357e49bf94e11fdac550a7e04dee37f20b3be10bdaf52db6be69996b9b74cab49892e3dbd822a84065394ad9b4b80bb2
6
+ metadata.gz: b10b26e3092d91f6df492cb0157f0712c401cefb9867a53bd6f1301a5a2a20aae205782c84bc6823c41aa649d7d6bcc6ea2cea85475edc05b08e9071faeea037
7
+ data.tar.gz: 53dbe5510e84c1d43e8b21088d5bec90d0cc74a57916a86d84dc40e60e8f315fdcd4dd074e5544eb2fcf13255eee0fe11eb469cbbdd35912d8f5efe794e2cd49
@@ -4,7 +4,7 @@ module LesliBell
4
4
 
5
5
  # GET /notifications
6
6
  def index
7
- @notifications = respond_as_pagination(NotificationService.new(current_user, query).index)
7
+ @notifications = respond_with_pagination(NotificationService.new(current_user, query).index)
8
8
  end
9
9
 
10
10
  # GET /notifications/1
@@ -33,7 +33,7 @@ module LesliBell
33
33
  # PATCH/PUT /notifications/1
34
34
  def update
35
35
  NotificationService.new(current_user).read(params[:id])
36
- @notifications = respond_as_pagination(NotificationService.new(current_user, query).index)
36
+ @notifications = respond_with_pagination(NotificationService.new(current_user, query).index)
37
37
  render :index
38
38
  end
39
39
 
@@ -4,7 +4,7 @@ module LesliBell
4
4
  belongs_to :user, class_name: "::Lesli::User"
5
5
  has_many :users #, class_name: "::Lesli::User"
6
6
 
7
- enum category: {
7
+ enum :category, {
8
8
  :info => 'info',
9
9
  :danger => 'danger',
10
10
  :warning => 'warning',
@@ -32,9 +32,6 @@ Building a better future, one line of code at a time.
32
32
 
33
33
  module LesliBell
34
34
  class Dashboard < Lesli::Shared::Dashboard
35
- self.table_name = "lesli_bell_dashboards"
36
- belongs_to :account
37
-
38
35
  COMPONENTS = %i[]
39
36
  end
40
37
  end
@@ -70,7 +70,7 @@ border: 2px solid hsl(var(--bulma-notification-h), var(--bulma-notification-s),
70
70
  class: "button is-small is-#{notification[:category]}",
71
71
  form: { class: "delete" }) do %>
72
72
  <span class="icon">
73
- <span class="material-icons">close</span>
73
+ <span class="material-symbols">close</span>
74
74
  </span>
75
75
  <% end %>
76
76
 
data/config/routes.rb CHANGED
@@ -31,7 +31,7 @@ Building a better future, one line of code at a time.
31
31
  =end
32
32
 
33
33
  LesliBell::Engine.routes.draw do
34
- Lesli::Routing.mount_dashboard_for(LesliBell)
34
+ Lesli::Router.mount_lesli_engine_routes(self)
35
35
  resources :notifications, only: [:index, :new, :update]
36
36
  resources :announcements, only: [:index]
37
37
  end
@@ -1,4 +1,4 @@
1
1
  module LesliBell
2
- VERSION = "1.0.0"
3
- BUILD = "1752635550"
2
+ VERSION = "1.0.1"
3
+ BUILD = "1771710537"
4
4
  end
data/readme.md CHANGED
@@ -1,36 +1,42 @@
1
- <div align="center" class="documentation-header">
1
+ <div align="center">
2
2
  <img width="100" alt="LesliBell logo" src="./app/assets/images/lesli_bell/bell-logo.svg" />
3
- <h3 align="center">Notifications & Announcements System for the Lesli Framework.</h3>
3
+ <h3 align="center">Notifications & Announcements for the Lesli Framework.</h3>
4
4
  </div>
5
5
 
6
-
7
6
  <br />
8
7
  <hr/>
9
8
 
10
- <div align="center" class="documentation-statics">
11
- <a target="blank" href="https://rubygems.org/gems/lesli">
12
- <img height="22" alt="Gem Version" src="https://badge.fury.io/rb/lesli.svg"/>
9
+ <div align="center">
10
+ <a target="_blank" href="https://github.com/LesliTech/LesliBell/actions">
11
+ <img alt="Tests passing" src="https://img.shields.io/badge/Tests-passing-green?style=for-the-badge&logo=github">
13
12
  </a>
14
- <a class="mx-2" href="https://codecov.io/github/LesliTech/Lesli">
15
- <img height="22" src="https://codecov.io/github/LesliTech/Lesli/graph/badge.svg?token=2O12NENK5Y"/>
13
+ <a target="_blank" href="https://rubygems.org/gems/lesli_bell">
14
+ <img alt="Gem Version" src="https://img.shields.io/gem/v/lesli_bell?style=for-the-badge&logo=ruby">
16
15
  </a>
17
- <a href="https://codecov.io/github/LesliTech/LesliBabel">
18
- <img height="22" src="https://sonarcloud.io/api/project_badges/measure?project=LesliTech_LesliBabel&metric=sqale_rating"/>
16
+ <a target="_blank" href="https://codecov.io/github/LesliTech/LesliBell">
17
+ <img alt="Codecov" src="https://img.shields.io/codecov/c/github/LesliTech/LesliBell?style=for-the-badge&logo=codecov">
19
18
  </a>
20
19
  </div>
21
20
 
22
21
  <hr/>
23
22
  <br />
24
23
 
24
+ <div align="center">
25
+ <img
26
+ style="width:100%;max-width:800px;border-radius:6px;"
27
+ alt="Lesli screenshot" src="./docs/images/screenshot.png" />
28
+ </div>
29
+
30
+ <br />
31
+ <hr/>
32
+ <br />
25
33
 
26
- ### Quick start
34
+ ### Installation
27
35
 
28
36
  ```shell
29
37
  # Add LesliBell engine gem
30
38
  bundle add lesli_bell
31
- ```
32
39
 
33
- ```shell
34
40
  # Setup & initialize the database
35
41
  rake lesli:db:setup
36
42
  ```
@@ -42,26 +48,52 @@ Rails.application.routes.draw do
42
48
  end
43
49
  ```
44
50
 
51
+ <br />
52
+ <hr/>
53
+ <br />
45
54
 
46
- ### Documentation
55
+ ### Development
56
+
57
+ ```shell
58
+ # clone the lesli repo inside your engine folder: RailsApp/engines
59
+ git clone https://github.com/LesliTech/LesliBell.git
60
+
61
+ # Load LesliBell as a Gem
62
+ gem "lesli", path: "engines/LesliBell"
63
+
64
+ # Install the necessary Gems to run LesliBell
65
+ bundle install
47
66
 
67
+ # Setup & initialize the database
68
+ rake lesli:db:setup
69
+
70
+ ```
71
+
72
+ <br />
73
+ <hr/>
74
+ <br />
48
75
 
76
+ ### Demo
49
77
 
50
- ### Lesli Documentation
78
+ * [online demo](https://demo.lesli.dev/)
79
+ * [docker demo](https://github.com/LesliTech/lesli-docker-demo)
80
+
81
+
82
+ ### Documentation
51
83
  * [website](https://www.lesli.dev/)
52
- * [documentation](https://www.lesli.dev/engines/bell/)
84
+ * [documentation](https://www.lesli.dev/engines/bell)
53
85
 
54
86
 
55
- ### Get in touch with Lesli
87
+ ### Connect with Lesli
56
88
 
89
+ * [X: @LesliTech](https://x.com/LesliTech)
57
90
  * [Email: hello@lesli.tech](hello@lesli.tech)
58
91
  * [Website: https://www.lesli.tech](https://www.lesli.tech)
59
- * [Twitter: @LesliTech](https://twitter.com/LesliTech)
60
92
 
61
93
 
62
94
  ### License
63
95
  -------
64
- Copyright (c) 2025, Lesli Technologies, S. A.
96
+ Copyright (c) 2026, Lesli Technologies, S. A.
65
97
 
66
98
  This program is free software: you can redistribute it and/or modify
67
99
  it under the terms of the GNU General Public License as published by
@@ -76,10 +108,17 @@ GNU General Public License for more details.
76
108
  You should have received a copy of the GNU General Public License
77
109
  along with this program. If not, see http://www.gnu.org/licenses/.
78
110
 
111
+ <br />
79
112
  <hr />
80
113
  <br />
114
+ <br />
81
115
 
82
116
  <div align="center" class="has-text-centered">
83
117
  <img width="200" alt="Lesli logo" src="https://cdn.lesli.tech/lesli/brand/app-logo.svg" />
84
- <h4 align="center" class="mt-0">Ruby on Rails SaaS Development Framework.</h4>
118
+ <h3 align="center" class="mt-0">
119
+ The Open-Source SaaS Development Framework for Ruby on Rails.
120
+ </h3>
85
121
  </div>
122
+
123
+ <br />
124
+ <br />
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_bell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-16 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: lesli
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '5'
18
+ version: '5.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '5'
25
+ version: '5.0'
27
26
  description: Notifications & Announcements System for the Lesli Framework.
28
27
  email:
29
28
  - hello@lesli.tech
@@ -81,7 +80,6 @@ files:
81
80
  - config/locales/translations.pt.yml
82
81
  - config/routes.rb
83
82
  - db/migrate/v1.0/0308000110_create_lesli_bell_accounts.rb
84
- - db/migrate/v1.0/0308003010_create_lesli_bell_dashboards.rb
85
83
  - db/migrate/v1.0/0308100110_create_lesli_bell_notifications.rb
86
84
  - db/migrate/v1.0/0308110110_create_lesli_bell_announcements.rb
87
85
  - db/migrate/v1.0/0308110210_create_lesli_bell_announcement_activities.rb
@@ -114,7 +112,6 @@ metadata:
114
112
  homepage_uri: https://www.lesli.dev/
115
113
  changelog_uri: https://github.com/LesliTech/LesliBell
116
114
  source_code_uri: https://github.com/LesliTech/LesliBell
117
- post_install_message:
118
115
  rdoc_options: []
119
116
  require_paths:
120
117
  - lib
@@ -122,15 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
119
  requirements:
123
120
  - - ">="
124
121
  - !ruby/object:Gem::Version
125
- version: '2.7'
122
+ version: '0'
126
123
  required_rubygems_version: !ruby/object:Gem::Requirement
127
124
  requirements:
128
125
  - - ">="
129
126
  - !ruby/object:Gem::Version
130
127
  version: '0'
131
128
  requirements: []
132
- rubygems_version: 3.4.19
133
- signing_key:
129
+ rubygems_version: 3.7.1
134
130
  specification_version: 4
135
131
  summary: Notifications & Announcements System for the Lesli Framework.
136
132
  test_files: []
@@ -1,37 +0,0 @@
1
- =begin
2
-
3
- Lesli
4
-
5
- Copyright (c) 2025, Lesli Technologies, S. A.
6
-
7
- This program is free software: you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program. If not, see http://www.gnu.org/licenses/.
19
-
20
- Lesli · Ruby on Rails SaaS Development Framework.
21
-
22
- Made with ♥ by LesliTech
23
- Building a better future, one line of code at a time.
24
-
25
- @contact hello@lesli.tech
26
- @website https://www.lesli.tech
27
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
28
-
29
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
30
- // ·
31
- =end
32
-
33
- class CreateLesliBellDashboards < ActiveRecord::Migration[6.1]
34
- def change
35
- create_table_lesli_shared_dashboards_10(:lesli_bell)
36
- end
37
- end