effective_bootstrap 0.6.26 → 0.6.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04d0aa8b1c7650af3d1ab484028ac21d568258af71bb4ff321265d8804f79083
4
- data.tar.gz: 9f8b936083d51a3905311c5e4fe9c1d861d11a2f1b547dd14343e80a99307c4a
3
+ metadata.gz: 7c0cddb3d35a7304636a4195dcd3dc13c4ad2e7b9bbe39afa46cbd6a612b950a
4
+ data.tar.gz: 701b0c67281d8842264e61169cf022480f60b0c8154681d40aca711f7f595c81
5
5
  SHA512:
6
- metadata.gz: 2933e838a12ad3f8a0e10358af853fb13e3a7c856bb005ad7438369d9187f0784a0bfb2b7999adccb0ad11e650e27eb59802bb2d3de33a5ab6cdbd30dd3ee48c
7
- data.tar.gz: '096001e254fe4309420bfc15888140e0e3c446894960f5e33f8b1843c101dc062d85e6c054dd35377a60f6a96f406827e3cfc947b05cc77a56b477a4b1f392df'
6
+ metadata.gz: 04ea0b1c51eabbd6e88608ebb0deedbef1e349e79a2fff98fb4b1a8634a4ea6376b41764b912f16129f96dc77b7d367c3eaf6cf0c3d39f0a451827d2d51e9742
7
+ data.tar.gz: 2c67cf1d9e511d38e935b553154dcb91930ab0b35ef18c7d7ada4007bab2e2f83785b6f17e81b07c9125a25224aa63b027111ff1cf511d3e773bd698ebec5137
@@ -1,16 +1,14 @@
1
- let initTabs = function() {
2
- let $tab_with_error = $(".form-control.is-invalid").first().closest('.tab-pane');
1
+ $(document).ready(function() {
2
+ var $tab_with_error = $(".form-control.is-invalid").first().closest('.tab-pane');
3
3
 
4
4
  if ($tab_with_error.length > 0) {
5
5
  $(".nav.nav-tabs").find("a[href^='#" + $tab_with_error.attr('id') + "']").tab('show');
6
6
  } else if (document.location.hash.length > 0) {
7
- let $tab_from_url = $(".nav.nav-tabs").find("a[href^='" + document.location.hash + "']");
7
+ var $tab_from_url = $(".nav.nav-tabs").find("a[href^='" + document.location.hash + "']");
8
8
 
9
9
  if ($tab_from_url.length > 0) {
10
10
  document.location.hash = ""; // This prevents scrolling to the wrong place in the page
11
11
  $tab_from_url.tab("show");
12
12
  }
13
13
  }
14
- }
15
-
16
- $(document).ready(initTabs);
14
+ });
@@ -37,7 +37,7 @@ module EffectiveBootstrapHelper
37
37
 
38
38
  link_opts[:class] = opts.delete(:link_class) || 'btn btn-link'
39
39
  div_class = opts.delete(:div_class)
40
- card_class = opts.delete(:card_class) || 'my-2'
40
+ card_class = opts.delete(:card_class) || 'card card-body my-2'
41
41
 
42
42
  if @_accordion_active
43
43
  # Accordion collapse
@@ -55,7 +55,7 @@ module EffectiveBootstrapHelper
55
55
  # Normal collapse
56
56
  content_tag(:a, label, link_opts) +
57
57
  content_tag(:div, id: id, class: ['collapse', div_class, ('show' if show)].compact.join(' ')) do
58
- content_tag(:div, capture(&block), class: ['card', 'card-body', card_class].compact.join(' '))
58
+ content_tag(:div, capture(&block), class: card_class)
59
59
  end
60
60
  end
61
61
  end
@@ -28,7 +28,7 @@ module Effective
28
28
  end
29
29
 
30
30
  def required_presence?(obj, name)
31
- super(obj, name) && Array(object.public_send(name)).none? { |file| file.attached? }
31
+ super(obj, name) && Array(object.public_send(name)).length == 0
32
32
  end
33
33
 
34
34
  def build_attachments
@@ -77,7 +77,9 @@ module Effective
77
77
  end
78
78
 
79
79
  if options_collection.kind_of?(Hash)
80
- options_collection[include_null] = [[include_null, 'nil']]
80
+ options_collection[include_null] = [
81
+ Struct.new(:to_s, :id, :first, :second).new(include_null, 'nil', include_null, 'nil')
82
+ ]
81
83
  end
82
84
 
83
85
  options_collection
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.6.26'.freeze
2
+ VERSION = '0.6.31'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.26
4
+ version: 0.6.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -626,7 +626,7 @@ homepage: https://github.com/code-and-effect/effective_bootstrap
626
626
  licenses:
627
627
  - MIT
628
628
  metadata: {}
629
- post_install_message:
629
+ post_install_message:
630
630
  rdoc_options: []
631
631
  require_paths:
632
632
  - lib
@@ -641,8 +641,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
641
641
  - !ruby/object:Gem::Version
642
642
  version: '0'
643
643
  requirements: []
644
- rubygems_version: 3.0.3
645
- signing_key:
644
+ rubygems_version: 3.1.2
645
+ signing_key:
646
646
  specification_version: 4
647
647
  summary: Everything you need to get set up with bootstrap 4.
648
648
  test_files: []