bourbon 4.2.2 → 4.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 761ff8c4792ae71d9a87918e2663683824f10b2c
4
- data.tar.gz: 00d5c800159752637caabc5c06a8f89d1c848e8f
3
+ metadata.gz: 7854d5603a9898feaf66d03354fbee4f2d686b42
4
+ data.tar.gz: 6f9ab2136e0eb11be5344bda57ecbe66a702574c
5
5
  SHA512:
6
- metadata.gz: 62cb326069ad6f8f7a93995e487504b1b06b0d67a9682657e1f86225e4e15d7228d8534376b8ff3f7eee4c9f8a2f70fe954689811ecb9156df9cb4f66a187461
7
- data.tar.gz: a41e3ae3d95229e8333d6ddca2675c07e430e5f7dfec344a594a943b02f524dba7a7f37137f2aa00d1e0078d7d634b5f4d49b585f13821168a6282c54ee9a60c
6
+ metadata.gz: eda451e7135ce5aa2b172bcd7d2f47a67cd0e56b89b3a30d932f6caffcc9673ddbb1a5d5df8f7fa885d636f18db1805826594967dee714505cb3fcc3854e938a
7
+ data.tar.gz: 86e8654ef0e6cf1d2004246f3f6404d7c87a27cd0877d8eab595b9f4e6ccf02717f9835a2257a4a6276505e191115aa677cb33f4a5d81e701dd2e438a1e58307
@@ -1,4 +1,7 @@
1
- We love pull requests. Here’s a quick guide:
1
+ We love pull requests from everyone. By participating in this project, you
2
+ agree to abide by the thoughtbot [code of conduct]. Here’s a quick guide:
3
+
4
+ [code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
2
5
 
3
6
  1. Fork the repository.
4
7
  2. Make your changes in a topic branch.
@@ -1,4 +1,4 @@
1
- // Bourbon 4.2.2
1
+ // Bourbon 4.2.3
2
2
  // http://bourbon.io
3
3
  // Copyright 2011-2015 thoughtbot, inc.
4
4
  // MIT License
@@ -16,7 +16,7 @@
16
16
  $file-formats,
17
17
  $font-url) {
18
18
 
19
- $src: null;
19
+ $src: ();
20
20
 
21
21
  $formats-map: (
22
22
  eot: "#{$file-path}.eot?#iefix" format("embedded-opentype"),
@@ -1,34 +1,32 @@
1
- # coding: utf-8
2
- $:.push File.expand_path('../lib', __FILE__)
3
- require 'bourbon/version'
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require "bourbon/version"
4
3
 
5
4
  Gem::Specification.new do |s|
6
- s.name = 'bourbon'
5
+ s.name = "bourbon"
7
6
  s.version = Bourbon::VERSION
8
7
  s.platform = Gem::Platform::RUBY
9
- s.authors = ['Andres Mejia', 'Chad Mazzola', 'Chris Lloyd', 'Gabe Berke-Williams', 'J. Edward Dewyea', 'Jeremy Raines', 'Kyle Fiedler', 'Matt Jankowski', 'Mike Burns', 'Nick Quaranto', 'Phil LaPier', 'Reda Lemeden', 'Travis Haynes', 'Tyson Gach', 'Will McMahan']
10
- s.email = 'design+bourbon@thoughtbot.com'
11
- s.license = 'MIT'
12
- s.homepage = 'http://bourbon.io'
13
- s.summary = 'A simple and lightweight mixin library for Sass'
8
+ s.authors = ["Andres Mejia", "Chad Mazzola", "Chris Lloyd", "Gabe Berke-Williams", "J. Edward Dewyea", "Jeremy Raines", "Kyle Fiedler", "Matt Jankowski", "Mike Burns", "Nick Quaranto", "Phil LaPier", "Reda Lemeden", "Travis Haynes", "Tyson Gach", "Will McMahan"]
9
+ s.email = "design+bourbon@thoughtbot.com"
10
+ s.license = "MIT"
11
+ s.homepage = "http://bourbon.io"
12
+ s.summary = "A simple and lightweight mixin library for Sass"
14
13
  s.description = <<-DESC
15
14
  Bourbon is a library of pure Sass mixins that are designed to be simple and easy
16
15
  to use. No configuration required. The mixins aim to be as vanilla as possible,
17
16
  meaning they should be as close to the original CSS syntax as possible.
18
17
  DESC
19
18
 
20
- s.rubyforge_project = 'bourbon'
21
-
22
19
  s.files = `git ls-files`.split("\n")
23
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
25
- s.require_paths = ['lib']
22
+ s.require_paths = ["lib"]
26
23
 
27
- s.add_dependency('sass', '~> 3.4')
28
- s.add_dependency('thor')
24
+ s.add_runtime_dependency("sass", "~> 3.4")
25
+ s.add_runtime_dependency("thor")
29
26
 
30
- s.add_development_dependency('aruba')
31
- s.add_development_dependency('rake')
32
- s.add_development_dependency('rspec')
33
- s.add_development_dependency('css_parser')
27
+ s.add_development_dependency("aruba")
28
+ s.add_development_dependency("css_parser")
29
+ s.add_development_dependency("rake")
30
+ s.add_development_dependency("rspec")
31
+ s.add_development_dependency("scss-lint", "~> 0.35")
34
32
  end
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.2.2",
4
+ "version": "4.2.3",
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.2.2"
2
+ VERSION = "4.2.3"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bourbon",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "A simple and lightweight mixin library for Sass.",
5
5
  "keywords": [
6
6
  "css",
@@ -4,49 +4,50 @@ describe "buttons" do
4
4
  before(:all) do
5
5
  ParserSupport.parse_file("addons/buttons")
6
6
 
7
- @buttons_list = [
8
- "button",
9
- "input[type=\"button\"]",
10
- "input[type=\"reset\"]",
11
- "input[type=\"submit\"]"
12
- ]
7
+ @buttons_list = %w(
8
+ button
9
+ input[type="button"]
10
+ input[type="reset"]
11
+ input[type="submit"]
12
+ )
13
13
  end
14
14
 
15
15
  context "expands plain buttons" do
16
16
  it "finds selectors" do
17
- @buttons_list.each do |input|
18
- expect(input).to have_rule("color: #ff0000")
19
- end
17
+ list = @buttons_list.join(", ")
18
+ ruleset = "content: #{list};"
19
+
20
+ expect(".all-buttons").to have_ruleset(ruleset)
20
21
  end
21
22
  end
22
23
 
23
24
  context "expands active buttons" do
24
25
  it "finds selectors" do
25
- list = @buttons_list.dup
26
- list.map! { |input| input + ":active" }
27
- list.each do |input|
28
- expect(input).to have_rule("color: #00ff00")
29
- end
26
+ list = @buttons_list.map { |input| "#{input}:active" }
27
+ list = list.join(", ")
28
+ ruleset = "content: #{list};"
29
+
30
+ expect(".all-buttons-active").to have_ruleset(ruleset)
30
31
  end
31
32
  end
32
33
 
33
34
  context "expands focus buttons" do
34
35
  it "finds selectors" do
35
- list = @buttons_list.dup
36
- list.map! { |input| input + ":focus" }
37
- list.each do |input|
38
- expect(input).to have_rule("color: #0000ff")
39
- end
36
+ list = @buttons_list.map { |input| "#{input}:focus" }
37
+ list = list.join(", ")
38
+ ruleset = "content: #{list};"
39
+
40
+ expect(".all-buttons-focus").to have_ruleset(ruleset)
40
41
  end
41
42
  end
42
43
 
43
44
  context "expands hover buttons" do
44
45
  it "finds selectors" do
45
- list = @buttons_list.dup
46
- list.map! { |input| input + ":hover" }
47
- list.each do |input|
48
- expect(input).to have_rule("color: #ff00ff")
49
- end
46
+ list = @buttons_list.map { |input| "#{input}:hover" }
47
+ list = list.join(", ")
48
+ ruleset = "content: #{list};"
49
+
50
+ expect(".all-buttons-hover").to have_ruleset(ruleset)
50
51
  end
51
52
  end
52
53
  end
@@ -15,11 +15,11 @@ describe "font-stacks" do
15
15
  monospace = '"Bitstream Vera Sans Mono", "Consolas", "Courier", monospace'
16
16
  verdana = '"Verdana", "Geneva", sans-serif'
17
17
 
18
- expect(".georgia").to have_rule("font-family: #{georgia}")
19
- expect(".helvetica").to have_rule("font-family: #{helvetica}")
20
- expect(".lucida-grande").to have_rule("font-family: #{lucida_grande}")
21
- expect(".monospace").to have_rule("font-family: #{monospace}")
22
- expect(".verdana").to have_rule("font-family: #{verdana}")
18
+ expect("$georgia").to have_value(georgia)
19
+ expect("$helvetica").to have_value(helvetica)
20
+ expect("$lucida-grande").to have_value(lucida_grande)
21
+ expect("$monospace").to have_value(monospace)
22
+ expect("$verdana").to have_value(verdana)
23
23
  end
24
24
  end
25
25
  end
@@ -4,60 +4,61 @@ describe "text-inputs" do
4
4
  before(:all) do
5
5
  ParserSupport.parse_file("addons/text-inputs")
6
6
 
7
- @inputs_list = [
8
- "input[type=\"color\"]",
9
- "input[type=\"date\"]",
10
- "input[type=\"datetime\"]",
11
- "input[type=\"datetime-local\"]",
12
- "input[type=\"email\"]",
13
- "input[type=\"month\"]",
14
- "input[type=\"number\"]",
15
- "input[type=\"password\"]",
16
- "input[type=\"search\"]",
17
- "input[type=\"tel\"]",
18
- "input[type=\"text\"]",
19
- "input[type=\"time\"]",
20
- "input[type=\"url\"]",
21
- "input[type=\"week\"]",
22
- "textarea"
23
- ]
7
+ @inputs_list = %w(
8
+ input[type="color"]
9
+ input[type="date"]
10
+ input[type="datetime"]
11
+ input[type="datetime-local"]
12
+ input[type="email"]
13
+ input[type="month"]
14
+ input[type="number"]
15
+ input[type="password"]
16
+ input[type="search"]
17
+ input[type="tel"]
18
+ input[type="text"]
19
+ input[type="time"]
20
+ input[type="url"]
21
+ input[type="week"]
22
+ textarea
23
+ )
24
24
  end
25
25
 
26
26
  context "expands plain text inputs" do
27
27
  it "finds selectors" do
28
- @inputs_list.each do |input|
29
- expect(input).to have_rule("color: #ff0000")
30
- end
28
+ list = @inputs_list.join(", ")
29
+ ruleset = "content: #{list};"
30
+
31
+ expect(".all-text-inputs").to have_ruleset(ruleset)
31
32
  end
32
33
  end
33
34
 
34
35
  context "expands active text inputs" do
35
36
  it "finds selectors" do
36
- list = @inputs_list.dup
37
- list.map! { |input| input + ":active" }
38
- list.each do |input|
39
- expect(input).to have_rule("color: #00ff00")
40
- end
37
+ list = @inputs_list.map { |input| "#{input}:active" }
38
+ list = list.join(", ")
39
+ ruleset = "content: #{list};"
40
+
41
+ expect(".all-text-inputs-active").to have_ruleset(ruleset)
41
42
  end
42
43
  end
43
44
 
44
45
  context "expands focus text inputs" do
45
46
  it "finds selectors" do
46
- list = @inputs_list.dup
47
- list.map! { |input| input + ":focus" }
48
- list.each do |input|
49
- expect(input).to have_rule("color: #0000ff")
50
- end
47
+ list = @inputs_list.map { |input| "#{input}:focus" }
48
+ list = list.join(", ")
49
+ ruleset = "content: #{list};"
50
+
51
+ expect(".all-text-inputs-focus").to have_ruleset(ruleset)
51
52
  end
52
53
  end
53
54
 
54
55
  context "expands hover text inputs" do
55
56
  it "finds selectors" do
56
- list = @inputs_list.dup
57
- list.map! { |input| input + ":hover" }
58
- list.each do |input|
59
- expect(input).to have_rule("color: #ff00ff")
60
- end
57
+ list = @inputs_list.map { |input| "#{input}:hover" }
58
+ list = list.join(", ")
59
+ ruleset = "content: #{list};"
60
+
61
+ expect(".all-text-inputs-hover").to have_ruleset(ruleset)
61
62
  end
62
63
  end
63
64
  end
@@ -1,17 +1,17 @@
1
1
  @import "setup";
2
2
 
3
- #{$all-button-inputs} {
4
- color: #ff0000;
3
+ .all-buttons {
4
+ content: $all-buttons;
5
5
  }
6
6
 
7
- #{$all-button-inputs-active} {
8
- color: #00ff00;
7
+ .all-buttons-active {
8
+ content: $all-buttons-active;
9
9
  }
10
10
 
11
- #{$all-button-inputs-focus} {
12
- color: #0000ff;
11
+ .all-buttons-focus {
12
+ content: $all-buttons-focus;
13
13
  }
14
14
 
15
- #{$all-button-inputs-hover} {
16
- color: #ff00ff;
15
+ .all-buttons-hover {
16
+ content: $all-buttons-hover;
17
17
  }
@@ -1,21 +1,21 @@
1
1
  @import "setup";
2
2
 
3
3
  .georgia {
4
- font-family: $georgia;
4
+ content: $georgia;
5
5
  }
6
6
 
7
7
  .helvetica {
8
- font-family: $helvetica;
8
+ content: $helvetica;
9
9
  }
10
10
 
11
11
  .lucida-grande {
12
- font-family: $lucida-grande;
12
+ content: $lucida-grande;
13
13
  }
14
14
 
15
15
  .monospace {
16
- font-family: $monospace;
16
+ content: $monospace;
17
17
  }
18
18
 
19
19
  .verdana {
20
- font-family: $verdana;
20
+ content: $verdana;
21
21
  }
@@ -1,17 +1,17 @@
1
1
  @import "setup";
2
2
 
3
- #{$all-text-inputs} {
4
- color: #ff0000;
3
+ .all-text-inputs {
4
+ content: $all-text-inputs;
5
5
  }
6
6
 
7
- #{$all-text-inputs-active} {
8
- color: #00ff00;
7
+ .all-text-inputs-active {
8
+ content: $all-text-inputs-active;
9
9
  }
10
10
 
11
- #{$all-text-inputs-focus} {
12
- color: #0000ff;
11
+ .all-text-inputs-focus {
12
+ content: $all-text-inputs-focus;
13
13
  }
14
14
 
15
- #{$all-text-inputs-hover} {
16
- color: #ff00ff;
15
+ .all-text-inputs-hover {
16
+ content: $all-text-inputs-hover;
17
17
  }
@@ -1,15 +1,17 @@
1
1
  RSpec::Matchers.define :have_value do |expected|
2
2
  match do |variable|
3
- selector_id = variable.sub("$", "#")
4
- value_attribute = ParserSupport.parser.find_by_selector(selector_id)[0]
3
+ selector_class = variable.sub("$", ".")
4
+ @value_attribute = ParserSupport.parser.find_by_selector(selector_class)[0]
5
5
 
6
- unless value_attribute.nil?
7
- actual_value = value_attribute.split(':')[1].strip.sub(";", "")
6
+ unless @value_attribute.nil?
7
+ actual_value = @value_attribute.split(":")[1].strip.sub(";", "")
8
8
  actual_value == expected
9
9
  end
10
10
  end
11
11
 
12
12
  failure_message_for_should do |variable_name|
13
- %{expected variable #{variable_name} to have value "#{expected}"}
13
+ value_attribute = @value_attribute.to_s
14
+ %{Expected variable #{variable_name} to have value "#{expected}".
15
+ Had "#{value_attribute}".}
14
16
  end
15
17
  end
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.2.2
4
+ version: 4.2.3
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: 2015-04-01 00:00:00.000000000 Z
25
+ date: 2015-05-08 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sass
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: css_parser
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: css_parser
98
+ name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: scss-lint
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.35'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.35'
111
125
  description: |
112
126
  Bourbon is a library of pure Sass mixins that are designed to be simple and easy
113
127
  to use. No configuration required. The mixins aim to be as vanilla as possible,
@@ -321,8 +335,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
335
  - !ruby/object:Gem::Version
322
336
  version: '0'
323
337
  requirements: []
324
- rubyforge_project: bourbon
325
- rubygems_version: 2.2.2
338
+ rubyforge_project:
339
+ rubygems_version: 2.4.5
326
340
  signing_key:
327
341
  specification_version: 4
328
342
  summary: A simple and lightweight mixin library for Sass
@@ -413,3 +427,4 @@ test_files:
413
427
  - spec/support/matchers/have_value.rb
414
428
  - spec/support/parser_support.rb
415
429
  - spec/support/sass_support.rb
430
+ has_rdoc: