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 +4 -4
- data/CONTRIBUTING.md +4 -1
- data/app/assets/stylesheets/_bourbon.scss +1 -1
- data/app/assets/stylesheets/helpers/_font-source-declaration.scss +1 -1
- data/bourbon.gemspec +16 -18
- data/bower.json +1 -1
- data/lib/bourbon/version.rb +1 -1
- data/package.json +1 -1
- data/spec/bourbon/addons/buttons_spec.rb +25 -24
- data/spec/bourbon/addons/font_stacks_spec.rb +5 -5
- data/spec/bourbon/addons/text_inputs_spec.rb +36 -35
- data/spec/fixtures/addons/buttons.scss +8 -8
- data/spec/fixtures/addons/font-stacks.scss +5 -5
- data/spec/fixtures/addons/text-inputs.scss +8 -8
- data/spec/support/matchers/have_value.rb +7 -5
- metadata +22 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7854d5603a9898feaf66d03354fbee4f2d686b42
|
4
|
+
data.tar.gz: 6f9ab2136e0eb11be5344bda57ecbe66a702574c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eda451e7135ce5aa2b172bcd7d2f47a67cd0e56b89b3a30d932f6caffcc9673ddbb1a5d5df8f7fa885d636f18db1805826594967dee714505cb3fcc3854e938a
|
7
|
+
data.tar.gz: 86e8654ef0e6cf1d2004246f3f6404d7c87a27cd0877d8eab595b9f4e6ccf02717f9835a2257a4a6276505e191115aa677cb33f4a5d81e701dd2e438a1e58307
|
data/CONTRIBUTING.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
We love pull requests.
|
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.
|
data/bourbon.gemspec
CHANGED
@@ -1,34 +1,32 @@
|
|
1
|
-
|
2
|
-
|
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 =
|
5
|
+
s.name = "bourbon"
|
7
6
|
s.version = Bourbon::VERSION
|
8
7
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = [
|
10
|
-
s.email =
|
11
|
-
s.license =
|
12
|
-
s.homepage =
|
13
|
-
s.summary =
|
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 = [
|
22
|
+
s.require_paths = ["lib"]
|
26
23
|
|
27
|
-
s.
|
28
|
-
s.
|
24
|
+
s.add_runtime_dependency("sass", "~> 3.4")
|
25
|
+
s.add_runtime_dependency("thor")
|
29
26
|
|
30
|
-
s.add_development_dependency(
|
31
|
-
s.add_development_dependency(
|
32
|
-
s.add_development_dependency(
|
33
|
-
s.add_development_dependency(
|
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
data/lib/bourbon/version.rb
CHANGED
data/package.json
CHANGED
@@ -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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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.
|
18
|
-
|
19
|
-
|
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.
|
26
|
-
list
|
27
|
-
|
28
|
-
|
29
|
-
|
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.
|
36
|
-
list
|
37
|
-
|
38
|
-
|
39
|
-
|
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.
|
46
|
-
list
|
47
|
-
|
48
|
-
|
49
|
-
|
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("
|
19
|
-
expect("
|
20
|
-
expect("
|
21
|
-
expect("
|
22
|
-
expect("
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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.
|
29
|
-
|
30
|
-
|
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.
|
37
|
-
list
|
38
|
-
|
39
|
-
|
40
|
-
|
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.
|
47
|
-
list
|
48
|
-
|
49
|
-
|
50
|
-
|
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.
|
57
|
-
list
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
-
|
4
|
-
|
3
|
+
.all-buttons {
|
4
|
+
content: $all-buttons;
|
5
5
|
}
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
.all-buttons-active {
|
8
|
+
content: $all-buttons-active;
|
9
9
|
}
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
.all-buttons-focus {
|
12
|
+
content: $all-buttons-focus;
|
13
13
|
}
|
14
14
|
|
15
|
-
|
16
|
-
|
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
|
-
|
4
|
+
content: $georgia;
|
5
5
|
}
|
6
6
|
|
7
7
|
.helvetica {
|
8
|
-
|
8
|
+
content: $helvetica;
|
9
9
|
}
|
10
10
|
|
11
11
|
.lucida-grande {
|
12
|
-
|
12
|
+
content: $lucida-grande;
|
13
13
|
}
|
14
14
|
|
15
15
|
.monospace {
|
16
|
-
|
16
|
+
content: $monospace;
|
17
17
|
}
|
18
18
|
|
19
19
|
.verdana {
|
20
|
-
|
20
|
+
content: $verdana;
|
21
21
|
}
|
@@ -1,17 +1,17 @@
|
|
1
1
|
@import "setup";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
.all-text-inputs {
|
4
|
+
content: $all-text-inputs;
|
5
5
|
}
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
.all-text-inputs-active {
|
8
|
+
content: $all-text-inputs-active;
|
9
9
|
}
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
.all-text-inputs-focus {
|
12
|
+
content: $all-text-inputs-focus;
|
13
13
|
}
|
14
14
|
|
15
|
-
|
16
|
-
|
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
|
-
|
4
|
-
value_attribute = ParserSupport.parser.find_by_selector(
|
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(
|
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
|
-
|
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.
|
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-
|
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:
|
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:
|
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:
|
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:
|
325
|
-
rubygems_version: 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:
|