bootstrap-sass 3.3.5.1 → 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bootstrap-sass might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +8 -5
- data/CHANGELOG.md +9 -0
- data/LICENSE +1 -1
- data/README.md +11 -8
- data/Rakefile +34 -3
- data/assets/javascripts/bootstrap-sprockets.js +2 -2
- data/assets/javascripts/bootstrap.js +28 -28
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/javascripts/bootstrap/affix.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +2 -2
- data/assets/javascripts/bootstrap/button.js +2 -2
- data/assets/javascripts/bootstrap/carousel.js +2 -2
- data/assets/javascripts/bootstrap/collapse.js +2 -2
- data/assets/javascripts/bootstrap/dropdown.js +4 -4
- data/assets/javascripts/bootstrap/modal.js +2 -2
- data/assets/javascripts/bootstrap/popover.js +2 -2
- data/assets/javascripts/bootstrap/scrollspy.js +2 -2
- data/assets/javascripts/bootstrap/tab.js +2 -2
- data/assets/javascripts/bootstrap/tooltip.js +2 -2
- data/assets/javascripts/bootstrap/transition.js +1 -1
- data/assets/stylesheets/_bootstrap-mincer.scss +2 -2
- data/assets/stylesheets/_bootstrap.scss +1 -1
- data/assets/stylesheets/bootstrap/_breadcrumbs.scss +3 -1
- data/assets/stylesheets/bootstrap/_button-groups.scss +2 -2
- data/assets/stylesheets/bootstrap/_carousel.scss +7 -6
- data/assets/stylesheets/bootstrap/_forms.scss +9 -3
- data/assets/stylesheets/bootstrap/_glyphicons.scss +2 -2
- data/assets/stylesheets/bootstrap/_input-groups.scss +7 -3
- data/assets/stylesheets/bootstrap/_jumbotron.scss +2 -0
- data/assets/stylesheets/bootstrap/_modals.scss +1 -1
- data/assets/stylesheets/bootstrap/_pagination.scss +2 -2
- data/assets/stylesheets/bootstrap/_theme.scss +1 -1
- data/assets/stylesheets/bootstrap/_type.scss +1 -1
- data/assets/stylesheets/bootstrap/_variables.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +1 -4
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +2 -2
- data/bootstrap-sass.gemspec +9 -9
- data/bower.json +3 -2
- data/composer.json +1 -1
- data/lib/bootstrap-sass.rb +10 -0
- data/lib/bootstrap-sass/engine.rb +6 -1
- data/lib/bootstrap-sass/version.rb +2 -2
- data/package.json +5 -5
- data/sache.json +1 -1
- data/tasks/converter/less_conversion.rb +5 -0
- data/templates/project/_bootstrap-variables.sass +3 -1
- data/test/dummy_rails/config/application.rb +1 -1
- data/test/gemfiles/rails_head.gemfile +17 -0
- data/test/node_mincer_test.rb +2 -3
- data/test/node_sass_compile_test.sh +2 -2
- data/test/support/reporting.rb +10 -0
- data/test/test_helper.rb +1 -1
- metadata +17 -15
data/bootstrap-sass.gemspec
CHANGED
@@ -3,22 +3,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require 'bootstrap-sass/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'bootstrap-sass'
|
7
7
|
s.version = Bootstrap::VERSION
|
8
|
-
s.authors = [
|
8
|
+
s.authors = ['Thomas McDonald']
|
9
9
|
s.email = 'tom@conceptcoding.co.uk'
|
10
|
-
s.summary =
|
11
|
-
s.homepage =
|
10
|
+
s.summary = 'bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.'
|
11
|
+
s.homepage = 'https://github.com/twbs/bootstrap-sass'
|
12
12
|
s.license = 'MIT'
|
13
13
|
|
14
|
-
s.add_runtime_dependency 'sass', '>= 3.3.
|
15
|
-
s.add_runtime_dependency 'autoprefixer-rails', '>= 5.
|
14
|
+
s.add_runtime_dependency 'sass', '>= 3.3.4'
|
15
|
+
s.add_runtime_dependency 'autoprefixer-rails', '>= 5.2.1'
|
16
16
|
|
17
17
|
# Testing dependencies
|
18
|
-
s.add_development_dependency 'minitest', '~> 5.
|
19
|
-
s.add_development_dependency 'minitest-reporters', '~> 1.
|
18
|
+
s.add_development_dependency 'minitest', '~> 5.8'
|
19
|
+
s.add_development_dependency 'minitest-reporters', '~> 1.1'
|
20
20
|
# Integration testing
|
21
|
-
s.add_development_dependency 'capybara'
|
21
|
+
s.add_development_dependency 'capybara', '>= 2.5.0'
|
22
22
|
s.add_development_dependency 'poltergeist'
|
23
23
|
# Dummy Rails app dependencies
|
24
24
|
s.add_development_dependency 'actionpack', '>= 4.1.5'
|
data/bower.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"Peter Gumeson",
|
8
8
|
"Gleb Mazovetskiy"
|
9
9
|
],
|
10
|
-
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
10
|
+
"description": "bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.",
|
11
11
|
"moduleType": "globals",
|
12
12
|
"main": [
|
13
13
|
"assets/stylesheets/_bootstrap.scss",
|
@@ -31,5 +31,6 @@
|
|
31
31
|
],
|
32
32
|
"dependencies": {
|
33
33
|
"jquery": ">= 1.9.0"
|
34
|
-
}
|
34
|
+
},
|
35
|
+
"version": "3.3.6"
|
35
36
|
}
|
data/composer.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "twbs/bootstrap-sass",
|
3
|
-
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
3
|
+
"description": "bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.",
|
4
4
|
"keywords": ["bootstrap", "css", "sass"],
|
5
5
|
"homepage": "http://github.com/twbs/bootstrap-sass",
|
6
6
|
"authors": [
|
data/lib/bootstrap-sass.rb
CHANGED
@@ -7,6 +7,8 @@ module Bootstrap
|
|
7
7
|
|
8
8
|
if rails?
|
9
9
|
register_rails_engine
|
10
|
+
elsif lotus?
|
11
|
+
register_lotus
|
10
12
|
elsif sprockets?
|
11
13
|
register_sprockets
|
12
14
|
end
|
@@ -48,6 +50,10 @@ module Bootstrap
|
|
48
50
|
defined?(::Rails)
|
49
51
|
end
|
50
52
|
|
53
|
+
def lotus?
|
54
|
+
defined?(::Lotus)
|
55
|
+
end
|
56
|
+
|
51
57
|
private
|
52
58
|
|
53
59
|
def configure_sass
|
@@ -73,6 +79,10 @@ module Bootstrap
|
|
73
79
|
require 'bootstrap-sass/engine'
|
74
80
|
end
|
75
81
|
|
82
|
+
def register_lotus
|
83
|
+
Lotus::Assets.sources << assets_path
|
84
|
+
end
|
85
|
+
|
76
86
|
def register_sprockets
|
77
87
|
Sprockets.append_path(stylesheets_path)
|
78
88
|
Sprockets.append_path(fonts_path)
|
@@ -5,7 +5,12 @@ module Bootstrap
|
|
5
5
|
%w(stylesheets javascripts fonts images).each do |sub|
|
6
6
|
app.config.assets.paths << root.join('assets', sub).to_s
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
|
+
# sprockets-rails 3 tracks down the calls to `font_path` and `image_path`
|
10
|
+
# and automatically precompiles the referenced assets.
|
11
|
+
unless Sprockets::Rails::VERSION.split('.', 2)[0].to_i >= 3
|
12
|
+
app.config.assets.precompile << %r(bootstrap/glyphicons-halflings-regular\.(?:eot|svg|ttf|woff2?)$)
|
13
|
+
end
|
9
14
|
end
|
10
15
|
end
|
11
16
|
end
|
data/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "bootstrap-sass",
|
3
|
-
"version": "3.3.
|
4
|
-
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
3
|
+
"version": "3.3.6",
|
4
|
+
"description": "bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.",
|
5
5
|
"main": "assets/javascripts/bootstrap.js",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -23,8 +23,8 @@
|
|
23
23
|
"url": "https://github.com/twbs/bootstrap-sass/issues"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"node-sass": "~2
|
27
|
-
"mincer": "~1.
|
28
|
-
"ejs": "~
|
26
|
+
"node-sass": "~3.4.2",
|
27
|
+
"mincer": "~1.3",
|
28
|
+
"ejs": "~2.3"
|
29
29
|
}
|
30
30
|
}
|
data/sache.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"name": "bootstrap-sass",
|
3
|
-
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications",
|
3
|
+
"description": "bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right into your Sass powered applications.",
|
4
4
|
"tags": ["bootstrap", "grid", "typography", "buttons", "ui", "responsive-web-design"]
|
5
5
|
}
|
@@ -102,6 +102,11 @@ class Converter
|
|
102
102
|
// [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths.
|
103
103
|
\\1: if($bootstrap-sass-asset-helper, "bootstrap/", "\\2bootstrap/") \\3;
|
104
104
|
SCSS
|
105
|
+
when 'breadcrumbs.less'
|
106
|
+
file = replace_all file, /(.*)(\\00a0)/, unindent(<<-SCSS, 8) + "\\1\#{$nbsp}"
|
107
|
+
// [converter] Workaround for https://github.com/sass/libsass/issues/1115
|
108
|
+
$nbsp: "\\2";
|
109
|
+
SCSS
|
105
110
|
when 'close.less'
|
106
111
|
# extract .close { button& {...} } rule
|
107
112
|
file = extract_nested_rule file, 'button&'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.
|
1
|
+
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.6):
|
2
2
|
|
3
3
|
//
|
4
4
|
// Variables
|
@@ -869,5 +869,7 @@
|
|
869
869
|
// $page-header-border-color: $gray-lighter
|
870
870
|
//** Width of horizontal description list titles
|
871
871
|
// $dl-horizontal-offset: $component-offset-horizontal
|
872
|
+
//** Point at which .dl-horizontal becomes horizontal
|
873
|
+
// $dl-horizontal-breakpoint: $grid-float-breakpoint
|
872
874
|
//** Horizontal line color.
|
873
875
|
// $hr-border: $gray-lighter
|
@@ -12,13 +12,13 @@ end
|
|
12
12
|
|
13
13
|
require 'slim-rails'
|
14
14
|
require 'jquery-rails'
|
15
|
-
require 'compass'
|
16
15
|
require 'bootstrap-sass'
|
17
16
|
require 'uglifier'
|
18
17
|
|
19
18
|
module Dummy
|
20
19
|
class Application < Rails::Application
|
21
20
|
config.assets.enabled = true if config.assets.respond_to?(:enabled)
|
21
|
+
config.assets.precompile += %w( application.css application.js )
|
22
22
|
config.to_prepare do
|
23
23
|
if ENV['VERBOSE']
|
24
24
|
STDERR.puts "Loaded Rails #{Rails::VERSION::STRING}, Sprockets #{Sprockets::VERSION}",
|
@@ -0,0 +1,17 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem 'actionpack', github: 'rails/rails'
|
4
|
+
gem 'activesupport', github: 'rails/rails'
|
5
|
+
|
6
|
+
# Required git dependencies as per https://github.com/rails/rails/blob/51211a94bd7a34d80f2412a7f94fefe7366647a5/Gemfile:
|
7
|
+
gem 'rack', github: 'rack/rack'
|
8
|
+
gem 'sprockets', github: 'rails/sprockets'
|
9
|
+
gem 'sprockets-rails', github: 'rails/sprockets-rails'
|
10
|
+
gem 'sass-rails', github: 'rails/sass-rails', branch: 'master'
|
11
|
+
|
12
|
+
gem 'autoprefixer-rails', github: 'ai/autoprefixer-rails'
|
13
|
+
|
14
|
+
gem 'compass', '~> 1.0.1', require: false
|
15
|
+
|
16
|
+
gemspec path: '../../'
|
17
|
+
|
data/test/node_mincer_test.rb
CHANGED
@@ -22,15 +22,14 @@ class NodeMincerTest < Minitest::Test
|
|
22
22
|
|
23
23
|
def setup
|
24
24
|
tmp_dir = File.join GEM_PATH, 'tmp/node-mincer'
|
25
|
-
command = "node manifest.js #{tmp_dir}"
|
26
25
|
success = Dir.chdir DUMMY_PATH do
|
27
26
|
silence_stdout_if !ENV['VERBOSE'] do
|
28
|
-
system
|
27
|
+
system 'node', 'manifest.js', tmp_dir
|
29
28
|
end
|
30
29
|
end
|
31
30
|
assert success, 'Node.js Mincer compilation failed'
|
32
31
|
manifest = JSON.parse(File.read("#{tmp_dir}/manifest.json"))
|
33
|
-
css_name = manifest[
|
32
|
+
css_name = manifest['assets']['application.css']
|
34
33
|
@css = File.read("#{tmp_dir}/#{css_name}")
|
35
34
|
end
|
36
35
|
end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Test compilation with node-sass binary
|
4
4
|
|
5
5
|
mkdir -p tmp/node-sass
|
6
|
-
node-sass assets/stylesheets/
|
7
|
-
node-sass assets/stylesheets/bootstrap/
|
6
|
+
node-sass assets/stylesheets/_bootstrap.scss -o tmp/node-sass/bootstrap.css && \
|
7
|
+
node-sass assets/stylesheets/bootstrap/_theme.scss -o tmp/node-sass/bootstrap-theme.css || \
|
8
8
|
(echo "node-sass compilation failed" && exit 1)
|
data/test/support/reporting.rb
CHANGED
@@ -14,4 +14,14 @@ module Kernel
|
|
14
14
|
run.call
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
def silence_stream(stream)
|
19
|
+
old_stream = stream.dup
|
20
|
+
stream.reopen(File::NULL)
|
21
|
+
stream.sync = true
|
22
|
+
yield
|
23
|
+
ensure
|
24
|
+
stream.reopen(old_stream)
|
25
|
+
old_stream.close
|
26
|
+
end unless method_defined?(:silence_stream)
|
17
27
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas McDonald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.3.
|
19
|
+
version: 3.3.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.3.
|
26
|
+
version: 3.3.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: autoprefixer-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.
|
33
|
+
version: 5.2.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.
|
40
|
+
version: 5.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 5.
|
47
|
+
version: '5.8'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 5.
|
54
|
+
version: '5.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest-reporters
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: '1.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.5.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: poltergeist
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -370,6 +370,7 @@ files:
|
|
370
370
|
- test/dummy_sass_only/Gemfile
|
371
371
|
- test/dummy_sass_only/compile.rb
|
372
372
|
- test/dummy_sass_only/import_all.sass
|
373
|
+
- test/gemfiles/rails_head.gemfile
|
373
374
|
- test/gemfiles/sass_3_3.gemfile
|
374
375
|
- test/gemfiles/sass_3_4.gemfile
|
375
376
|
- test/gemfiles/sass_head.gemfile
|
@@ -402,10 +403,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
403
|
version: '0'
|
403
404
|
requirements: []
|
404
405
|
rubyforge_project:
|
405
|
-
rubygems_version: 2.4.
|
406
|
+
rubygems_version: 2.4.8
|
406
407
|
signing_key:
|
407
408
|
specification_version: 4
|
408
|
-
summary:
|
409
|
+
summary: bootstrap-sass is a Sass-powered version of Bootstrap 3, ready to drop right
|
410
|
+
into your Sass powered applications.
|
409
411
|
test_files:
|
410
412
|
- test/compass_test.rb
|
411
413
|
- test/compilation_test.rb
|
@@ -443,6 +445,7 @@ test_files:
|
|
443
445
|
- test/dummy_sass_only/Gemfile
|
444
446
|
- test/dummy_sass_only/compile.rb
|
445
447
|
- test/dummy_sass_only/import_all.sass
|
448
|
+
- test/gemfiles/rails_head.gemfile
|
446
449
|
- test/gemfiles/sass_3_3.gemfile
|
447
450
|
- test/gemfiles/sass_3_4.gemfile
|
448
451
|
- test/gemfiles/sass_head.gemfile
|
@@ -455,4 +458,3 @@ test_files:
|
|
455
458
|
- test/support/reporting.rb
|
456
459
|
- test/test_helper.rb
|
457
460
|
- test/test_helper_rails.rb
|
458
|
-
has_rdoc:
|