clrs 2.0.1 → 2.0.2

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: 818f619c774922d817e66a6a51b04a36098b5021
4
- data.tar.gz: 055f86a8d3f5ba47bd78748dbdf6e984016793d7
3
+ metadata.gz: b08d3d802d123b5f49646b02b97f660388998902
4
+ data.tar.gz: 0ece9d63c9a8746547e6ce25dd32f1aaa11bfd43
5
5
  SHA512:
6
- metadata.gz: 7866bcf3c656f3484f7cd7ff61ef221464fd11fbb21c24ec0ab2b8b917701079df6f7bf55cf89be9d17cc0775b898624c1c0d443d831bf17fb36b5f054e5884c
7
- data.tar.gz: 04decddecae87590c65b06639dedc5a3b1de1574890bf7112a0d17374a46593bad21cd6de16cceb3b0c0e554f7ef2a94abb12a38f129dd94a996c3981b02529c
6
+ metadata.gz: c209433eaff9f48205771151da5a02cc1132f2fe2396803593ec6a8e226d25ad4e163c76f82e03579752e3784b79c6d55883d9f3e56e72b4c90fe9145de636e8
7
+ data.tar.gz: 9a86076de5230256ed9c4b4685b79eb44a8ed502e00322137d73fe70c4453aa6fbc1e3a39a80a2f7e6373aef1209230da100a1bb5eb5e80a4e3a5a58bab1a0d9
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9
4
+ - 2
@@ -1,3 +1,3 @@
1
1
  module Clrs
2
- VERSION = "2.0.1"
2
+ VERSION = '2.0.2'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 @mrmrs, John Otander
3
+ Copyright (c) 2014-2015 @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
@@ -1,10 +1,6 @@
1
- # Clrs
1
+ # clrs [![Build Status](https://travis-ci.org/johnotander/clrs.svg?branch=master)](https://travis-ci.org/johnotander/clrs)
2
2
 
3
- [![Build Status](https://travis-ci.org/johnotander/clrs.svg?branch=master)](https://travis-ci.org/johnotander/clrs)
4
-
5
- Include the <http://www.clrs.cc> palette as scss variables in your Rails apps.
6
-
7
- Repackaged from: <https://github.com/mrmrs/colors> by @mrmrs_.
3
+ Include the [colors.css](http://www.clrs.cc) palette as scss variables in your Rails apps.
8
4
 
9
5
  ## Installation
10
6
 
@@ -98,6 +94,31 @@ Additionally, there are `background-color` and `color` classes:
98
94
 
99
95
  __NOTE:__ You must require the clrs stylesheet before other stylesheets using the above scss variables.
100
96
 
97
+ ### The `Clrs` module
98
+
99
+ There's also a `Clrs` module so you can access the hex values in Ruby, too:
100
+
101
+ ```ruby
102
+ require 'clrs'
103
+ # => true
104
+
105
+ Clrs.colors
106
+ # => {:aqua=>"#7FDBFF", :blue=>"#0074D9", :navy=>"#001F3F", :teal=>"#39CCCC", :green=>"#2ECC40", :olive=>"#3D9970", :lime=>"#01FF70", :yellow=>"#FFDC00", :orange=>"#FF851B", :red=>"#FF4136", :fuchsia=>"#F012BE", :purple=>"#B10DC9", :maroon=>"#85144B", :white=>"#fff", :silver=>"#ddd", :gray=>"#aaa", :black=>"#111"}
107
+
108
+ Clrs::Saturated.colors
109
+ # => {:navy=>"#002B75", :blue=>"#0050D4", :aqua=>"#00D9F7", :teal=>"#00A6A6", :olive=>"#00B562", :green=>"#00D942", :lime=>"#B4D900", :yellow=>"#EBCF00", :orange=>"#EB7700", :red=>"#EB0012", :maroon=>"#790009", :fuchsia=>"#FF00C3", :purple=>"#8D00FF", :white=>"#fff", :silver=>"#777", :gray=>"#333", :black=>"#000"}
110
+
111
+ Clrs.blue
112
+ # => "#0074D9"
113
+
114
+ Clrs::Saturated.olive
115
+ # => "#00B562"
116
+ ```
117
+
118
+ ## Related
119
+
120
+ * <https://github.com/mrmrs/colors>
121
+
101
122
  ## Contributing
102
123
 
103
124
  1. Fork it
@@ -106,8 +127,6 @@ __NOTE:__ You must require the clrs stylesheet before other stylesheets using th
106
127
  4. Push to the branch (`git push origin my-new-feature`)
107
128
  5. Create new Pull Request
108
129
 
109
- ## Acknowledgements
110
-
111
- * The scss is written by @mrmrs_: <https://github.com/mrmrs/colors>
130
+ ***
112
131
 
113
- More documentation available at <https://github.com/mrmrs/colors>.
132
+ > More documentation available at <https://github.com/mrmrs/colors>.
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.1
4
+ version: 2.0.2
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-10-18 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,9 +60,8 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - ".travis.yml"
63
64
  - Gemfile
64
- - LICENSE
65
- - README.md
66
65
  - Rakefile
67
66
  - app/assets/stylesheets/clrs-saturated.scss
68
67
  - app/assets/stylesheets/clrs-saturated/_skins.scss
@@ -75,6 +74,8 @@ files:
75
74
  - lib/clrs/colors.rb
76
75
  - lib/clrs/engine.rb
77
76
  - lib/clrs/version.rb
77
+ - license
78
+ - readme.md
78
79
  - test/colors_test.rb
79
80
  - test/saturated_colors_test.rb
80
81
  - test/test_helper.rb
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  requirements: []
100
101
  rubyforge_project:
101
- rubygems_version: 2.2.2
102
+ rubygems_version: 2.4.3
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: A gem for a nicer color palette for the web, chosen by clrs.cc
@@ -106,3 +107,4 @@ test_files:
106
107
  - test/colors_test.rb
107
108
  - test/saturated_colors_test.rb
108
109
  - test/test_helper.rb
110
+ has_rdoc: