bourbon 5.0.0.beta.8 → 5.0.0

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: 00c47bc77a0a4d58bb63c93c051b82c4d4719c0f
4
- data.tar.gz: 8210d97cf62742815fc61bd4ac885681beb42a1b
3
+ metadata.gz: 1584e80e0ac32e8bd3cb84b83ba12c55a6be1923
4
+ data.tar.gz: f64c1bc64288b6618eaaf0b0e8cd126a57590f27
5
5
  SHA512:
6
- metadata.gz: 497efe1789522f99495b35f804a602a6d4e666f2d0310b26752313ab69908bd6d819fa5ba1626f3e23e19c0408a58b120470fffe8276ae25e11f048c5fff302f
7
- data.tar.gz: d8444e36753b29d51eada8bb04a9abc03fe977de7adf1b232d1cee671594d852d1d883e94c639f01dec60755a89cb3843bd4300ae537d5e3dbde4a44fdcca831
6
+ metadata.gz: f2f53764c13fe7d31a92e66a4a3df6ded7896c89b73072cd6a2ce854a65f7ad65766a34ac418330c4cdf1411291d0269c30d8e515da0353b08cadd3ee899e44b
7
+ data.tar.gz: 87707bce377b4fa6acb24d09abe4b43cd24e37844c7d739b6c51de80d567bf2c09739e808132a1cb6fe589d78351296659ea81e9067cbdcee3603d851bd9bd5c
@@ -1,11 +1,22 @@
1
- ### Expected behavior
1
+ <!-- Feel free to remove any part of this issue template that is not relevant -->
2
+ <!-- Providing context helps us come up with a useful solution -->
2
3
 
3
- ### Actual behavior
4
+ ## Description
4
5
 
5
- ### Steps to reproduce behavior
6
+ <!-- What did you expect to happen? What happened instead? Was a specific error thrown? -->
6
7
 
7
- ### Bourbon version
8
+ ## Steps to Reproduce
8
9
 
9
- ### Environment info
10
+ <!-- If you can reproduce the bug in a CodePen, link to it here -->
10
11
 
11
- ### Screenshots (if relevant)
12
+ 1. Step 1…
13
+ 2.
14
+ 3.
15
+
16
+ ## Development Environment
17
+
18
+ <!--- Include as many relevant details about the environment you experienced the bug in -->
19
+
20
+ - Bourbon version:
21
+ - Platform:
22
+ - Link to the code repository:
@@ -1,5 +1,10 @@
1
- ### What does this PR do?
1
+ <!-- Feel free to remove any part of this pull request template that is not relevant -->
2
2
 
3
- ### If this is related to an existing issue, include a link to it as well.
3
+ ## Description
4
4
 
5
- ### Screenshots (if relevant)
5
+ <!-- What do your changes do or fix? -->
6
+
7
+ ## Additional Information
8
+
9
+ <!-- Links to demos, e.g. CodePen, can be helpful, as are research and support documents -->
10
+ <!-- If this fixes or is related to an existing issue, link to it here (and in the commit message) -->
data/.npmignore CHANGED
@@ -9,6 +9,7 @@ bin/
9
9
  bourbon.gemspec
10
10
  bower.json
11
11
  circle.yml
12
+ CODE_OF_CONDUCT.md
12
13
  CONTRIBUTING.md
13
14
  features/
14
15
  Gemfile
@@ -7,7 +7,17 @@ project adheres to [Semantic Versioning](http://semver.org).
7
7
 
8
8
  Nothing at the moment.
9
9
 
10
- [unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...HEAD
10
+ [unreleased]: https://github.com/thoughtbot/bourbon/compare/v5.0.0...HEAD
11
+
12
+ ## [5.0.0] - 2018-01-05
13
+
14
+ Bourbon 5.0.0 is a major release with lots of changes and removals, which are
15
+ documented below in each of the alpha and beta releases. There are no changes
16
+ between v5.0.0-beta.8 and v5.0.0. For information on how to upgrade from v4 to
17
+ v5, read our [migrating guide][migrating-guide].
18
+
19
+ [5.0.0]: https://github.com/thoughtbot/bourbon/compare/v5.0.0.beta.8...v5.0.0
20
+ [migrating-guide]: http://www.bourbon.io/docs/migrating-from-v4-to-v5/
11
21
 
12
22
  ## [5.0.0-beta.8] - 2017-06-26
13
23
 
@@ -0,0 +1,6 @@
1
+ # Code of Conduct
2
+
3
+ By participating in this project, you agree to abide by the
4
+ [thoughtbot code of conduct][tb-coc].
5
+
6
+ [tb-coc]: https://thoughtbot.com/open-source-code-of-conduct
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright © 2011-2017 [thoughtbot, inc.](http://thoughtbot.com)
3
+ Copyright © 2011-2018 [thoughtbot, inc.](http://thoughtbot.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the “Software”), to deal
data/README.md CHANGED
@@ -11,9 +11,6 @@ It is…
11
11
  - Human-readable: We aim for clarity over brevity.
12
12
  - Lightweight: Zero output post-install and has no visual opinion.
13
13
 
14
- The current stable version is **4.3.4**. The `master` branch on GitHub is
15
- version 5.0.0.beta.8.
16
-
17
14
  [Bourbon]: http://bourbon.io
18
15
  [Sass]: http://sass-lang.com
19
16
 
@@ -133,7 +130,11 @@ version 5.0.0.beta.8.
133
130
  @import "bourbon";
134
131
  ```
135
132
 
136
- [eyeglass]: http://eyeglass.rocks
133
+ **Pro Tip:** Check out this [example gulp project][gulp-example] that
134
+ uses Bourbon and Neat.
135
+
136
+ [gulp-example]: https://github.com/thoughtbot/gulp-bourbon-neat-example
137
+ [eyeglass]: https://github.com/sass-eyeglass/eyeglass
137
138
 
138
139
  ### Installing older versions of Bourbon
139
140
 
@@ -202,7 +203,7 @@ See the [contributing] document. Thank you, [contributors]!
202
203
 
203
204
  ## License
204
205
 
205
- Bourbon is copyright © 2011-2017 [thoughtbot, inc.][thoughtbot] It is free
206
+ Bourbon is copyright © 2011-2018 [thoughtbot, inc.][thoughtbot] It is free
206
207
  software, and may be redistributed under the terms specified in the [license].
207
208
 
208
209
  [license]: LICENSE.md
data/bower.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "type": "git",
36
36
  "url": "https://github.com/thoughtbot/bourbon.git"
37
37
  },
38
- "version": "5.0.0-beta.8"
38
+ "version": "5.0.0"
39
39
  }
@@ -1,6 +1,6 @@
1
- // Bourbon 5.0.0-beta.8
1
+ // Bourbon 5.0.0
2
2
  // http://bourbon.io
3
- // Copyright 2011-2017 thoughtbot, inc.
3
+ // Copyright 2011-2018 thoughtbot, inc.
4
4
  // MIT License
5
5
 
6
6
  @import "bourbon/helpers/buttons-list";
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "5.0.0.beta.8"
2
+ VERSION = "5.0.0"
3
3
  end
@@ -30,5 +30,5 @@
30
30
  "scripts": {
31
31
  "test": "bundle exec rake"
32
32
  },
33
- "version": "5.0.0-beta.8"
33
+ "version": "5.0.0"
34
34
  }
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe "contrast-ratio" do
4
+ before(:all) do
5
+ ParserSupport.parse_file("utilities/contrast-ratio")
6
+ end
7
+
8
+ context "calculates between white and black" do
9
+ it "outputs the contrast ratio" do
10
+ rule = "content: 21;"
11
+
12
+ expect(".contrast-ratio-black").to have_ruleset(rule)
13
+ end
14
+ end
15
+
16
+ context "calculates between white and blue" do
17
+ it "outputs the contrast ratio" do
18
+ rule = "content: 8.59247;"
19
+
20
+ expect(".contrast-ratio-blue").to have_ruleset(rule)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe "gamma" do
4
+ before(:all) do
5
+ ParserSupport.parse_file("utilities/gamma")
6
+ end
7
+
8
+ context "called on a color channel" do
9
+ it "outputs a gamma value between 0 and 1" do
10
+ rule = "content: 0.13185;"
11
+
12
+ expect(".gamma").to have_ruleset(rule)
13
+ end
14
+ end
15
+
16
+ context "called on a full color channel" do
17
+ it "outputs a gamma value between 0 and 1" do
18
+ rule = "content: 1;"
19
+
20
+ expect(".gamma-full").to have_ruleset(rule)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe "lightness" do
4
+ before(:all) do
5
+ ParserSupport.parse_file("utilities/lightness")
6
+ end
7
+
8
+ context "called on black" do
9
+ it "outputs a number between 0 and 1 to indicate lightness" do
10
+ rule = "content: 0;"
11
+
12
+ expect(".lightness-black").to have_ruleset(rule)
13
+ end
14
+ end
15
+
16
+ context "called on white" do
17
+ it "outputs a number between 0 and 1 to indicate lightness" do
18
+ rule = "content: 1;"
19
+
20
+ expect(".lightness-white").to have_ruleset(rule)
21
+ end
22
+ end
23
+
24
+ context "called on gray" do
25
+ it "outputs a number between 0 and 1 to indicate lightness" do
26
+ rule = "content: 0.21795;"
27
+
28
+ expect(".lightness-gray").to have_ruleset(rule)
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,9 @@
1
+ @import "setup";
2
+
3
+ .contrast-ratio-black {
4
+ content: _contrast-ratio(#fff, #000);
5
+ }
6
+
7
+ .contrast-ratio-blue {
8
+ content: _contrast-ratio(#fff, #00f);
9
+ }
@@ -0,0 +1,9 @@
1
+ @import "setup";
2
+
3
+ .gamma {
4
+ content: _gamma(100 / 255);
5
+ }
6
+
7
+ .gamma-full {
8
+ content: _gamma(255 / 255);
9
+ }
@@ -0,0 +1,13 @@
1
+ @import "setup";
2
+
3
+ .lightness-black {
4
+ content: _lightness(#000);
5
+ }
6
+
7
+ .lightness-white {
8
+ content: _lightness(#fff);
9
+ }
10
+
11
+ .lightness-gray {
12
+ content: _lightness(mix(#000, #fff, 50%));
13
+ }
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: 5.0.0.beta.8
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Reuter
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2017-06-26 00:00:00.000000000 Z
20
+ date: 2018-01-05 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: aruba
@@ -134,6 +134,7 @@ files:
134
134
  - ".ruby-version"
135
135
  - ".scss-lint.yml"
136
136
  - CHANGELOG.md
137
+ - CODE_OF_CONDUCT.md
137
138
  - CONTRIBUTING.md
138
139
  - Gemfile
139
140
  - LICENSE.md
@@ -231,9 +232,12 @@ files:
231
232
  - spec/bourbon/library/triangle_spec.rb
232
233
  - spec/bourbon/utilities/assign_inputs_spec.rb
233
234
  - spec/bourbon/utilities/compact_shorthand_spec.rb
235
+ - spec/bourbon/utilities/contrast_ratio_spec.rb
234
236
  - spec/bourbon/utilities/directional_property_spec.rb
235
237
  - spec/bourbon/utilities/fetch_bourbon_setting_spec.rb
236
238
  - spec/bourbon/utilities/font_source_declaration_spec.rb
239
+ - spec/bourbon/utilities/gamma_spec.rb
240
+ - spec/bourbon/utilities/lightness_spec.rb
237
241
  - spec/bourbon/utilities/unpack_spec.rb
238
242
  - spec/bourbon/validators/contains_spec.rb
239
243
  - spec/bourbon/validators/is_length_spec.rb
@@ -269,9 +273,12 @@ files:
269
273
  - spec/fixtures/library/triangle.scss
270
274
  - spec/fixtures/utilities/assign-inputs.scss
271
275
  - spec/fixtures/utilities/compact-shorthand.scss
276
+ - spec/fixtures/utilities/contrast-ratio.scss
272
277
  - spec/fixtures/utilities/directional-property.scss
273
278
  - spec/fixtures/utilities/fetch-bourbon-setting.scss
274
279
  - spec/fixtures/utilities/font-source-declaration.scss
280
+ - spec/fixtures/utilities/gamma.scss
281
+ - spec/fixtures/utilities/lightness.scss
275
282
  - spec/fixtures/utilities/unpack.scss
276
283
  - spec/fixtures/validators/contains.scss
277
284
  - spec/fixtures/validators/is-length.scss
@@ -298,12 +305,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
298
305
  version: '0'
299
306
  required_rubygems_version: !ruby/object:Gem::Requirement
300
307
  requirements:
301
- - - ">"
308
+ - - ">="
302
309
  - !ruby/object:Gem::Version
303
- version: 1.3.1
310
+ version: '0'
304
311
  requirements: []
305
312
  rubyforge_project:
306
- rubygems_version: 2.6.12
313
+ rubygems_version: 2.6.13
307
314
  signing_key:
308
315
  specification_version: 4
309
316
  summary: A lightweight Sass tool set.
@@ -343,9 +350,12 @@ test_files:
343
350
  - spec/bourbon/library/triangle_spec.rb
344
351
  - spec/bourbon/utilities/assign_inputs_spec.rb
345
352
  - spec/bourbon/utilities/compact_shorthand_spec.rb
353
+ - spec/bourbon/utilities/contrast_ratio_spec.rb
346
354
  - spec/bourbon/utilities/directional_property_spec.rb
347
355
  - spec/bourbon/utilities/fetch_bourbon_setting_spec.rb
348
356
  - spec/bourbon/utilities/font_source_declaration_spec.rb
357
+ - spec/bourbon/utilities/gamma_spec.rb
358
+ - spec/bourbon/utilities/lightness_spec.rb
349
359
  - spec/bourbon/utilities/unpack_spec.rb
350
360
  - spec/bourbon/validators/contains_spec.rb
351
361
  - spec/bourbon/validators/is_length_spec.rb
@@ -381,9 +391,12 @@ test_files:
381
391
  - spec/fixtures/library/triangle.scss
382
392
  - spec/fixtures/utilities/assign-inputs.scss
383
393
  - spec/fixtures/utilities/compact-shorthand.scss
394
+ - spec/fixtures/utilities/contrast-ratio.scss
384
395
  - spec/fixtures/utilities/directional-property.scss
385
396
  - spec/fixtures/utilities/fetch-bourbon-setting.scss
386
397
  - spec/fixtures/utilities/font-source-declaration.scss
398
+ - spec/fixtures/utilities/gamma.scss
399
+ - spec/fixtures/utilities/lightness.scss
387
400
  - spec/fixtures/utilities/unpack.scss
388
401
  - spec/fixtures/validators/contains.scss
389
402
  - spec/fixtures/validators/is-length.scss