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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8caf62078c9e664e1c6aef90147c3233a02cc3bc2d8b046693751842d6116d7c
4
- data.tar.gz: 1111c79244923ccb53309866644d185b73a3cbbf8489674ae02b51882d0b93b5
3
+ metadata.gz: 047f15c62573ca4d8ce5c33138b82c97e54e66b0b0a8d580eaf8827a0fa42016
4
+ data.tar.gz: 5808f3e2632987f93f95b7dccea3e30a6285f891da051daf91a52334e87a47de
5
5
  SHA512:
6
- metadata.gz: d845429e4e72acbdea84bbf653a991a2123bf2882ec241ba2a95a81c22077aabc8a0dd6305ab2071574cb097050394dc312da7fe0f7fdba5afc50213af7a87c8
7
- data.tar.gz: 5eb532198444d52963ab6eaddf7b75df376cda9a74791dd7b1450334bc427856b4e1cd25bc270911603ffc9fbc48469d2f6d2410126d05d9078f16917c6f7c98
6
+ metadata.gz: da31fce84e2ec9561e5d96799acefbc7ffa54529ccb202b378127b128e2ad88140265351222529692cff47f0e8ec539a744a4ce2adf0a91ea2da93658603240a
7
+ data.tar.gz: 17623c10524487df8617110572196d55a66405f20201ece8e18184d7698af5a44ab2ac6ec59b8f9b0a6a6d27e45442046c2be798d38765d0ed9a8e3f64bb1e35
data/README.md CHANGED
@@ -1,52 +1,47 @@
1
- Add to your `Gemfile`
1
+ # devise-bootstrap5
2
2
 
3
- gem "devise"
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
- Add this line to your application's Gemfile:
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
- And then execute:
10
+ gem "devise"
11
+ gem "devise-i18n"
12
+ gem "devise-bootstrap5"
33
13
 
34
- $ bundle install
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
- Or install it yourself as:
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
- $ gem install devise-bootstrap
21
+ ## Customizing the Views
39
22
 
40
- ## Usage
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
- TODO: Write usage instructions here
26
+ rails generate devise:views:bootstrap
43
27
 
44
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
31
+ rails generate devise:views -v mailer
47
32
 
48
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
+ or the following command if you want to translate the email messages:
49
34
 
50
- ## Contributing
35
+ rails generate devise:i18n:views -v mailer
51
36
 
52
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/devise-bootstrap.
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-5 mt-5">
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseBootstrap5
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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-27 00:00:00.000000000 Z
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 and above.
13
+ description: Devise views with Bootstrap 5 and i18n support for Rails 6.
14
14
  email:
15
15
  - kroger@pedrokroger.net
16
16
  executables: []