clrs 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/LICENSE +1 -1
- data/README.md +8 -2
- data/Rakefile +9 -0
- data/app/assets/stylesheets/clrs-saturated/_variables.scss.erb +6 -0
- data/app/assets/stylesheets/clrs/_variables.scss.erb +7 -0
- data/clrs.gemspec +1 -0
- data/lib/clrs.rb +1 -0
- data/lib/clrs/colors.rb +59 -0
- data/lib/clrs/version.rb +1 -1
- data/test/colors_test.rb +19 -0
- data/test/saturated_colors_test.rb +9 -0
- data/test/test_helper.rb +2 -0
- metadata +26 -10
- data/app/assets/stylesheets/clrs-saturated/_variables.scss +0 -19
- data/app/assets/stylesheets/clrs/_variables.scss +0 -33
- data/clrs-0.0.2.gem +0 -0
- data/clrs-1.0.0.gem +0 -0
- data/clrs-1.1.0.gem +0 -0
- data/clrs-1.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818f619c774922d817e66a6a51b04a36098b5021
|
4
|
+
data.tar.gz: 055f86a8d3f5ba47bd78748dbdf6e984016793d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7866bcf3c656f3484f7cd7ff61ef221464fd11fbb21c24ec0ab2b8b917701079df6f7bf55cf89be9d17cc0775b898624c1c0d443d831bf17fb36b5f054e5884c
|
7
|
+
data.tar.gz: 04decddecae87590c65b06639dedc5a3b1de1574890bf7112a0d17374a46593bad21cd6de16cceb3b0c0e554f7ef2a94abb12a38f129dd94a996c3981b02529c
|
data/.gitignore
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# Clrs
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/johnotander/clrs.svg?branch=master)](https://travis-ci.org/johnotander/clrs)
|
4
|
+
|
3
5
|
Include the <http://www.clrs.cc> palette as scss variables in your Rails apps.
|
4
6
|
|
5
|
-
Repackaged from: <https://github.com/mrmrs/colors
|
7
|
+
Repackaged from: <https://github.com/mrmrs/colors> by @mrmrs_.
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -104,4 +106,8 @@ __NOTE:__ You must require the clrs stylesheet before other stylesheets using th
|
|
104
106
|
4. Push to the branch (`git push origin my-new-feature`)
|
105
107
|
5. Create new Pull Request
|
106
108
|
|
107
|
-
|
109
|
+
## Acknowledgements
|
110
|
+
|
111
|
+
* The scss is written by @mrmrs_: <https://github.com/mrmrs/colors>
|
112
|
+
|
113
|
+
More documentation available at <https://github.com/mrmrs/colors>.
|
data/Rakefile
CHANGED
data/clrs.gemspec
CHANGED
data/lib/clrs.rb
CHANGED
data/lib/clrs/colors.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
module Clrs
|
2
|
+
@colors = {
|
3
|
+
aqua: "#7FDBFF",
|
4
|
+
blue: "#0074D9",
|
5
|
+
navy: "#001F3F",
|
6
|
+
teal: "#39CCCC",
|
7
|
+
green: "#2ECC40",
|
8
|
+
olive: "#3D9970",
|
9
|
+
lime: "#01FF70",
|
10
|
+
yellow: "#FFDC00",
|
11
|
+
orange: "#FF851B",
|
12
|
+
red: "#FF4136",
|
13
|
+
fuchsia: "#F012BE",
|
14
|
+
purple: "#B10DC9",
|
15
|
+
maroon: "#85144B",
|
16
|
+
white: "#fff",
|
17
|
+
silver: "#ddd",
|
18
|
+
gray: "#aaa",
|
19
|
+
black: "#111",
|
20
|
+
}.freeze
|
21
|
+
|
22
|
+
def self.colors
|
23
|
+
@colors
|
24
|
+
end
|
25
|
+
|
26
|
+
colors.each do |name, code|
|
27
|
+
define_singleton_method(name) { code }
|
28
|
+
end
|
29
|
+
|
30
|
+
module Saturated
|
31
|
+
@colors = {
|
32
|
+
navy: "#002B75",
|
33
|
+
blue: "#0050D4",
|
34
|
+
aqua: "#00D9F7",
|
35
|
+
teal: "#00A6A6",
|
36
|
+
olive: "#00B562",
|
37
|
+
green: "#00D942",
|
38
|
+
lime: "#B4D900",
|
39
|
+
yellow: "#EBCF00",
|
40
|
+
orange: "#EB7700",
|
41
|
+
red: "#EB0012",
|
42
|
+
maroon: "#790009",
|
43
|
+
fuchsia: "#FF00C3",
|
44
|
+
purple: "#8D00FF",
|
45
|
+
white: "#fff",
|
46
|
+
silver: "#777",
|
47
|
+
gray: "#333",
|
48
|
+
black: "#000",
|
49
|
+
}.freeze
|
50
|
+
|
51
|
+
def self.colors
|
52
|
+
@colors
|
53
|
+
end
|
54
|
+
|
55
|
+
colors.each do |name, code|
|
56
|
+
define_singleton_method(name) { code }
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/clrs/version.rb
CHANGED
data/test/colors_test.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class ColorsTest < Minitest::Test
|
4
|
+
def test_colors_return_all_defined_colors
|
5
|
+
assert_kind_of Hash, Clrs.colors
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_module_has_method_for_every_color
|
9
|
+
Clrs.colors.each do |c, _|
|
10
|
+
assert_respond_to Clrs, c
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_colors_are_hex_codes
|
15
|
+
Clrs.colors.each do |_, c|
|
16
|
+
assert_match /#\w{3,6}/, c
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clrs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Otander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Include clrs.cc in your Rails apps.
|
42
56
|
email:
|
43
57
|
- johnotander@gmail.com
|
@@ -52,18 +66,18 @@ files:
|
|
52
66
|
- Rakefile
|
53
67
|
- app/assets/stylesheets/clrs-saturated.scss
|
54
68
|
- app/assets/stylesheets/clrs-saturated/_skins.scss
|
55
|
-
- app/assets/stylesheets/clrs-saturated/_variables.scss
|
69
|
+
- app/assets/stylesheets/clrs-saturated/_variables.scss.erb
|
56
70
|
- app/assets/stylesheets/clrs.scss
|
57
71
|
- app/assets/stylesheets/clrs/_skins.scss
|
58
|
-
- app/assets/stylesheets/clrs/_variables.scss
|
59
|
-
- clrs-0.0.2.gem
|
60
|
-
- clrs-1.0.0.gem
|
61
|
-
- clrs-1.1.0.gem
|
62
|
-
- clrs-1.2.0.gem
|
72
|
+
- app/assets/stylesheets/clrs/_variables.scss.erb
|
63
73
|
- clrs.gemspec
|
64
74
|
- lib/clrs.rb
|
75
|
+
- lib/clrs/colors.rb
|
65
76
|
- lib/clrs/engine.rb
|
66
77
|
- lib/clrs/version.rb
|
78
|
+
- test/colors_test.rb
|
79
|
+
- test/saturated_colors_test.rb
|
80
|
+
- test/test_helper.rb
|
67
81
|
homepage: https://github.com/johnotander/clrs
|
68
82
|
licenses:
|
69
83
|
- MIT
|
@@ -88,5 +102,7 @@ rubygems_version: 2.2.2
|
|
88
102
|
signing_key:
|
89
103
|
specification_version: 4
|
90
104
|
summary: A gem for a nicer color palette for the web, chosen by clrs.cc
|
91
|
-
test_files:
|
92
|
-
|
105
|
+
test_files:
|
106
|
+
- test/colors_test.rb
|
107
|
+
- test/saturated_colors_test.rb
|
108
|
+
- test/test_helper.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
// COLOR VARIABLES
|
2
|
-
|
3
|
-
$navy: #002B75;
|
4
|
-
$blue: #0050D4;
|
5
|
-
$aqua: #00D9F7;
|
6
|
-
$teal: #00A6A6;
|
7
|
-
$olive: #00B562;
|
8
|
-
$green: #00D942;
|
9
|
-
$lime: #B4D900;
|
10
|
-
$yellow: #EBCF00;
|
11
|
-
$orange: #EB7700;
|
12
|
-
$red: #EB0012;
|
13
|
-
$maroon: #790009;
|
14
|
-
$fuchsia: #FF00C3;
|
15
|
-
$purple: #8D00FF;
|
16
|
-
$white: #fff;
|
17
|
-
$silver: #777;
|
18
|
-
$gray: #333;
|
19
|
-
$black: #000;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// COLOR VARIABLES
|
3
|
-
//
|
4
|
-
// - Cool
|
5
|
-
// - Warm
|
6
|
-
// - Gray Scale
|
7
|
-
//
|
8
|
-
|
9
|
-
// Cool
|
10
|
-
|
11
|
-
$aqua: #7FDBFF;
|
12
|
-
$blue: #0074D9;
|
13
|
-
$navy: #001F3F;
|
14
|
-
$teal: #39CCCC;
|
15
|
-
$green: #2ECC40;
|
16
|
-
$olive: #3D9970;
|
17
|
-
$lime: #01FF70;
|
18
|
-
|
19
|
-
// Warm
|
20
|
-
|
21
|
-
$yellow: #FFDC00;
|
22
|
-
$orange: #FF851B;
|
23
|
-
$red: #FF4136;
|
24
|
-
$fuchsia: #F012BE;
|
25
|
-
$purple: #B10DC9;
|
26
|
-
$maroon: #85144B;
|
27
|
-
|
28
|
-
// Gray Scale
|
29
|
-
|
30
|
-
$white: #fff;
|
31
|
-
$silver: #ddd;
|
32
|
-
$gray: #aaa;
|
33
|
-
$black: #111;
|
data/clrs-0.0.2.gem
DELETED
Binary file
|
data/clrs-1.0.0.gem
DELETED
Binary file
|
data/clrs-1.1.0.gem
DELETED
Binary file
|
data/clrs-1.2.0.gem
DELETED
Binary file
|