color_splat 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 98275bbab7c19072a379907bada3640b75eebcf4
4
+ data.tar.gz: 324ffc6ec8fa3e6f1a23397cca39239901f7e076
5
+ SHA512:
6
+ metadata.gz: 157e320e2990c3c309489d283f2dcf9d6e5eecb2c9f45b712cdfcd54c5d959f176ed7c4961f83b687a3bd9bbbf4e38edb22a11ab8cc1cdaf526c80c4910ab411
7
+ data.tar.gz: 570943d5d0a11f61577aa0c0c40ca4ed6193de7e581a23df55a86a97ad35e49307d4bbe6df30d75363245b4d1d4bafaab985667e3b987cd0aef4a3bcd15f231d
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2016 Kevin Serrano
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # ColorSplat
2
+
3
+ A gem that provides color data based on various flags, logos, and keywords.
@@ -0,0 +1,3 @@
1
+ module ColorSplat
2
+ end
3
+ require_relative 'color_splat/flags'
@@ -0,0 +1,32 @@
1
+ module ColorSplat
2
+ class Flags
3
+ @@flag_hash = {
4
+ "united states" => ["FFFFFF","B22234","3C3B6E"],
5
+ "france" => ["FFFFFF","0055A4","EF4135"],
6
+ "japan" => ["FFFFFF","BC002D"],
7
+ "philippines" => ["FFFFFF","0038A8","CE1126","FCD116"],
8
+ "germany" => ["000000","FF0000","FFCC00"],
9
+ "canada" => ["FFFFFF","FF0000"],
10
+ "mexico" => ["FFFFFF","006847","CE1126"],
11
+ "israel" => ["FFFFFF","0038A8"],
12
+ "china" => ["DE2910","FFDE00"],
13
+ "hong kong" => ["FFFFFF","FF0000"],
14
+ "taiwan" => ["0029CC","F20000"],
15
+ "south korea" => ["FFFFFF","C60C30","003478","000000"],
16
+ "singapore" => ["FFFFFF","ED2E38"],
17
+ "brazil" => ["FFFFFF","00A859","FFCC29","3E4095"],
18
+ "european union" => ["003399","FFCC00"],
19
+ "united nations" => ["FFFFFF","5B92E5"],
20
+
21
+ }
22
+ def self.colors_of(flagname)
23
+ puts "hello"
24
+ @@flag_hash[flagname.downcase]
25
+ end
26
+
27
+ def self.show_flags
28
+ @@flag_hash
29
+ end
30
+ end
31
+
32
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: color_splat
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Zanibas
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A gem that provides color data based on various flags, logos, and keywords.
14
+ The current version only provides approximate RGB specifications and are in no way
15
+ standardized.
16
+ email: kevgagser@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE
22
+ - README.md
23
+ - lib/color_splat.rb
24
+ - lib/color_splat/flags.rb
25
+ homepage: https://github.com/Zanibas/Color-Splat
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message: Thank you for installing ColorSplat! Please submit any bugs
30
+ or requests to this gem's GitHub!
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.4.5.1
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: A gem to generate colors based on various flags, logos, and keywords
50
+ test_files: []