agilidee-devise 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4366d3a53d64eccd09928ff3637336583cd594d7
4
- data.tar.gz: ce91d0509ff38455896261cade6c0fc046bb6a78
3
+ metadata.gz: 8e997376d63e816f5614b0410fdef8af45c2041b
4
+ data.tar.gz: bebec2e249110c9e1b6be5f91797aa9df2220efd
5
5
  SHA512:
6
- metadata.gz: a0db183f87f36d763e246cb75fc434d8daf9593ffee4b5f7a1021bbda3cacc6662dae9ee06901cc043b5e0fe3fe56096341037c513bac4568f71537997ec5fd9
7
- data.tar.gz: c3eab2abb6bf60394134b685bd74519ed4f05787bc94afec6c80056e8f82b4a2c1b01e99af7a1da9c7967779bfb23b2edee4212177afe92c5b002704c759e7fb
6
+ metadata.gz: 05d9d1e5808e8f58f8372485f6e7fc6f874f032bd05f933864dbb842edc00a1b9f3f9c4dfdf283635950229b633a02511ce0ec4d89ab7cbff31770d2b4196c4d
7
+ data.tar.gz: b829f1271680628eccfc9820a829108d2bb48e16591de6bb9580224315ff5663d355b69202425f1d3fe44c429c079bda07aa12aaf1d7dfac0150c537055bade2
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ - Bootstrap 4 compatibility
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  - Fork from hisea/devise-bootstrap-views
@@ -1,11 +1,12 @@
1
1
  module AgilideeDevise::ApplicationHelper
2
2
  def bootstrap_devise_error_messages!
3
- return '' if resource.errors.empty?
3
+ return "" if resource.errors.empty?
4
4
 
5
5
  messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
6
- sentence = I18n.t('errors.messages.not_saved',
7
- count: resource.errors.count,
8
- resource: resource.class.model_name.human.downcase)
6
+ sentence = I18n.t("errors.messages.not_saved",
7
+ :count => resource.errors.count,
8
+ :resource => resource.class.model_name.human.downcase,
9
+ )
9
10
 
10
11
  html = <<-HTML
11
12
  <div class="alert alert-danger alert-block alert-devise">
@@ -19,12 +20,12 @@ module AgilideeDevise::ApplicationHelper
19
20
  end
20
21
 
21
22
  def devise_panel(title, &block)
22
- content_tag(:div, class: "panel panel-default panel-devise") do
23
- heading = content_tag(:div, class: "panel-heading") do
24
- content_tag(:h1, class: "panel-title") { title }
23
+ content_tag(:div, class: "card card-devise panel panel-default panel-devise") do
24
+ heading = content_tag(:div, class: "card-header panel-heading") do
25
+ content_tag(:strong, class: "card-title panel-title") { title }
25
26
  end
26
27
 
27
- body = content_tag(:div, class: "panel-body", &block)
28
+ body = content_tag(:div, class: "card-body panel-body", &block)
28
29
 
29
30
  heading + body
30
31
  end
@@ -12,8 +12,9 @@
12
12
  .checkbox
13
13
  = f.label :remember_me do
14
14
  = f.check_box :remember_me
15
+ = " "
15
16
  = t(".remember_me")
16
17
 
17
- = f.submit t(".sign_in"), class: "btn btn-primary"
18
+ = f.submit t(".sign_in"), class: "btn btn-primary"
18
19
 
19
- = render 'devise/shared/links'
20
+ = render "devise/shared/links"
@@ -1,3 +1,3 @@
1
1
  module AgilideeDevise
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilidee-devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-14 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise