bootstrap 4.6.1 → 4.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -257,6 +257,7 @@ $caret-spacing: $caret-width * .85 !default;
257
257
  $transition-base: all .2s ease-in-out !default;
258
258
  $transition-fade: opacity .15s linear !default;
259
259
  $transition-collapse: height .35s ease !default;
260
+ $transition-collapse-width: width .35s ease !default;
260
261
 
261
262
  $embed-responsive-aspect-ratios: () !default;
262
263
  $embed-responsive-aspect-ratios: join(
@@ -319,7 +320,7 @@ $display-line-height: $headings-line-height !default;
319
320
  $lead-font-size: $font-size-base * 1.25 !default;
320
321
  $lead-font-weight: 300 !default;
321
322
 
322
- $small-font-size: 80% !default;
323
+ $small-font-size: .875em !default;
323
324
 
324
325
  $text-muted: $gray-600 !default;
325
326
 
@@ -11,7 +11,7 @@
11
11
  text-transform: none;
12
12
  letter-spacing: normal;
13
13
  word-break: normal;
14
- word-spacing: normal;
15
14
  white-space: normal;
15
+ word-spacing: normal;
16
16
  line-break: auto;
17
17
  }
data/bootstrap.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  # SassC requires Ruby 2.3.3. Also specify here to make it obvious.
15
15
  s.required_ruby_version = '>= 2.3.3'
16
16
 
17
- s.add_runtime_dependency 'popper_js', '>= 1.14.3', '< 2'
17
+ s.add_runtime_dependency 'popper_js', '>= 1.16.1', '< 2'
18
18
 
19
19
  s.add_runtime_dependency 'sassc-rails', '>= 2.0.0'
20
20
  s.add_runtime_dependency 'autoprefixer-rails', '>= 9.1.0'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootstrap
4
- VERSION = '4.6.1'
5
- BOOTSTRAP_SHA = '043a03c95a2ad6738f85b65e53b9dbdfb03b8d10'
4
+ VERSION = '4.6.2'
5
+ BOOTSTRAP_SHA = 'e5643aaa89eb67327a5b4abe7db976f0ea276b70'
6
6
  end
data/tasks/updater/js.rb CHANGED
@@ -1,7 +1,11 @@
1
+ require 'pathname'
1
2
  require 'tsort'
2
3
 
3
4
  class Updater
4
5
  module Js
6
+ INLINED_SRCS = %w[index.js tools/sanitizer.js].freeze
7
+ EXTERNAL_JS = %w[popper.js].freeze
8
+
5
9
  def update_javascript_assets
6
10
  log_status 'Updating javascripts...'
7
11
  save_to = @save_to[:js]
@@ -29,13 +33,15 @@ class Updater
29
33
 
30
34
  def bootstrap_js_files
31
35
  @bootstrap_js_files ||= begin
32
- src_files = get_paths_by_type('js/src', /\.js$/) - %w[index.js tools/sanitizer.js]
36
+ src_files = get_paths_by_type('js/src', /\.js$/) - INLINED_SRCS
37
+ puts "src_files: #{src_files.inspect}"
33
38
  imports = Deps.new
34
39
  # Get the imports from the ES6 files to order requires correctly.
35
40
  read_files('js/src', src_files).each do |name, content|
36
- imports.add name,
37
- *content.scan(%r{import [a-zA-Z]* from '\./(\w+)})
38
- .flatten(1).map { |f| "#{f}.js" }
41
+ file_imports = content.scan(%r{import *(?:[a-zA-Z]*|\{[a-zA-Z ,]*\}) *from '([\w/.-]+)}).flatten(1).map do |f|
42
+ Pathname.new(name).dirname.join(f.end_with?(".js") ? f : "#{f}.js").cleanpath.to_s
43
+ end.uniq
44
+ imports.add name, *(file_imports - INLINED_SRCS - EXTERNAL_JS)
39
45
  end
40
46
  imports.tsort
41
47
  end
@@ -53,11 +59,17 @@ class Updater
53
59
  end
54
60
 
55
61
  def add(from, *tos)
56
- (@imports[from] ||= []).push(*tos.sort)
62
+ imports = (@imports[from] ||= [])
63
+ imports.push(*tos)
64
+ imports.sort!
57
65
  end
58
66
 
59
67
  def tsort_each_child(node, &block)
60
- @imports[node].each(&block)
68
+ node_imports = @imports[node]
69
+ if node_imports.nil?
70
+ raise "No imports found for #{node.inspect}\nImports:\n#{@imports.inspect}"
71
+ end
72
+ node_imports.each(&block)
61
73
  end
62
74
 
63
75
  def tsort_each_node(&block)
@@ -25,7 +25,13 @@ class Updater
25
25
  log_http_get_files files, path_url, false
26
26
  files.map do |name|
27
27
  Thread.start {
28
- contents[name] = URI.open("#{path_url}/#{name}").read
28
+ begin
29
+ url = "#{path_url}/#{name}"
30
+ contents[name] = URI.open(url).read
31
+ rescue Exception => e
32
+ log "Error downloading #{url}: #{e}"
33
+ exit 1
34
+ end
29
35
  WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] }
30
36
  }
31
37
  end.each(&:join)
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.6.1
4
+ version: 4.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-05 00:00:00.000000000 Z
11
+ date: 2022-09-18 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.14.3
19
+ version: 1.16.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '2'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.14.3
29
+ version: 1.16.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'