bourbon 4.3.0 → 4.3.1

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: 9788bebf327840e86da4bded8c10e8f6ff27e6da
4
- data.tar.gz: c66a685e0b67c27178e40212c3b15542425f850a
3
+ metadata.gz: 61de41329684ac9bc2b73b123d566faed81f5103
4
+ data.tar.gz: 9eb5ac1960e151409b7b49b3f3ef49590a943f3c
5
5
  SHA512:
6
- metadata.gz: ce80d9b3d28c0500aab49f6afcb1685d5bc970f1367726f081386f1cb7cfb8bd950811cc8379d2931285f30863dc3c120a7e04c64b0a9328c2f16d0049bef6c3
7
- data.tar.gz: 056d1b5e791a4a1c77179cabe8bde056eaebd7d0ad95c52003a1247cf59a27cd9dc5fdb1e5934b3525b4a8b5a54cc91035e315cf71ab5ca1fd3e47d9f71091bd
6
+ metadata.gz: d43d0336b00f6074df1ffeeedaa3f326d908fcebf6bb565abe62994cca32d9487368162ff660d3322221916db0c5c1e8b1272549e2a2c629a6060d66503bdf69
7
+ data.tar.gz: 6567d4aa74a88a5c472f01894fa4579a6b3c04607ece064ca5e94bae974d7cb2a6a21138483a00e91bec25bdd8a2235b6ec03ffca7e67ee8bbb59c8ec1b2b14b
@@ -0,0 +1,27 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file. This
4
+ project adheres to [Semantic Versioning](http://semver.org).
5
+
6
+ ## Unreleased (`master`)
7
+
8
+ Nothing at the moment.
9
+
10
+ ## 4.3.1 - 2017-02-07
11
+
12
+ ### Fixed
13
+
14
+ - Internal Bourbon deprecation warnings will no longer be thrown. ([#1002])
15
+
16
+ [#1002]: https://github.com/thoughtbot/bourbon/pull/1002
17
+
18
+ ## 4.3.0 - 2017-02-03
19
+
20
+ ### Added
21
+
22
+ - Added deprecation warnings for features that will be removed in 5.0.0. Please
23
+ reference our [change log], which includes a list of these changes and
24
+ removals. ([#891])
25
+
26
+ [change log]: https://github.com/thoughtbot/bourbon/blob/master/CHANGELOG.md
27
+ [#891]: https://github.com/thoughtbot/bourbon/pull/891
@@ -1,4 +1,4 @@
1
- // Bourbon 4.3.0
1
+ // Bourbon 4.3.1
2
2
  // http://bourbon.io
3
3
  // Copyright 2011-2017 thoughtbot, inc.
4
4
  // MIT License
@@ -22,5 +22,8 @@
22
22
  /// @output `border-color`
23
23
 
24
24
  @mixin border-color($vals...) {
25
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
26
+ $output-bourbon-deprecation-warnings: false !global;
25
27
  @include directional-property(border, color, $vals...);
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
26
29
  }
@@ -21,5 +21,8 @@
21
21
  /// @output `border-style`
22
22
 
23
23
  @mixin border-style($vals...) {
24
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
25
+ $output-bourbon-deprecation-warnings: false !global;
24
26
  @include directional-property(border, style, $vals...);
27
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
25
28
  }
@@ -21,5 +21,8 @@
21
21
  /// @output `border-width`
22
22
 
23
23
  @mixin border-width($vals...) {
24
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
25
+ $output-bourbon-deprecation-warnings: false !global;
24
26
  @include directional-property(border, width, $vals...);
27
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
25
28
  }
@@ -53,11 +53,16 @@ $buttons-list: 'button',
53
53
  'input[type="reset"]',
54
54
  'input[type="submit"]';
55
55
 
56
+ $user-output-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
57
+ $output-bourbon-deprecation-warnings: false;
58
+
56
59
  $all-buttons: assign-inputs($buttons-list);
57
60
  $all-buttons-active: assign-inputs($buttons-list, active);
58
61
  $all-buttons-focus: assign-inputs($buttons-list, focus);
59
62
  $all-buttons-hover: assign-inputs($buttons-list, hover);
60
63
 
64
+ $output-bourbon-deprecation-warnings: $user-output-deprecation-warnings-setting;
65
+
61
66
  $all-button-inputs: $all-buttons;
62
67
  $all-button-inputs-active: $all-buttons-active;
63
68
  $all-button-inputs-focus: $all-buttons-focus;
@@ -22,5 +22,8 @@
22
22
  /// @output `margin`
23
23
 
24
24
  @mixin margin($vals...) {
25
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
26
+ $output-bourbon-deprecation-warnings: false !global;
25
27
  @include directional-property(margin, false, $vals...);
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
26
29
  }
@@ -22,5 +22,8 @@
22
22
  /// @output `padding`
23
23
 
24
24
  @mixin padding($vals...) {
25
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
26
+ $output-bourbon-deprecation-warnings: false !global;
25
27
  @include directional-property(padding, false, $vals...);
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
26
29
  }
@@ -107,7 +107,12 @@ $text-inputs-list: 'input[type="color"]',
107
107
  'input:not([type])',
108
108
  'textarea';
109
109
 
110
+ $user-output-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
111
+ $output-bourbon-deprecation-warnings: false;
112
+
110
113
  $all-text-inputs: assign-inputs($text-inputs-list);
111
114
  $all-text-inputs-active: assign-inputs($text-inputs-list, active);
112
115
  $all-text-inputs-focus: assign-inputs($text-inputs-list, focus);
113
116
  $all-text-inputs-hover: assign-inputs($text-inputs-list, hover);
117
+
118
+ $output-bourbon-deprecation-warnings: $user-output-deprecation-warnings-setting;
@@ -6,6 +6,9 @@
6
6
  $asset-pipeline: $asset-pipeline,
7
7
  $file-formats: eot woff2 woff ttf svg) {
8
8
 
9
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
10
+ $output-bourbon-deprecation-warnings: false !global;
11
+
9
12
  $font-url-prefix: font-url-prefixer($asset-pipeline);
10
13
 
11
14
  @font-face {
@@ -21,4 +24,6 @@
21
24
  $font-url-prefix
22
25
  );
23
26
  }
27
+
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
24
29
  }
@@ -17,9 +17,14 @@ $major-eleventh: 2.667;
17
17
  $major-twelfth: 3;
18
18
  $double-octave: 4;
19
19
 
20
+ $user-output-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
21
+ $output-bourbon-deprecation-warnings: false;
22
+
20
23
  $modular-scale-ratio: $perfect-fourth !default;
21
24
  $modular-scale-base: em($em-base) !default;
22
25
 
26
+ $output-bourbon-deprecation-warnings: $user-output-deprecation-warnings-setting;
27
+
23
28
  @function modular-scale($increment, $value: $modular-scale-base, $ratio: $modular-scale-ratio) {
24
29
  $v1: nth($value, 1);
25
30
  $v2: nth($value, length($value));
@@ -8,11 +8,17 @@
8
8
  "removed in 5.0.0.";
9
9
  }
10
10
 
11
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
12
+ $output-bourbon-deprecation-warnings: false !global;
13
+
11
14
  @if not unitless($pxval) {
12
15
  $pxval: strip-units($pxval);
13
16
  }
14
17
  @if not unitless($base) {
15
18
  $base: strip-units($base);
16
19
  }
20
+
21
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
22
+
17
23
  @return ($pxval / $base) * 1em;
18
24
  }
@@ -8,6 +8,9 @@
8
8
  "removed in 5.0.0.";
9
9
  }
10
10
 
11
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
12
+ $output-bourbon-deprecation-warnings: false !global;
13
+
11
14
  @if not unitless($pxval) {
12
15
  $pxval: strip-units($pxval);
13
16
  }
@@ -16,5 +19,8 @@
16
19
  @if not unitless($base) {
17
20
  $base: strip-units($base);
18
21
  }
22
+
23
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
24
+
19
25
  @return ($pxval / $base) * 1rem;
20
26
  }
@@ -7,12 +7,17 @@
7
7
  "and will be removed in 5.0.0.";
8
8
  }
9
9
 
10
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
11
+ $output-bourbon-deprecation-warnings: false !global;
12
+
10
13
  $new-props: ();
11
14
 
12
15
  @each $prop in $props {
13
16
  $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
14
17
  }
15
18
 
19
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
20
+
16
21
  @return $new-props;
17
22
  }
18
23
 
@@ -69,6 +69,9 @@
69
69
  @mixin directional-property($pre, $suf, $vals) {
70
70
  @include _bourbon-deprecate("directional-property");
71
71
 
72
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
73
+ $output-bourbon-deprecation-warnings: false !global;
74
+
72
75
  // Property Names
73
76
  $top: $pre + "-top" + if($suf, "-#{$suf}", "");
74
77
  $bottom: $pre + "-bottom" + if($suf, "-#{$suf}", "");
@@ -100,4 +103,6 @@
100
103
  } @else {
101
104
  #{$all}: $vals;
102
105
  }
106
+
107
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
103
108
  }
@@ -4,6 +4,9 @@
4
4
  "deprecated and will be removed in 5.0.0.";
5
5
  }
6
6
 
7
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
+ $output-bourbon-deprecation-warnings: false !global;
9
+
7
10
  @if $gradient-positions
8
11
  and ($gradient-type == linear)
9
12
  and (type-of($gradient-positions) != color) {
@@ -14,5 +17,8 @@
14
17
  and (type-of($gradient-positions) != color) {
15
18
  $gradient-positions: _radial-positions-parser($gradient-positions);
16
19
  }
20
+
21
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
22
+
17
23
  @return $gradient-positions;
18
24
  }
@@ -20,8 +20,13 @@
20
20
  }
21
21
 
22
22
  @if $offset {
23
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
24
+ $output-bourbon-deprecation-warnings: false !global;
25
+
23
26
  $num: _str-to-num($first-val);
24
27
 
28
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
29
+
25
30
  @return (
26
31
  webkit-image: -webkit- + $prefix + ($offset - $num) + $suffix,
27
32
  spec-image: $image
@@ -4,6 +4,9 @@
4
4
  "deprecated and will be removed in 5.0.0.";
5
5
  }
6
6
 
7
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
+ $output-bourbon-deprecation-warnings: false !global;
9
+
7
10
  $image: unquote($image);
8
11
  $gradients: ();
9
12
  $start: str-index($image, "(");
@@ -42,5 +45,7 @@
42
45
  );
43
46
  }
44
47
 
48
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
49
+
45
50
  @return $gradients;
46
51
  }
@@ -4,6 +4,9 @@
4
4
  "deprecated and will be removed in 5.0.0.";
5
5
  }
6
6
 
7
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
+ $output-bourbon-deprecation-warnings: false !global;
9
+
7
10
  $type: type-of(nth($pos, 1));
8
11
  $spec: null;
9
12
  $degree: null;
@@ -55,6 +58,9 @@
55
58
  }
56
59
  $degree: unquote($degree + ",");
57
60
  $spec: unquote($spec + ",");
61
+
62
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
63
+
58
64
  @return $degree $spec;
59
65
  }
60
66
 
@@ -5,6 +5,9 @@
5
5
  "deprecated and will be removed in 5.0.0.";
6
6
  }
7
7
 
8
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
9
+ $output-bourbon-deprecation-warnings: false !global;
10
+
8
11
  $val-1: str-slice($first-val, 1, $has-multiple-vals - 1);
9
12
  $val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
10
13
  $val-3: null;
@@ -18,6 +21,8 @@
18
21
  $pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
19
22
  $pos: unquote($pos + "");
20
23
 
24
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
25
+
21
26
  // Use old spec for webkit
22
27
  @if $val-1 == "to" {
23
28
  @return (
@@ -4,6 +4,9 @@
4
4
  "deprecated and will be removed in 5.0.0.";
5
5
  }
6
6
 
7
+ $user-deprecation-warnings-setting: $output-bourbon-deprecation-warnings;
8
+ $output-bourbon-deprecation-warnings: false !global;
9
+
7
10
  $shape-size: nth($gradient-pos, 1);
8
11
  $pos: nth($gradient-pos, 2);
9
12
  $shape-size-spec: _shape-size-stripper($shape-size);
@@ -19,5 +22,7 @@
19
22
  $spec: "#{$spec},";
20
23
  }
21
24
 
25
+ $output-bourbon-deprecation-warnings: $user-deprecation-warnings-setting !global;
26
+
22
27
  @return $pre-spec $spec;
23
28
  }
data/bower.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bourbon",
3
3
  "description": "A simple and lightweight mixin library for Sass.",
4
- "version": "4.3.0",
4
+ "version": "4.3.1",
5
5
  "main": "app/assets/stylesheets/_bourbon.scss",
6
6
  "license": "MIT",
7
7
  "ignore": [
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "4.3.0"
2
+ VERSION = "4.3.1"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bourbon",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "A simple and lightweight mixin library for Sass.",
5
5
  "keywords": [
6
6
  "css",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andres Mejia
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: bin
24
24
  cert_chain: []
25
- date: 2017-02-03 00:00:00.000000000 Z
25
+ date: 2017-02-08 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sass
@@ -136,6 +136,7 @@ files:
136
136
  - ".hound.yml"
137
137
  - ".npmignore"
138
138
  - ".scss-lint.yml"
139
+ - CHANGELOG.md
139
140
  - CONTRIBUTING.md
140
141
  - Gemfile
141
142
  - LICENSE.md