bootstrap 4.1.3 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap might be problematic. Click here for more details.

Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/README.md +1 -1
  4. data/Rakefile +2 -2
  5. data/assets/javascripts/bootstrap-sprockets.js +6 -5
  6. data/assets/javascripts/bootstrap.js +3290 -2985
  7. data/assets/javascripts/bootstrap.min.js +2 -2
  8. data/assets/javascripts/bootstrap/alert.js +127 -132
  9. data/assets/javascripts/bootstrap/button.js +119 -124
  10. data/assets/javascripts/bootstrap/carousel.js +492 -393
  11. data/assets/javascripts/bootstrap/collapse.js +276 -279
  12. data/assets/javascripts/bootstrap/dropdown.js +413 -374
  13. data/assets/javascripts/bootstrap/modal.js +455 -445
  14. data/assets/javascripts/bootstrap/popover.js +155 -160
  15. data/assets/javascripts/bootstrap/scrollspy.js +246 -250
  16. data/assets/javascripts/bootstrap/tab.js +180 -192
  17. data/assets/javascripts/bootstrap/toast.js +277 -0
  18. data/assets/javascripts/bootstrap/tooltip.js +533 -522
  19. data/assets/javascripts/bootstrap/util.js +140 -116
  20. data/assets/stylesheets/_bootstrap-grid.scss +2 -5
  21. data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
  22. data/assets/stylesheets/_bootstrap.scss +3 -1
  23. data/assets/stylesheets/bootstrap/_alert.scss +1 -1
  24. data/assets/stylesheets/bootstrap/_badge.scss +6 -0
  25. data/assets/stylesheets/bootstrap/_button-group.scss +9 -18
  26. data/assets/stylesheets/bootstrap/_buttons.scss +7 -10
  27. data/assets/stylesheets/bootstrap/_card.scss +30 -21
  28. data/assets/stylesheets/bootstrap/_carousel.scss +36 -74
  29. data/assets/stylesheets/bootstrap/_close.scss +15 -6
  30. data/assets/stylesheets/bootstrap/_custom-forms.scss +103 -29
  31. data/assets/stylesheets/bootstrap/_dropdown.scss +30 -5
  32. data/assets/stylesheets/bootstrap/_forms.scss +12 -11
  33. data/assets/stylesheets/bootstrap/_functions.scss +4 -4
  34. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  35. data/assets/stylesheets/bootstrap/_input-group.scss +24 -4
  36. data/assets/stylesheets/bootstrap/_list-group.scss +6 -0
  37. data/assets/stylesheets/bootstrap/_modal.scss +16 -10
  38. data/assets/stylesheets/bootstrap/_nav.scss +2 -0
  39. data/assets/stylesheets/bootstrap/_navbar.scss +4 -4
  40. data/assets/stylesheets/bootstrap/_popover.scss +1 -1
  41. data/assets/stylesheets/bootstrap/_reboot.scss +14 -35
  42. data/assets/stylesheets/bootstrap/_spinners.scss +53 -0
  43. data/assets/stylesheets/bootstrap/_tables.scss +2 -2
  44. data/assets/stylesheets/bootstrap/_toasts.scss +43 -0
  45. data/assets/stylesheets/bootstrap/_type.scss +2 -2
  46. data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
  47. data/assets/stylesheets/bootstrap/_variables.scss +220 -81
  48. data/assets/stylesheets/bootstrap/mixins/_badge.scss +1 -2
  49. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +2 -2
  50. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +9 -7
  51. data/assets/stylesheets/bootstrap/mixins/_caret.scss +0 -4
  52. data/assets/stylesheets/bootstrap/mixins/_forms.scss +61 -10
  53. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +3 -4
  54. data/assets/stylesheets/bootstrap/mixins/_grid.scss +9 -10
  55. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +10 -1
  56. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +1 -1
  57. data/assets/stylesheets/bootstrap/mixins/_transition.scss +5 -2
  58. data/assets/stylesheets/bootstrap/utilities/_borders.scss +4 -0
  59. data/assets/stylesheets/bootstrap/utilities/_embed.scss +7 -20
  60. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +5 -0
  61. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -5
  62. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +8 -0
  63. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +23 -1
  64. data/assets/stylesheets/bootstrap/utilities/_text.scss +13 -4
  65. data/bootstrap.gemspec +6 -3
  66. data/lib/bootstrap.rb +10 -7
  67. data/lib/bootstrap/engine.rb +3 -0
  68. data/lib/bootstrap/version.rb +4 -2
  69. metadata +15 -11
@@ -9,6 +9,7 @@
9
9
  // Alignment
10
10
 
11
11
  .text-justify { text-align: justify !important; }
12
+ .text-wrap { white-space: normal !important; }
12
13
  .text-nowrap { white-space: nowrap !important; }
13
14
  .text-truncate { @include text-truncate; }
14
15
 
@@ -32,10 +33,12 @@
32
33
 
33
34
  // Weight and italics
34
35
 
35
- .font-weight-light { font-weight: $font-weight-light !important; }
36
- .font-weight-normal { font-weight: $font-weight-normal !important; }
37
- .font-weight-bold { font-weight: $font-weight-bold !important; }
38
- .font-italic { font-style: italic !important; }
36
+ .font-weight-light { font-weight: $font-weight-light !important; }
37
+ .font-weight-lighter { font-weight: $font-weight-lighter !important; }
38
+ .font-weight-normal { font-weight: $font-weight-normal !important; }
39
+ .font-weight-bold { font-weight: $font-weight-bold !important; }
40
+ .font-weight-bolder { font-weight: $font-weight-bolder !important; }
41
+ .font-italic { font-style: italic !important; }
39
42
 
40
43
  // Contextual colors
41
44
 
@@ -56,3 +59,9 @@
56
59
  .text-hide {
57
60
  @include text-hide($ignore-warning: true);
58
61
  }
62
+
63
+ .text-decoration-none { text-decoration: none !important; }
64
+
65
+ // Reset
66
+
67
+ .text-reset { color: inherit !important; }
@@ -11,10 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.homepage = 'https://github.com/twbs/bootstrap-rubygem'
12
12
  s.license = 'MIT'
13
13
 
14
- s.add_runtime_dependency 'popper_js', '>= 1.12.9', '< 2'
14
+ # SassC requires Ruby 2.3.3. Also specify here to make it obvious.
15
+ s.required_ruby_version = '>= 2.3.3'
15
16
 
16
- s.add_runtime_dependency 'sass', '>= 3.5.2'
17
- s.add_runtime_dependency 'autoprefixer-rails', '>= 6.0.3'
17
+ s.add_runtime_dependency 'popper_js', '>= 1.14.3', '< 2'
18
+
19
+ s.add_runtime_dependency 'sassc-rails', '>= 2.0.0'
20
+ s.add_runtime_dependency 'autoprefixer-rails', '>= 9.1.0'
18
21
 
19
22
  # Testing dependencies
20
23
  s.add_development_dependency 'minitest', '~> 5.8.0'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootstrap/version'
2
4
  require 'popper_js'
3
5
 
@@ -11,9 +13,16 @@ module Bootstrap
11
13
  register_hanami
12
14
  elsif sprockets?
13
15
  register_sprockets
16
+ elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths)
17
+ # The deprecated `sass` gem:
18
+ ::Sass.load_paths << stylesheets_path
14
19
  end
15
20
 
16
- configure_sass
21
+ if defined?(::Sass::Script::Value::Number)
22
+ # Set precision to 6 as per:
23
+ # https://github.com/twbs/bootstrap/blob/da717b03e6e72d7a61c007acb9223b9626ae5ee5/package.json#L28
24
+ ::Sass::Script::Value::Number.precision = [6, ::Sass::Script::Value::Number.precision].max
25
+ end
17
26
  end
18
27
 
19
28
  # Paths
@@ -48,12 +57,6 @@ module Bootstrap
48
57
 
49
58
  private
50
59
 
51
- def configure_sass
52
- require 'sass'
53
-
54
- ::Sass.load_paths << stylesheets_path
55
- end
56
-
57
60
  def register_rails_engine
58
61
  require 'bootstrap/engine'
59
62
  end
@@ -1,4 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'autoprefixer-rails'
4
+ require 'sassc-rails'
2
5
 
3
6
  module Bootstrap
4
7
  module Rails
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bootstrap
2
- VERSION = '4.1.3'
3
- BOOTSTRAP_SHA = '3b558734382ce58b51e5fc676453bfd53bba9201'
4
+ VERSION = '4.2.1'
5
+ BOOTSTRAP_SHA = '9e4e94747bd698f4f61d48ed54c9c6d4d199bd32'
4
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.12.9
19
+ version: 1.14.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2'
@@ -26,38 +26,38 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.12.9
29
+ version: 1.14.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
- name: sass
34
+ name: sassc-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.5.2
39
+ version: 2.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.5.2
46
+ version: 2.0.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: autoprefixer-rails
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 6.0.3
53
+ version: 9.1.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 6.0.3
60
+ version: 9.1.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -252,6 +252,7 @@ files:
252
252
  - assets/javascripts/bootstrap/popover.js
253
253
  - assets/javascripts/bootstrap/scrollspy.js
254
254
  - assets/javascripts/bootstrap/tab.js
255
+ - assets/javascripts/bootstrap/toast.js
255
256
  - assets/javascripts/bootstrap/tooltip.js
256
257
  - assets/javascripts/bootstrap/util.js
257
258
  - assets/stylesheets/_bootstrap-grid.scss
@@ -286,7 +287,9 @@ files:
286
287
  - assets/stylesheets/bootstrap/_progress.scss
287
288
  - assets/stylesheets/bootstrap/_reboot.scss
288
289
  - assets/stylesheets/bootstrap/_root.scss
290
+ - assets/stylesheets/bootstrap/_spinners.scss
289
291
  - assets/stylesheets/bootstrap/_tables.scss
292
+ - assets/stylesheets/bootstrap/_toasts.scss
290
293
  - assets/stylesheets/bootstrap/_tooltip.scss
291
294
  - assets/stylesheets/bootstrap/_transitions.scss
292
295
  - assets/stylesheets/bootstrap/_type.scss
@@ -330,6 +333,7 @@ files:
330
333
  - assets/stylesheets/bootstrap/utilities/_embed.scss
331
334
  - assets/stylesheets/bootstrap/utilities/_flex.scss
332
335
  - assets/stylesheets/bootstrap/utilities/_float.scss
336
+ - assets/stylesheets/bootstrap/utilities/_overflow.scss
333
337
  - assets/stylesheets/bootstrap/utilities/_position.scss
334
338
  - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
335
339
  - assets/stylesheets/bootstrap/utilities/_shadows.scss
@@ -394,7 +398,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
394
398
  requirements:
395
399
  - - ">="
396
400
  - !ruby/object:Gem::Version
397
- version: '0'
401
+ version: 2.3.3
398
402
  required_rubygems_version: !ruby/object:Gem::Requirement
399
403
  requirements:
400
404
  - - ">="
@@ -402,7 +406,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
406
  version: '0'
403
407
  requirements: []
404
408
  rubyforge_project:
405
- rubygems_version: 2.7.7
409
+ rubygems_version: 2.7.8
406
410
  signing_key:
407
411
  specification_version: 4
408
412
  summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,