immosquare-constants 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 4aa310d7261d7de7f094d762b7267b2866d99ed219bc8056166b3abda7f6c917
4
- data.tar.gz: 4a34600b8663ea677e31aa856ee47e976a8dc582d668b2766585f58bda446103
3
+ metadata.gz: 8403926356849e266166dfa73088487e5799990725056aa5a548e31d74864e29
4
+ data.tar.gz: bc38b84a421748d12f87b1fa4a4a1667162a8785d042ecc2380266aad04bf478
5
5
  SHA512:
6
- metadata.gz: dfec4e15438ba756f2697e4dd603c2c81ce9c84983f814fedad238d8019015cc7d5f58c925057e7d980651d05435baf07a7dd7d3c7ad89d94503dad889ca67b1
7
- data.tar.gz: e13d4ff3fcf42517f1b0f1244d714d0acbd03a0533c44b4b007e4d0347e01d8d95d342e1b5070f7a1ebd83c23ddd433a8dea752f40383ae961dc73052f21d2bf
6
+ metadata.gz: 6c7659c4c7421f273c2366e91ad23b6eff32b3a013def8a8dbf3b5933a91e17089caa5546ae52f634783182c57d9d1a145a291d924e86943e52789e83898565c
7
+ data.tar.gz: c896808dccc5a50f24c6d84a98e6d752bc69d2c07b0c11ff1f3bcfd15320192590b9a02d1ebba7b54a8ed05d1897ca09717fcc4688c0150f4bf6c6c224de0345
@@ -0,0 +1,159 @@
1
+ module ImmosquareConstants
2
+ module Locale
3
+ COLORS = {
4
+ :aliceblue => "#f0f8ff",
5
+ :antiquewhite => "#faebd7",
6
+ :aqua => "#00ffff",
7
+ :aquamarine => "#7fffd4",
8
+ :azure => "#f0ffff",
9
+ :beige => "#f5f5dc",
10
+ :bisque => "#ffe4c4",
11
+ :black => "#000000",
12
+ :blanchedalmond => "#ffebcd",
13
+ :blue => "#0000ff",
14
+ :blueviolet => "#8a2be2",
15
+ :brown => "#a52a2a",
16
+ :burlywood => "#deb887",
17
+ :cadetblue => "#5f9ea0",
18
+ :chartreuse => "#7fff00",
19
+ :chocolate => "#d2691e",
20
+ :coral => "#ff7f50",
21
+ :cornflowerblue => "#6495ed",
22
+ :cornsilk => "#fff8dc",
23
+ :crimson => "#dc143c",
24
+ :cyan => "#00ffff",
25
+ :darkblue => "#00008b",
26
+ :darkcyan => "#008b8b",
27
+ :darkgoldenrod => "#b8860b",
28
+ :darkgray => "#a9a9a9",
29
+ :darkgreen => "#006400",
30
+ :darkgrey => "#a9a9a9",
31
+ :darkkhaki => "#bdb76b",
32
+ :darkmagenta => "#8b008b",
33
+ :darkolivegreen => "#556b2f",
34
+ :darkorange => "#ff8c00",
35
+ :darkorchid => "#9932cc",
36
+ :darkred => "#8b0000",
37
+ :darksalmon => "#e9967a",
38
+ :darkseagreen => "#8fbc8f",
39
+ :darkslateblue => "#483d8b",
40
+ :darkslategray => "#2f4f4f",
41
+ :darkslategrey => "#2f4f4f",
42
+ :darkturquoise => "#00ced1",
43
+ :darkviolet => "#9400d3",
44
+ :deeppink => "#ff1493",
45
+ :deepskyblue => "#00bfff",
46
+ :dimgray => "#696969",
47
+ :dimgrey => "#696969",
48
+ :dodgerblue => "#1e90ff",
49
+ :firebrick => "#b22222",
50
+ :floralwhite => "#fffaf0",
51
+ :forestgreen => "#228b22",
52
+ :fuchsia => "#ff00ff",
53
+ :gainsboro => "#dcdcdc",
54
+ :ghostwhite => "#f8f8ff",
55
+ :goldenrod => "#daa520",
56
+ :gold => "#ffd700",
57
+ :gray => "#808080",
58
+ :green => "#008000",
59
+ :greenyellow => "#adff2f",
60
+ :grey => "#808080",
61
+ :honeydew => "#f0fff0",
62
+ :hotpink => "#ff69b4",
63
+ :indianred => "#cd5c5c",
64
+ :indigo => "#4b0082",
65
+ :ivory => "#fffff0",
66
+ :khaki => "#f0e68c",
67
+ :lavenderblush => "#fff0f5",
68
+ :lavender => "#e6e6fa",
69
+ :lawngreen => "#7cfc00",
70
+ :lemonchiffon => "#fffacd",
71
+ :lightblue => "#add8e6",
72
+ :lightcoral => "#f08080",
73
+ :lightcyan => "#e0ffff",
74
+ :lightgoldenrodyellow => "#fafad2",
75
+ :lightgray => "#d3d3d3",
76
+ :lightgreen => "#90ee90",
77
+ :lightgrey => "#d3d3d3",
78
+ :lightpink => "#ffb6c1",
79
+ :lightsalmon => "#ffa07a",
80
+ :lightseagreen => "#20b2aa",
81
+ :lightskyblue => "#87cefa",
82
+ :lightslategray => "#778899",
83
+ :lightslategrey => "#778899",
84
+ :lightsteelblue => "#b0c4de",
85
+ :lightyellow => "#ffffe0",
86
+ :lime => "#00ff00",
87
+ :limegreen => "#32cd32",
88
+ :linen => "#faf0e6",
89
+ :magenta => "#ff00ff",
90
+ :maroon => "#800000",
91
+ :mediumaquamarine => "#66cdaa",
92
+ :mediumblue => "#0000cd",
93
+ :mediumorchid => "#ba55d3",
94
+ :mediumpurple => "#9370db",
95
+ :mediumseagreen => "#3cb371",
96
+ :mediumslateblue => "#7b68ee",
97
+ :mediumspringgreen => "#00fa9a",
98
+ :mediumturquoise => "#48d1cc",
99
+ :mediumvioletred => "#c71585",
100
+ :midnightblue => "#191970",
101
+ :mintcream => "#f5fffa",
102
+ :mistyrose => "#ffe4e1",
103
+ :moccasin => "#ffe4b5",
104
+ :navajowhite => "#ffdead",
105
+ :navy => "#000080",
106
+ :oldlace => "#fdf5e6",
107
+ :olive => "#808000",
108
+ :olivedrab => "#6b8e23",
109
+ :orange => "#ffa500",
110
+ :orangered => "#ff4500",
111
+ :orchid => "#da70d6",
112
+ :palegoldenrod => "#eee8aa",
113
+ :palegreen => "#98fb98",
114
+ :paleturquoise => "#afeeee",
115
+ :palevioletred => "#db7093",
116
+ :papayawhip => "#ffefd5",
117
+ :peachpuff => "#ffdab9",
118
+ :peru => "#cd853f",
119
+ :pink => "#ffc0cb",
120
+ :plum => "#dda0dd",
121
+ :powderblue => "#b0e0e6",
122
+ :purple => "#800080",
123
+ :rebeccapurple => "#663399",
124
+ :red => "#ff0000",
125
+ :rosybrown => "#bc8f8f",
126
+ :royalblue => "#4169e1",
127
+ :saddlebrown => "#8b4513",
128
+ :salmon => "#fa8072",
129
+ :sandybrown => "#f4a460",
130
+ :seagreen => "#2e8b57",
131
+ :seashell => "#fff5ee",
132
+ :sienna => "#a0522d",
133
+ :silver => "#c0c0c0",
134
+ :skyblue => "#87ceeb",
135
+ :slateblue => "#6a5acd",
136
+ :slategray => "#708090",
137
+ :slategrey => "#708090",
138
+ :snow => "#fffafa",
139
+ :springgreen => "#00ff7f",
140
+ :steelblue => "#4682b4",
141
+ :tan => "#d2b48c",
142
+ :teal => "#008080",
143
+ :thistle => "#d8bfd8",
144
+ :tomato => "#ff6347",
145
+ :turquoise => "#40e0d0",
146
+ :violet => "#ee82ee",
147
+ :wheat => "#f5deb3",
148
+ :white => "#ffffff",
149
+ :whitesmoke => "#f5f5f5",
150
+ :yellow => "#ffff00",
151
+ :yellowgreen => "#9acd32"
152
+ }.freeze
153
+
154
+
155
+ def color_name_to_hex(color_name)
156
+ COLORS[color_name.to_sym] || nil
157
+ end
158
+ end
159
+ end
@@ -1,3 +1,3 @@
1
1
  module ImmosquareConstants
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require "immosquare-constants/locale"
2
+ require "immosquare-constants/color"
2
3
 
3
4
  module ImmosquareConstants
4
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-constants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE
@@ -19,6 +19,7 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - lib/immosquare-constants.rb
22
+ - lib/immosquare-constants/color.rb
22
23
  - lib/immosquare-constants/locale.rb
23
24
  - lib/immosquare-constants/version.rb
24
25
  homepage: https://github.com/IMMOSQUARE/immosquare-constants