clrs 2.0.0 → 2.0.1

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: 479dcf2eaaf4404d275228b02055b6dc8b74abbe
4
- data.tar.gz: 4793d887922387e209467d2b54f60eb02236830c
3
+ metadata.gz: 818f619c774922d817e66a6a51b04a36098b5021
4
+ data.tar.gz: 055f86a8d3f5ba47bd78748dbdf6e984016793d7
5
5
  SHA512:
6
- metadata.gz: 705612038db99d97c6796dfad81f3ba135f68b960d2f90b34ea78b3c5ad6d39f8414e4d73d75fa5d1b66658a6a2d9e52b1b6098dd887450553c21fc71a1a50d2
7
- data.tar.gz: 7baef5bc7982770660ec54266e634848fd424e43cf753f06775653ea1890e17cd1ff3df630fc49bb49d595b421a352a95124f5be590eb34fd3b7d9ce5a25199e
6
+ metadata.gz: 7866bcf3c656f3484f7cd7ff61ef221464fd11fbb21c24ec0ab2b8b917701079df6f7bf55cf89be9d17cc0775b898624c1c0d443d831bf17fb36b5f054e5884c
7
+ data.tar.gz: 04decddecae87590c65b06639dedc5a3b1de1574890bf7112a0d17374a46593bad21cd6de16cceb3b0c0e554f7ef2a94abb12a38f129dd94a996c3981b02529c
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.gem
1
2
  *.rbc
2
3
  *.sassc
3
4
  .sass-cache
@@ -17,3 +18,4 @@ rerun.txt
17
18
  pickle-email-*.html
18
19
  .project
19
20
  config/initializers/secret_token.rb
21
+ Gemfile.lock
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 John Otander
3
+ Copyright (c) 2014 @mrmrs, John Otander
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
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
- More documentation on clrs.cc available at <https://github.com/mrmrs/colors>.
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
@@ -1 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "lib" << "test"
6
+ t.pattern = "test/**/*_test.rb"
7
+ t.verbose = false
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,6 @@
1
+ // SATURATED COLOR VARIABLES
2
+
3
+ <% Clrs::Saturated.colors.each do |name, code| %>
4
+ $<%= name %>: <%= code %>;
5
+ <% end %>
6
+
@@ -0,0 +1,7 @@
1
+ //
2
+ // COLOR VARIABLES
3
+ //
4
+
5
+ <% Clrs.colors.each do |name, code| %>
6
+ $<%= name %>: <%= code %>;
7
+ <% end %>
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "minitest"
23
24
  end
@@ -1,5 +1,6 @@
1
1
  require "clrs/version"
2
2
  require "clrs/engine"
3
+ require "clrs/colors"
3
4
 
4
5
  module Clrs
5
6
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Clrs
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -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
@@ -0,0 +1,9 @@
1
+ require "test_helper"
2
+
3
+ class SaturatedColorsTest < Minitest::Test
4
+ def test_colors_have_accessor_methods
5
+ Clrs::Saturated.colors.each do |c,_|
6
+ assert_respond_to Clrs::Saturated, c
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ require "minitest/autorun"
2
+ require "clrs"
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.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-08-04 00:00:00.000000000 Z
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
- has_rdoc:
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;
Binary file
Binary file
Binary file
Binary file