devise-bootstrap5 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +32 -37
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 047f15c62573ca4d8ce5c33138b82c97e54e66b0b0a8d580eaf8827a0fa42016
|
4
|
+
data.tar.gz: 5808f3e2632987f93f95b7dccea3e30a6285f891da051daf91a52334e87a47de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da31fce84e2ec9561e5d96799acefbc7ffa54529ccb202b378127b128e2ad88140265351222529692cff47f0e8ec539a744a4ce2adf0a91ea2da93658603240a
|
7
|
+
data.tar.gz: 17623c10524487df8617110572196d55a66405f20201ece8e18184d7698af5a44ab2ac6ec59b8f9b0a6a6d27e45442046c2be798d38765d0ed9a8e3f64bb1e35
|
data/README.md
CHANGED
@@ -1,52 +1,47 @@
|
|
1
|
-
|
1
|
+
# devise-bootstrap5
|
2
2
|
|
3
|
-
|
4
|
-
gem "devise-i18n"
|
5
|
-
gem "devise-bootstrap"
|
6
|
-
|
7
|
-
You don't need to copy the views
|
8
|
-
|
9
|
-
devise:views:bootstrap
|
10
|
-
|
11
|
-
rails generate devise:views -v mailer
|
12
|
-
rm -rf app/views/devise/shared
|
13
|
-
|
14
|
-
or
|
15
|
-
|
16
|
-
rails generate devise:i18n:views -v mailer
|
17
|
-
|
18
|
-
# Devise::Bootstrap
|
19
|
-
|
20
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/devise/bootstrap`. To experiment with that code, run `bin/console` for an interactive prompt.
|
21
|
-
|
22
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Devise views with Bootstrap 5 and i18n support for Rails 6.
|
23
4
|
|
24
5
|
## Installation
|
25
6
|
|
26
|
-
|
27
|
-
|
28
|
-
```ruby
|
29
|
-
gem 'devise-bootstrap'
|
30
|
-
```
|
7
|
+
All you need to do is to add `devise`, `devise-i18n` and `devise-bootstrap5` to
|
8
|
+
your `Gemfile`:
|
31
9
|
|
32
|
-
|
10
|
+
gem "devise"
|
11
|
+
gem "devise-i18n"
|
12
|
+
gem "devise-bootstrap5"
|
33
13
|
|
34
|
-
|
14
|
+
After configuring `devise` everything is ready to use. Rails will use the views
|
15
|
+
defined in `devise-bootstrap5` instead of the `devise` ones.
|
35
16
|
|
36
|
-
|
17
|
+
You need `devise-i18n` even if your application is not internationalized since
|
18
|
+
all views in `devise-bootstrap5` are internationalized and use the strings
|
19
|
+
defined in `devise-i18n`.
|
37
20
|
|
38
|
-
|
21
|
+
## Customizing the Views
|
39
22
|
|
40
|
-
|
23
|
+
If you want to customize the views you can run the following command to copy
|
24
|
+
them to `app/views/devise`:
|
41
25
|
|
42
|
-
|
26
|
+
rails generate devise:views:bootstrap
|
43
27
|
|
44
|
-
|
28
|
+
This command will install all views except for the mailer. If you want to
|
29
|
+
install them as well, you should issue the default `devise` generator command:
|
45
30
|
|
46
|
-
|
31
|
+
rails generate devise:views -v mailer
|
47
32
|
|
48
|
-
|
33
|
+
or the following command if you want to translate the email messages:
|
49
34
|
|
50
|
-
|
35
|
+
rails generate devise:i18n:views -v mailer
|
51
36
|
|
52
|
-
|
37
|
+
Please keep in mind that both commands will also copy the shared files used by
|
38
|
+
the views in `app/views/devise/shared`. For instance, if you ran
|
39
|
+
`devise:views:bootstrap` to generate the bootstrap views and then ran `rails
|
40
|
+
generate devise:views -v mailer` to generate the mailer views, the shared files
|
41
|
+
will be replaced. If you need to customize the mailer views, I suggest you run
|
42
|
+
the commands in the following order:
|
43
|
+
|
44
|
+
rails generate devise:views -v mailer # the mailer views
|
45
|
+
# rails generate devise:i18n:views -v mailer # or the mailer views internationalized
|
46
|
+
rm -rf app/views/devise/shared # remove the original shared files
|
47
|
+
rails generate devise:views:bootstrap # generate the bootstrap views with the shared files
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<div class="form-text"><%= t('.we_need_your_current_password_to_confirm_your_changes') %></div>
|
22
22
|
</div>
|
23
23
|
|
24
|
-
<div class="row mb-
|
24
|
+
<div class="row mb-4 mt-4">
|
25
25
|
<h4><%= t('devise.passwords.edit.change_your_password') %></h4>
|
26
26
|
<div class="form-text mb-3"><%= t('.leave_blank_if_you_don_t_want_to_change_it') %></div>
|
27
27
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-bootstrap5
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Kroger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Devise views with Bootstrap 5 and i18n support for Rails 6
|
13
|
+
description: Devise views with Bootstrap 5 and i18n support for Rails 6.
|
14
14
|
email:
|
15
15
|
- kroger@pedrokroger.net
|
16
16
|
executables: []
|