normalize-scss 4.0.3 → 4.1.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: 23054a29244f0a815cdc528f52208ed639b47fa4
4
- data.tar.gz: 730711abe3a3d64f94405e4212661db3c2dc3843
3
+ metadata.gz: c8e787e5a28adb7782cc2ddfa49e9b104ba8e0a1
4
+ data.tar.gz: 8a14cb1886f55688c18560bde50f568b71e7323b
5
5
  SHA512:
6
- metadata.gz: 846203ad31e6b8ab3a48b667f26239b3139aeb3bf4fff5ffe08bec07f611ef1c1870d01f03fe2dfdaba7c313c73559611abe51effb3278a553e5532fff02677f
7
- data.tar.gz: 5c2621a06b5f32eee71722a8c6ffa075fe2eaf41c832187572f2ae836b059e57d72fd422a2ac0904c15ab42aed32adbe990453fd8d0d0c367a6873da84c3aa2c
6
+ metadata.gz: 474a733eea643d68517095e5aa7d255a2afb81956baad9151a5df768a85bafd52892d931bda0d74c5d492db3259e998592f18e740a658d55695c4ff800b32fa9
7
+ data.tar.gz: 70774d7a031b50623d604c41c99abda2f4be2873a6d0e973f0303d541ce299a976dd8ff011d529426d4d7a5031397fbf967ee4cb60b9b14ef024c95a5575711f
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  For use with… | normalize-scss version
6
6
  -----------------------------|-----------------------
7
- Sass 3.4 or libSass | [4.0.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/4.0.3)<br> combining normalize.css v3.0.3 with v1.1.3
7
+ Sass 3.4 or libSass | [4.1.0](https://github.com/JohnAlbin/normalize-scss/releases/tag/4.1.0)<br> combining normalize.css v3.0.3 with v1.1.3
8
8
  Ruby Sass 3.3 + Compass 1.0 | [3.0.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/3.0.3)<br> combining normalize.css v3.0.3 with v1.1.3
9
9
  Ruby Sass 3.2 + Compass 0.12 | [2.2.0+normalize.2.1.3](https://github.com/JohnAlbin/normalize-scss/releases/tag/2.2.0%2Bnormalize.2.1.3)<br> combining normalize.css v2.1.3 with v1.1.3
10
10
 
data/bower.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "normalize-scss",
3
3
  "description": "This is the Sass version of Normalize.css, a collection of HTML element and attribute rulesets to normalize styles across all browsers. This port aims to use a light dusting of Sass to make Normalize even easier to integrate with your website.",
4
4
  "main": [
5
- "sass/normalize/_import-now.scss"
5
+ "sass/_normalize.scss"
6
6
  ],
7
7
  "authors": [
8
8
  "John Albin Wilkins <virtually.johnalbin@gmail.com> (http://john.albin.net/)"
@@ -27,8 +27,5 @@
27
27
  "sache.json",
28
28
  "test.html",
29
29
  "test"
30
- ],
31
- "dependencies": {
32
- "support-for": "~1.0.2"
33
- }
30
+ ]
34
31
  }
@@ -9,15 +9,14 @@ Gem::Specification.new do |spec|
9
9
  spec.homepage = 'https://github.com/JohnAlbin/normalize-scss'
10
10
  spec.rubyforge_project =
11
11
 
12
- spec.version = '4.0.3'
13
- spec.date = '2015-11-29'
14
- spec.licenses = ['GPL-2']
12
+ spec.version = '4.1.0'
13
+ spec.date = '2016-04-23'
14
+ spec.licenses = ['GPL-2.0']
15
15
 
16
16
  spec.authors = ['John Albin Wilkins']
17
17
  spec.email = 'virtually.johnalbin@gmail.com'
18
18
 
19
19
  spec.add_runtime_dependency('sass', '~> 3.3')
20
- spec.add_runtime_dependency('support-for', '~> 1.0')
21
20
 
22
21
  spec.files = `git ls-files`.split($/).select {|f| File.exist?(f) && f =~ %r{^(lib|sass)/} }
23
22
  spec.files += %w(
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "normalize-scss",
3
- "version": "4.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "This is the Sass version of Normalize.css, a collection of HTML element and attribute rulesets to normalize styles across all browsers. This port aims to use a light dusting of Sass to make Normalize even easier to integrate with your website.",
5
5
  "homepage": "https://github.com/JohnAlbin/normalize-scss",
6
6
  "bugs": {
@@ -21,7 +21,7 @@
21
21
  "eyeglass": {
22
22
  "name": "normalize",
23
23
  "exports": "eyeglass-exports.js",
24
- "needs": "^0.7.1"
24
+ "needs": "*"
25
25
  },
26
26
  "directories": {
27
27
  "lib": "sass",
@@ -32,15 +32,13 @@
32
32
  "posttest": "eslint test"
33
33
  },
34
34
  "license": "(MIT OR GPL-2.0)",
35
- "dependencies": {
36
- "support-for": "^1.0.0"
37
- },
38
35
  "devDependencies": {
39
- "chai": "^3.4.1",
40
- "chroma-sass": "^1.1.2",
41
- "eslint": "^1.9.0",
42
- "mocha": "^2.3.4",
43
- "sassy-test": "^2.0.0",
44
- "typey": "^1.0.0-beta.8"
36
+ "chai": "^3.5.0",
37
+ "chroma-sass": "^1.2.3",
38
+ "eslint": "^2.4.0",
39
+ "mocha": "^2.4.5",
40
+ "sassy-test": "^3.0.0",
41
+ "support-for": "^1.0.5",
42
+ "typey": "^1.0.0"
45
43
  }
46
44
  }
@@ -0,0 +1,64 @@
1
+ // Support the last 4 versions of all browsers except IE.
2
+ $support-for: (
3
+ chrome: -4,
4
+ edge: -4,
5
+ firefox: -4,
6
+ ie: 9,
7
+ opera: -4,
8
+ safari: -4,
9
+ '*': -4,
10
+ ) !default;
11
+
12
+ // Set the current version number for all browsers. As of: 2016-04-23
13
+ $support-for-current-browser-version: (
14
+ chrome: 50, // https://en.wikipedia.org/wiki/Google_Chrome_release_history
15
+ edge: 25, // https://en.wikipedia.org/wiki/Microsoft_Edge
16
+ firefox: 45, // https://en.wikipedia.org/wiki/Firefox_release_history
17
+ ie: 11, // https://en.wikipedia.org/wiki/Internet_Explorer_versions
18
+ opera: 36, // https://en.wikipedia.org/wiki/Opera_(web_browser)
19
+ safari: 9, // https://en.wikipedia.org/wiki/Safari_version_history
20
+ ) !default;
21
+
22
+
23
+ // support-for()
24
+ //
25
+ // Determines if the project has declared a minimum supported version number for
26
+ // the specified browser.
27
+ //
28
+ // If configured, this is a wrapper function that uses Compass'
29
+ // support-legacy-browser().
30
+ // @see http://compass-style.org/reference/compass/support/#function-support-legacy-browser
31
+ //
32
+ @function support-for($browser, $version) {
33
+ // Ensure $version is an integer (or null).
34
+ @if not (type-of($version) == "null" or type-of($version) == "number" and round($version) == $version) {
35
+ @error "The $version parameter of support-for() must be an integer; #{type-of($version)} given.";
36
+ }
37
+
38
+ // Check against declared minimums.
39
+ $min-version: null;
40
+ @if map-has-key($support-for, $browser) {
41
+ $min-version: map-get($support-for, $browser);
42
+ }
43
+ @else if map-has-key($support-for, '*') {
44
+ $min-version: map-get($support-for, '*');
45
+ }
46
+
47
+ // Ensure $min-version is an integer (or null).
48
+ @if type-of($min-version) != "null" and type-of($min-version) != "number" {
49
+ @error "$support-for: (#{$browser}: #{$min-version}) must be set to an integer (or null); #{$min-version} is a #{type-of($min-version)}.";
50
+ }
51
+ @elseif type-of($min-version) == "number" and round($min-version) != $min-version {
52
+ @error "$support-for: (#{$browser}: #{$min-version}) must be set to an integer (or null); #{$min-version} is not an integer.";
53
+ }
54
+
55
+ // Negative $min-version means "X most recent versions".
56
+ @if type-of($min-version) == "number" and $min-version < 0 {
57
+ @if not map-has-key($support-for-current-browser-version, $browser) {
58
+ @error "#{$browser} not found in $support-for-current-browser-version map; it must be set to an integer.";
59
+ }
60
+ $min-version: map-get($support-for-current-browser-version, $browser) + $min-version + 1;
61
+ }
62
+
63
+ @return if(($min-version and ($version >= $min-version)), true, false);
64
+ }
@@ -7,5 +7,5 @@
7
7
  // @import "normalize/import-now";
8
8
  // ```
9
9
 
10
- @import 'normalize';
10
+ @import '../normalize';
11
11
  @include normalize();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalize-scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Albin Wilkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-29 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.3'
27
- - !ruby/object:Gem::Dependency
28
- name: support-for
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.0'
41
27
  description: This is the Sass version of Normalize.css, a collection of HTML element
42
28
  and attribute rulesets to normalize styles across all browsers. This port aims to
43
29
  use a light dusting of Sass to make Normalize even easier to integrate with your
@@ -56,13 +42,14 @@ files:
56
42
  - normalize-scss.gemspec
57
43
  - package.json
58
44
  - sass/_normalize.scss
45
+ - sass/_support-for.scss
59
46
  - sass/normalize/_import-now.scss
60
47
  - sass/normalize/_normalize-mixin.scss
61
48
  - sass/normalize/_variables.scss
62
49
  - sass/normalize/_vertical-rhythm.scss
63
50
  homepage: https://github.com/JohnAlbin/normalize-scss
64
51
  licenses:
65
- - GPL-2
52
+ - GPL-2.0
66
53
  metadata: {}
67
54
  post_install_message:
68
55
  rdoc_options: []
@@ -79,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
66
  - !ruby/object:Gem::Version
80
67
  version: '0'
81
68
  requirements: []
82
- rubyforge_project: 4.0.3
83
- rubygems_version: 2.4.8
69
+ rubyforge_project: 4.1.0
70
+ rubygems_version: 2.6.2
84
71
  signing_key:
85
72
  specification_version: 4
86
73
  summary: The Sass version of Normalize.css