digix_devise_token_auth 0.1.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +13 -0
  3. data/README.md +952 -0
  4. data/Rakefile +35 -0
  5. data/app/controllers/devise_token_auth/application_controller.rb +76 -0
  6. data/app/controllers/devise_token_auth/concerns/resource_finder.rb +43 -0
  7. data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +165 -0
  8. data/app/controllers/devise_token_auth/confirmations_controller.rb +30 -0
  9. data/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +243 -0
  10. data/app/controllers/devise_token_auth/passwords_controller.rb +202 -0
  11. data/app/controllers/devise_token_auth/registrations_controller.rb +205 -0
  12. data/app/controllers/devise_token_auth/sessions_controller.rb +133 -0
  13. data/app/controllers/devise_token_auth/token_validations_controller.rb +29 -0
  14. data/app/controllers/devise_token_auth/unlocks_controller.rb +89 -0
  15. data/app/models/devise_token_auth/concerns/user.rb +260 -0
  16. data/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +26 -0
  17. data/app/validators/email_validator.rb +21 -0
  18. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  19. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  20. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  21. data/app/views/devise_token_auth/omniauth_external_window.html.erb +38 -0
  22. data/config/initializers/devise.rb +196 -0
  23. data/config/locales/da-DK.yml +50 -0
  24. data/config/locales/de.yml +49 -0
  25. data/config/locales/en.yml +50 -0
  26. data/config/locales/es.yml +49 -0
  27. data/config/locales/fr.yml +49 -0
  28. data/config/locales/it.yml +46 -0
  29. data/config/locales/ja.yml +46 -0
  30. data/config/locales/nl.yml +30 -0
  31. data/config/locales/pl.yml +48 -0
  32. data/config/locales/pt-BR.yml +46 -0
  33. data/config/locales/pt.yml +48 -0
  34. data/config/locales/ro.yml +46 -0
  35. data/config/locales/ru.yml +50 -0
  36. data/config/locales/sq.yml +46 -0
  37. data/config/locales/uk.yml +59 -0
  38. data/config/locales/vi.yml +50 -0
  39. data/config/locales/zh-CN.yml +46 -0
  40. data/config/locales/zh-HK.yml +48 -0
  41. data/config/locales/zh-TW.yml +48 -0
  42. data/lib/devise_token_auth.rb +8 -0
  43. data/lib/devise_token_auth/controllers/helpers.rb +149 -0
  44. data/lib/devise_token_auth/controllers/url_helpers.rb +8 -0
  45. data/lib/devise_token_auth/engine.rb +90 -0
  46. data/lib/devise_token_auth/rails/routes.rb +114 -0
  47. data/lib/devise_token_auth/url.rb +37 -0
  48. data/lib/devise_token_auth/version.rb +3 -0
  49. data/lib/generators/devise_token_auth/USAGE +31 -0
  50. data/lib/generators/devise_token_auth/install_generator.rb +160 -0
  51. data/lib/generators/devise_token_auth/install_views_generator.rb +16 -0
  52. data/lib/generators/devise_token_auth/templates/devise_token_auth.rb +48 -0
  53. data/lib/generators/devise_token_auth/templates/devise_token_auth_create_users.rb.erb +55 -0
  54. data/lib/generators/devise_token_auth/templates/user.rb +7 -0
  55. data/lib/tasks/devise_token_auth_tasks.rake +4 -0
  56. data/test/controllers/custom/custom_confirmations_controller_test.rb +21 -0
  57. data/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb +29 -0
  58. data/test/controllers/custom/custom_passwords_controller_test.rb +75 -0
  59. data/test/controllers/custom/custom_registrations_controller_test.rb +54 -0
  60. data/test/controllers/custom/custom_sessions_controller_test.rb +37 -0
  61. data/test/controllers/custom/custom_token_validations_controller_test.rb +40 -0
  62. data/test/controllers/demo_group_controller_test.rb +153 -0
  63. data/test/controllers/demo_mang_controller_test.rb +284 -0
  64. data/test/controllers/demo_user_controller_test.rb +601 -0
  65. data/test/controllers/devise_token_auth/confirmations_controller_test.rb +129 -0
  66. data/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb +371 -0
  67. data/test/controllers/devise_token_auth/passwords_controller_test.rb +649 -0
  68. data/test/controllers/devise_token_auth/registrations_controller_test.rb +878 -0
  69. data/test/controllers/devise_token_auth/sessions_controller_test.rb +500 -0
  70. data/test/controllers/devise_token_auth/token_validations_controller_test.rb +90 -0
  71. data/test/controllers/devise_token_auth/unlocks_controller_test.rb +194 -0
  72. data/test/controllers/overrides/confirmations_controller_test.rb +43 -0
  73. data/test/controllers/overrides/omniauth_callbacks_controller_test.rb +49 -0
  74. data/test/controllers/overrides/passwords_controller_test.rb +66 -0
  75. data/test/controllers/overrides/registrations_controller_test.rb +40 -0
  76. data/test/controllers/overrides/sessions_controller_test.rb +33 -0
  77. data/test/controllers/overrides/token_validations_controller_test.rb +41 -0
  78. data/test/dummy/README.rdoc +28 -0
  79. data/test/dummy/app/controllers/application_controller.rb +16 -0
  80. data/test/dummy/app/controllers/auth_origin_controller.rb +5 -0
  81. data/test/dummy/app/controllers/custom/confirmations_controller.rb +13 -0
  82. data/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb +11 -0
  83. data/test/dummy/app/controllers/custom/passwords_controller.rb +40 -0
  84. data/test/dummy/app/controllers/custom/registrations_controller.rb +39 -0
  85. data/test/dummy/app/controllers/custom/sessions_controller.rb +29 -0
  86. data/test/dummy/app/controllers/custom/token_validations_controller.rb +19 -0
  87. data/test/dummy/app/controllers/demo_group_controller.rb +13 -0
  88. data/test/dummy/app/controllers/demo_mang_controller.rb +12 -0
  89. data/test/dummy/app/controllers/demo_user_controller.rb +25 -0
  90. data/test/dummy/app/controllers/overrides/confirmations_controller.rb +26 -0
  91. data/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb +14 -0
  92. data/test/dummy/app/controllers/overrides/passwords_controller.rb +33 -0
  93. data/test/dummy/app/controllers/overrides/registrations_controller.rb +27 -0
  94. data/test/dummy/app/controllers/overrides/sessions_controller.rb +36 -0
  95. data/test/dummy/app/controllers/overrides/token_validations_controller.rb +23 -0
  96. data/test/dummy/app/helpers/application_helper.rb +1065 -0
  97. data/test/dummy/app/models/evil_user.rb +3 -0
  98. data/test/dummy/app/models/lockable_user.rb +5 -0
  99. data/test/dummy/app/models/mang.rb +3 -0
  100. data/test/dummy/app/models/nice_user.rb +7 -0
  101. data/test/dummy/app/models/only_email_user.rb +5 -0
  102. data/test/dummy/app/models/scoped_user.rb +7 -0
  103. data/test/dummy/app/models/unconfirmable_user.rb +8 -0
  104. data/test/dummy/app/models/unregisterable_user.rb +7 -0
  105. data/test/dummy/app/models/user.rb +18 -0
  106. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  107. data/test/dummy/config.ru +16 -0
  108. data/test/dummy/config/application.rb +24 -0
  109. data/test/dummy/config/application.yml.bk +0 -0
  110. data/test/dummy/config/boot.rb +5 -0
  111. data/test/dummy/config/environment.rb +5 -0
  112. data/test/dummy/config/environments/development.rb +44 -0
  113. data/test/dummy/config/environments/production.rb +82 -0
  114. data/test/dummy/config/environments/test.rb +48 -0
  115. data/test/dummy/config/initializers/assets.rb +8 -0
  116. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  117. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  118. data/test/dummy/config/initializers/devise.rb +3 -0
  119. data/test/dummy/config/initializers/devise_token_auth.rb +22 -0
  120. data/test/dummy/config/initializers/figaro.rb +1 -0
  121. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  122. data/test/dummy/config/initializers/inflections.rb +16 -0
  123. data/test/dummy/config/initializers/mime_types.rb +4 -0
  124. data/test/dummy/config/initializers/omniauth.rb +8 -0
  125. data/test/dummy/config/initializers/session_store.rb +3 -0
  126. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  127. data/test/dummy/config/routes.rb +72 -0
  128. data/test/dummy/config/spring.rb +1 -0
  129. data/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb +63 -0
  130. data/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb +62 -0
  131. data/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb +6 -0
  132. data/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb +5 -0
  133. data/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb +64 -0
  134. data/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb +60 -0
  135. data/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb +61 -0
  136. data/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb +61 -0
  137. data/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb +61 -0
  138. data/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb +61 -0
  139. data/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb +61 -0
  140. data/test/dummy/db/schema.rb +258 -0
  141. data/test/dummy/lib/migration_database_helper.rb +29 -0
  142. data/test/integration/navigation_test.rb +10 -0
  143. data/test/lib/devise_token_auth/url_test.rb +24 -0
  144. data/test/lib/generators/devise_token_auth/install_generator_test.rb +187 -0
  145. data/test/lib/generators/devise_token_auth/install_views_generator_test.rb +23 -0
  146. data/test/models/only_email_user_test.rb +35 -0
  147. data/test/models/user_test.rb +169 -0
  148. data/test/test_helper.rb +77 -0
  149. metadata +342 -0
@@ -0,0 +1,36 @@
1
+ module Overrides
2
+ class SessionsController < DeviseTokenAuth::SessionsController
3
+ OVERRIDE_PROOF = "(^^,)"
4
+
5
+ def create
6
+ @resource = resource_class.find_by(email: resource_params[:email])
7
+
8
+ if @resource and valid_params?(:email, resource_params[:email]) and @resource.valid_password?(resource_params[:password]) and @resource.confirmed?
9
+ @client_id, @token = @resource.create_token
10
+ @resource.save
11
+
12
+ render json: {
13
+ data: @resource.as_json(except: [
14
+ :tokens, :created_at, :updated_at
15
+ ]),
16
+ override_proof: OVERRIDE_PROOF
17
+ }
18
+
19
+ elsif @resource and not @resource.confirmed?
20
+ render json: {
21
+ success: false,
22
+ errors: [
23
+ "A confirmation email was sent to your account at #{@resource.email}. "+
24
+ "You must follow the instructions in the email before your account "+
25
+ "can be activated"
26
+ ]
27
+ }, status: 401
28
+
29
+ else
30
+ render json: {
31
+ errors: ["Invalid login credentials. Please try again."]
32
+ }, status: 401
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,23 @@
1
+ module Overrides
2
+ class TokenValidationsController < DeviseTokenAuth::TokenValidationsController
3
+ OVERRIDE_PROOF = '(^^,)'
4
+
5
+ def validate_token
6
+ # @resource will have been set by set_user_by_token concern
7
+ if @resource
8
+ render json: {
9
+ success: true,
10
+ data: @resource.as_json(except: [
11
+ :tokens, :created_at, :updated_at
12
+ ]),
13
+ override_proof: OVERRIDE_PROOF
14
+ }
15
+ else
16
+ render json: {
17
+ success: false,
18
+ errors: ["Invalid login credentials"]
19
+ }, status: 401
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,1065 @@
1
+ module ApplicationHelper
2
+ COLOR_NAMES = [
3
+ "Acid green",
4
+ "Aero",
5
+ "Aero blue",
6
+ "African violet",
7
+ "Air Force blue",
8
+ "Air superiority blue",
9
+ "Alabama Crimson",
10
+ "Alice blue",
11
+ "Alizarin crimson",
12
+ "Alloy orange",
13
+ "Almond",
14
+ "Amaranth",
15
+ "Amaranth pink",
16
+ "Amaranth purple",
17
+ "Amazon",
18
+ "Amber",
19
+ "Amethyst",
20
+ "Android green",
21
+ "Anti-flash white",
22
+ "Antique brass",
23
+ "Antique bronze",
24
+ "Antique fuchsia",
25
+ "Antique ruby",
26
+ "Antique white",
27
+ "Ao",
28
+ "Apple green",
29
+ "Apricot",
30
+ "Aqua",
31
+ "Aquamarine",
32
+ "Army green",
33
+ "Arsenic",
34
+ "Artichoke",
35
+ "Arylide yellow",
36
+ "Ash grey",
37
+ "Asparagus",
38
+ "Atomic tangerine",
39
+ "Auburn",
40
+ "Aureolin",
41
+ "AuroMetalSaurus",
42
+ "Avocado",
43
+ "Azure",
44
+ "Azure mist/web",
45
+
46
+ "Baby blue",
47
+ "Baby blue eyes",
48
+ "Baby pink",
49
+ "Baby powder",
50
+ "Baker-Miller pink",
51
+ "Ball blue",
52
+ "Banana Mania",
53
+ "Banana yellow",
54
+ "Bangladesh green",
55
+ "Barbie pink",
56
+ "Barn red",
57
+ "Battleship grey",
58
+ "Bazaar",
59
+ "Beau blue",
60
+ "Beaver",
61
+ "Beige",
62
+ "B'dazzled blue",
63
+ "Big dip o'ruby",
64
+ "Bisque",
65
+ "Bistre",
66
+ "Bistre brown",
67
+ "Bitter lemon",
68
+ "Bitter lime",
69
+ "Bittersweet",
70
+ "Bittersweet shimmer",
71
+ "Black",
72
+ "Black bean",
73
+ "Black leather jacket",
74
+ "Black olive",
75
+ "Blanched almond",
76
+ "Blast-off bronze",
77
+ "Bleu de France",
78
+ "Blizzard Blue",
79
+ "Blond",
80
+ "Blue",
81
+ "Blue Bell",
82
+ "Blue-gray",
83
+ "Blue-green",
84
+ "Blue sapphire",
85
+ "Blue-violet",
86
+ "Blue yonder",
87
+ "Blueberry",
88
+ "Bluebonnet",
89
+ "Blush",
90
+ "Bole",
91
+ "Bondi blue",
92
+ "Bone",
93
+ "Boston University Red",
94
+ "Bottle green",
95
+ "Boysenberry",
96
+ "Brandeis blue",
97
+ "Brass",
98
+ "Brick red",
99
+ "Bright cerulean",
100
+ "Bright green",
101
+ "Bright lavender",
102
+ "Bright lilac",
103
+ "Bright maroon",
104
+ "Bright navy blue",
105
+ "Bright pink",
106
+ "Bright turquoise",
107
+ "Bright ube",
108
+ "Brilliant lavender",
109
+ "Brilliant rose",
110
+ "Brink pink",
111
+ "British racing green",
112
+ "Bronze",
113
+ "Bronze Yellow",
114
+ "Brown",
115
+ "Brown-nose",
116
+ "Brunswick green",
117
+ "Bubble gum",
118
+ "Bubbles",
119
+ "Buff",
120
+ "Bud green",
121
+ "Bulgarian rose",
122
+ "Burgundy",
123
+ "Burlywood",
124
+ "Burnt orange",
125
+ "Burnt sienna",
126
+ "Burnt umber",
127
+ "Byzantine",
128
+ "Byzantium",
129
+
130
+ "Cadet",
131
+ "Cadet blue",
132
+ "Cadet grey",
133
+ "Cadmium green",
134
+ "Cadmium orange",
135
+ "Cadmium red",
136
+ "Cadmium yellow",
137
+ "Cafe au lait",
138
+ "Cafe noir",
139
+ "Cal Poly Pomona green",
140
+ "Cambridge Blue",
141
+ "Camel",
142
+ "Cameo pink",
143
+ "Camouflage green",
144
+ "Canary yellow",
145
+ "Candy apple red",
146
+ "Candy pink",
147
+ "Capri",
148
+ "Caput mortuum",
149
+ "Cardinal",
150
+ "Caribbean green",
151
+ "Carmine",
152
+ "Carmine",
153
+ "Carmine pink",
154
+ "Carmine red",
155
+ "Carnation pink",
156
+ "Carnelian",
157
+ "Carolina blue",
158
+ "Carrot orange",
159
+ "Castleton green",
160
+ "Catalina blue",
161
+ "Catawba",
162
+ "Cedar Chest",
163
+ "Ceil",
164
+ "Celadon",
165
+ "Celadon blue",
166
+ "Celadon green",
167
+ "Celeste",
168
+ "Celestial blue",
169
+ "Cerise",
170
+ "Cerise pink",
171
+ "Cerulean",
172
+ "Cerulean blue",
173
+ "Cerulean frost",
174
+ "CG Blue",
175
+ "CG Red",
176
+ "Chamoisee",
177
+ "Champagne",
178
+ "Charcoal",
179
+ "Charleston green",
180
+ "Charm pink",
181
+ "Chartreuse",
182
+ "Cherry",
183
+ "Cherry blossom pink",
184
+ "Chestnut",
185
+ "China pink",
186
+ "China rose",
187
+ "Chinese red",
188
+ "Chinese violet",
189
+ "Chocolate",
190
+ "Chrome yellow",
191
+ "Cinereous",
192
+ "Cinnabar",
193
+ "Cinnamon",
194
+ "Citrine",
195
+ "Citron",
196
+ "Claret",
197
+ "Classic rose",
198
+ "Cobalt",
199
+ "Cocoa brown",
200
+ "Coconut",
201
+ "Coffee",
202
+ "Columbia blue",
203
+ "Congo pink",
204
+ "Cool grey",
205
+ "Copper",
206
+ "Copper penny",
207
+ "Copper red",
208
+ "Copper rose",
209
+ "Coquelicot",
210
+ "Coral",
211
+ "Coral pink",
212
+ "Coral red",
213
+ "Cordovan",
214
+ "Corn",
215
+ "Cornell Red",
216
+ "Cornflower blue",
217
+ "Cornsilk",
218
+ "Cosmic latte",
219
+ "Cotton candy",
220
+ "Cream",
221
+ "Crimson",
222
+ "Crimson glory",
223
+ "Cyan",
224
+ "Cyber grape",
225
+ "Cyber yellow",
226
+
227
+ "Daffodil",
228
+ "Dandelion",
229
+ "Dark blue",
230
+ "Dark blue-gray",
231
+ "Dark brown",
232
+ "Dark byzantium",
233
+ "Dark candy apple red",
234
+ "Dark cerulean",
235
+ "Dark chestnut",
236
+ "Dark coral",
237
+ "Dark cyan",
238
+ "Dark electric blue",
239
+ "Dark goldenrod",
240
+ "Dark gray",
241
+ "Dark green",
242
+ "Dark imperial blue",
243
+ "Dark jungle green",
244
+ "Dark khaki",
245
+ "Dark lava",
246
+ "Dark lavender",
247
+ "Dark liver",
248
+ "Dark magenta",
249
+ "Dark medium gray",
250
+ "Dark midnight blue",
251
+ "Dark moss green",
252
+ "Dark olive green",
253
+ "Dark orange",
254
+ "Dark orchid",
255
+ "Dark pastel blue",
256
+ "Dark pastel green",
257
+ "Dark pastel purple",
258
+ "Dark pastel red",
259
+ "Dark pink",
260
+ "Dark powder blue",
261
+ "Dark puce",
262
+ "Dark raspberry",
263
+ "Dark red",
264
+ "Dark salmon",
265
+ "Dark scarlet",
266
+ "Dark sea green",
267
+ "Dark sienna",
268
+ "Dark sky blue",
269
+ "Dark slate blue",
270
+ "Dark slate gray",
271
+ "Dark spring green",
272
+ "Dark tan",
273
+ "Dark tangerine",
274
+ "Dark taupe",
275
+ "Dark terra cotta",
276
+ "Dark turquoise",
277
+ "Dark vanilla",
278
+ "Dark violet",
279
+ "Dark yellow",
280
+ "Dartmouth green",
281
+ "Davy's grey",
282
+ "Debian red",
283
+ "Deep carmine",
284
+ "Deep carmine pink",
285
+ "Deep carrot orange",
286
+ "Deep cerise",
287
+ "Deep champagne",
288
+ "Deep chestnut",
289
+ "Deep coffee",
290
+ "Deep fuchsia",
291
+ "Deep jungle green",
292
+ "Deep lemon",
293
+ "Deep lilac",
294
+ "Deep magenta",
295
+ "Deep mauve",
296
+ "Deep moss green",
297
+ "Deep peach",
298
+ "Deep pink",
299
+ "Deep puce",
300
+ "Deep ruby",
301
+ "Deep saffron",
302
+ "Deep sky blue",
303
+ "Deep Space Sparkle",
304
+ "Deep Taupe",
305
+ "Deep Tuscan red",
306
+ "Deer",
307
+ "Denim",
308
+ "Desert",
309
+ "Desert sand",
310
+ "Desire",
311
+ "Diamond",
312
+ "Dim gray",
313
+ "Dirt",
314
+ "Dodger blue",
315
+ "Dogwood rose",
316
+ "Dollar bill",
317
+ "Donkey brown",
318
+ "Drab",
319
+ "Duke blue",
320
+ "Dust storm",
321
+ "Dutch white",
322
+
323
+ "Earth yellow",
324
+ "Ebony",
325
+ "Ecru",
326
+ "Eerie black",
327
+ "Eggplant",
328
+ "Eggshell",
329
+ "Egyptian blue",
330
+ "Electric blue",
331
+ "Electric crimson",
332
+ "Electric cyan",
333
+ "Electric green",
334
+ "Electric indigo",
335
+ "Electric lavender",
336
+ "Electric lime",
337
+ "Electric purple",
338
+ "Electric ultramarine",
339
+ "Electric violet",
340
+ "Electric yellow",
341
+ "Emerald",
342
+ "Eminence",
343
+ "English green",
344
+ "English lavender",
345
+ "English red",
346
+ "English violet",
347
+ "Eton blue",
348
+ "Eucalyptus",
349
+
350
+
351
+ "Fallow",
352
+ "Falu red",
353
+ "Fandango",
354
+ "Fandango pink",
355
+ "Fashion fuchsia",
356
+ "Fawn",
357
+ "Feldgrau",
358
+ "Feldspar",
359
+ "Fern green",
360
+ "Ferrari Red",
361
+ "Field drab",
362
+ "Firebrick",
363
+ "Fire engine red",
364
+ "Flame",
365
+ "Flamingo pink",
366
+ "Flattery",
367
+ "Flavescent",
368
+ "Flax",
369
+ "Flirt",
370
+ "Floral white",
371
+ "Fluorescent orange",
372
+ "Fluorescent pink",
373
+ "Fluorescent yellow",
374
+ "Folly",
375
+ "Forest green",
376
+ "French beige",
377
+ "French bistre",
378
+ "French blue",
379
+ "French fuchsia",
380
+ "French lilac",
381
+ "French lime",
382
+ "French mauve",
383
+ "French pink",
384
+ "French plum",
385
+ "French puce",
386
+ "French raspberry",
387
+ "French rose",
388
+ "French sky blue",
389
+ "French violet",
390
+ "French wine",
391
+ "Fresh Air",
392
+ "Fuchsia",
393
+ "Fuchsia",
394
+ "Fuchsia pink",
395
+ "Fuchsia purple",
396
+ "Fuchsia rose",
397
+ "Fulvous",
398
+ "Fuzzy Wuzzy",
399
+
400
+ "Gainsboro",
401
+ "Gamboge",
402
+ "Generic viridian",
403
+ "Ghost white",
404
+ "Giants orange",
405
+ "Ginger",
406
+ "Glaucous",
407
+ "Glitter",
408
+ "GO green",
409
+ "Gold",
410
+ "Gold Fusion",
411
+ "Golden brown",
412
+ "Golden poppy",
413
+ "Golden yellow",
414
+ "Goldenrod",
415
+ "Granny Smith Apple",
416
+ "Grape",
417
+ "Gray",
418
+ "Gray-asparagus",
419
+ "Gray-blue",
420
+ "Green",
421
+ "Green-yellow",
422
+ "Grizzly",
423
+ "Grullo",
424
+ "Guppie green",
425
+ "Halaya ube",
426
+ "Han blue",
427
+ "Han purple",
428
+ "Hansa yellow",
429
+ "Harlequin",
430
+ "Harvard crimson",
431
+ "Harvest gold",
432
+ "Heart Gold",
433
+ "Heliotrope",
434
+ "Heliotrope gray",
435
+ "Hollywood cerise",
436
+ "Honeydew",
437
+ "Honolulu blue",
438
+ "Hooker's green",
439
+ "Hot magenta",
440
+ "Hot pink",
441
+ "Hunter green",
442
+
443
+
444
+ "Iceberg",
445
+ "Icterine",
446
+ "Illuminating Emerald",
447
+ "Imperial",
448
+ "Imperial blue",
449
+ "Imperial purple",
450
+ "Imperial red",
451
+ "Inchworm",
452
+ "Independence",
453
+ "India green",
454
+ "Indian red",
455
+ "Indian yellow",
456
+ "Indigo",
457
+ "Indigo dye",
458
+ "International Klein Blue",
459
+ "International orange",
460
+ "Iris",
461
+ "Irresistible",
462
+ "Isabelline",
463
+ "Islamic green",
464
+ "Italian sky blue",
465
+ "Ivory",
466
+ "Jade",
467
+ "Japanese carmine",
468
+ "Japanese indigo",
469
+ "Japanese violet",
470
+ "Jasmine",
471
+ "Jasper",
472
+ "Jazzberry jam",
473
+ "Jelly Bean",
474
+ "Jet",
475
+ "Jonquil",
476
+ "Jordy blue",
477
+ "June bud",
478
+ "Jungle green",
479
+ "Kelly green",
480
+ "Kenyan copper",
481
+ "Keppel",
482
+ "Khaki",
483
+ "Kobe",
484
+ "Kobi",
485
+ "Kombu green",
486
+ "KU Crimson",
487
+
488
+
489
+ "La Salle Green",
490
+ "Languid lavender",
491
+ "Lapis lazuli",
492
+ "Laser Lemon",
493
+ "Laurel green",
494
+ "Lava",
495
+ "Lavender",
496
+ "Lavender blue",
497
+ "Lavender blush",
498
+ "Lavender gray",
499
+ "Lavender indigo",
500
+ "Lavender magenta",
501
+ "Lavender mist",
502
+ "Lavender pink",
503
+ "Lavender purple",
504
+ "Lavender rose",
505
+ "Lawn green",
506
+ "Lemon",
507
+ "Lemon chiffon",
508
+ "Lemon curry",
509
+ "Lemon glacier",
510
+ "Lemon lime",
511
+ "Lemon meringue",
512
+ "Lemon yellow",
513
+ "Licorice",
514
+ "Liberty",
515
+ "Light apricot",
516
+ "Light blue",
517
+ "Light brown",
518
+ "Light carmine pink",
519
+ "Light coral",
520
+ "Light cornflower blue",
521
+ "Light crimson",
522
+ "Light cyan",
523
+ "Light deep pink",
524
+ "Light French beige",
525
+ "Light fuchsia pink",
526
+ "Light goldenrod yellow",
527
+ "Light gray",
528
+ "Light green",
529
+ "Light hot pink",
530
+ "Light khaki",
531
+ "Light medium orchid",
532
+ "Light moss green",
533
+ "Light orchid",
534
+ "Light pastel purple",
535
+ "Light pink",
536
+ "Light red ochre",
537
+ "Light salmon",
538
+ "Light salmon pink",
539
+ "Light sea green",
540
+ "Light sky blue",
541
+ "Light slate gray",
542
+ "Light steel blue",
543
+ "Light taupe",
544
+ "Light Thulian pink",
545
+ "Light yellow",
546
+ "Lilac",
547
+ "Lime",
548
+ "Lime green",
549
+ "Limerick",
550
+ "Lincoln green",
551
+ "Linen",
552
+ "Lion",
553
+ "Liseran Purple",
554
+ "Little boy blue",
555
+ "Liver",
556
+ "Liver",
557
+ "Liver chestnut",
558
+ "Livid",
559
+ "Lumber",
560
+ "Lust",
561
+
562
+
563
+ "Magenta",
564
+ "Magenta",
565
+ "Magenta haze",
566
+ "Magic mint",
567
+ "Magnolia",
568
+ "Mahogany",
569
+ "Maize",
570
+ "Majorelle Blue",
571
+ "Malachite",
572
+ "Manatee",
573
+ "Mango Tango",
574
+ "Mantis",
575
+ "Mardi Gras",
576
+ "Maroon",
577
+ "Mauve",
578
+ "Mauve taupe",
579
+ "Mauvelous",
580
+ "May green",
581
+ "Maya blue",
582
+ "Meat brown",
583
+ "Medium aquamarine",
584
+ "Medium blue",
585
+ "Medium candy apple red",
586
+ "Medium carmine",
587
+ "Medium champagne",
588
+ "Medium electric blue",
589
+ "Medium jungle green",
590
+ "Medium lavender magenta",
591
+ "Medium orchid",
592
+ "Medium Persian blue",
593
+ "Medium purple",
594
+ "Medium red-violet",
595
+ "Medium ruby",
596
+ "Medium sea green",
597
+ "Medium sky blue",
598
+ "Medium slate blue",
599
+ "Medium spring bud",
600
+ "Medium spring green",
601
+ "Medium taupe",
602
+ "Medium turquoise",
603
+ "Medium Tuscan red",
604
+ "Medium vermilion",
605
+ "Medium violet-red",
606
+ "Mellow apricot",
607
+ "Mellow yellow",
608
+ "Melon",
609
+ "Metallic Seaweed",
610
+ "Metallic Sunburst",
611
+ "Mexican pink",
612
+ "Midnight blue",
613
+ "Milky blue",
614
+ "Midnight green",
615
+ "Mikado yellow",
616
+ "Mindaro",
617
+ "Mint",
618
+ "Mint cream",
619
+ "Mint green",
620
+ "Misty rose",
621
+ "Moccasin",
622
+ "Mode beige",
623
+ "Moonstone blue",
624
+ "Mordant red 19",
625
+ "Moss green",
626
+ "Mountain Meadow",
627
+ "Mountbatten pink",
628
+ "MSU Green",
629
+ "Mughal green",
630
+ "Mulberry",
631
+ "Mustard",
632
+ "Myrtle green",
633
+
634
+ "Nadeshiko pink",
635
+ "Napier green",
636
+ "Naples yellow",
637
+ "Navajo white",
638
+ "Navy",
639
+ "Navy purple",
640
+ "Neon Carrot",
641
+ "Neon fuchsia",
642
+ "Neon green",
643
+ "New Car",
644
+ "New York pink",
645
+ "Non-photo blue",
646
+ "North Texas Green",
647
+ "Nyanza",
648
+ "Ocean Boat Blue",
649
+ "Ochre",
650
+ "Office green",
651
+ "Old burgundy",
652
+ "Old gold",
653
+ "Old heliotrope",
654
+ "Old lace",
655
+ "Old lavender",
656
+ "Old mauve",
657
+ "Old moss green",
658
+ "Old rose",
659
+ "Old silver",
660
+ "Olive",
661
+ "Olive Drab",
662
+ "Olivine",
663
+ "Onyx",
664
+ "Opera mauve",
665
+ "Orange",
666
+ "Orange peel",
667
+ "Orange-red",
668
+ "Orchid",
669
+ "Orchid pink",
670
+ "Orioles orange",
671
+ "Otter brown",
672
+ "Outer Space",
673
+ "Outrageous Orange",
674
+ "Oxford Blue",
675
+ "OU Crimson Red",
676
+
677
+
678
+ "Pakistan green",
679
+ "Palatinate blue",
680
+ "Palatinate purple",
681
+ "Pale aqua",
682
+ "Pale blue",
683
+ "Pale brown",
684
+ "Pale carmine",
685
+ "Pale cerulean",
686
+ "Pale chestnut",
687
+ "Pale copper",
688
+ "Pale cornflower blue",
689
+ "Pale gold",
690
+ "Pale goldenrod",
691
+ "Pale green",
692
+ "Pale lavender",
693
+ "Pale magenta",
694
+ "Pale pink",
695
+ "Pale plum",
696
+ "Pale red-violet",
697
+ "Pale robin egg blue",
698
+ "Pale silver",
699
+ "Pale spring bud",
700
+ "Pale taupe",
701
+ "Pale turquoise",
702
+ "Pale violet-red",
703
+ "Pansy purple",
704
+ "Paolo Veronese green",
705
+ "Papaya whip",
706
+ "Paradise pink",
707
+ "Paris Green",
708
+ "Pastel blue",
709
+ "Pastel brown",
710
+ "Pastel gray",
711
+ "Pastel green",
712
+ "Pastel magenta",
713
+ "Pastel orange",
714
+ "Pastel pink",
715
+ "Pastel purple",
716
+ "Pastel red",
717
+ "Pastel violet",
718
+ "Pastel yellow",
719
+ "Patriarch",
720
+ "Payne's grey",
721
+ "Peach",
722
+ "Peach",
723
+ "Peach-orange",
724
+ "Peach puff",
725
+ "Peach-yellow",
726
+ "Pear",
727
+ "Pearl",
728
+ "Pearl Aqua",
729
+ "Pearly purple",
730
+ "Peridot",
731
+ "Periwinkle",
732
+ "Persian blue",
733
+ "Persian green",
734
+ "Persian indigo",
735
+ "Persian orange",
736
+ "Persian pink",
737
+ "Persian plum",
738
+ "Persian red",
739
+ "Persian rose",
740
+ "Persimmon",
741
+ "Peru",
742
+ "Phlox",
743
+ "Phthalo blue",
744
+ "Phthalo green",
745
+ "Picton blue",
746
+ "Pictorial carmine",
747
+ "Piggy pink",
748
+ "Pine green",
749
+ "Pineapple",
750
+ "Pink",
751
+ "Pink lace",
752
+ "Pink lavender",
753
+ "Pink-orange",
754
+ "Pink pearl",
755
+ "Pink Sherbet",
756
+ "Pistachio",
757
+ "Platinum",
758
+ "Plum",
759
+ "Pomp and Power",
760
+ "Popstar",
761
+ "Portland Orange",
762
+ "Powder blue",
763
+ "Princeton orange",
764
+ "Prune",
765
+ "Prussian blue",
766
+ "Psychedelic purple",
767
+ "Puce",
768
+ "Puce red",
769
+ "Pullman Brown",
770
+ "Pumpkin",
771
+ "Purple",
772
+ "Purple Heart",
773
+ "Purple mountain majesty",
774
+ "Purple navy",
775
+ "Purple pizzazz",
776
+ "Purple taupe",
777
+ "Purpureus",
778
+
779
+
780
+ "Quartz",
781
+ "Queen blue",
782
+ "Queen pink",
783
+ "Quinacridone magenta",
784
+ "Rackley",
785
+ "Radical Red",
786
+ "Rajah",
787
+ "Raspberry",
788
+ "Raspberry glace",
789
+ "Raspberry pink",
790
+ "Raspberry rose",
791
+ "Raw umber",
792
+ "Razzle dazzle rose",
793
+ "Razzmatazz",
794
+ "Razzmic Berry",
795
+ "Rebecca Purple",
796
+ "Red",
797
+ "Red",
798
+ "Red-brown",
799
+ "Red devil",
800
+ "Red-orange",
801
+ "Red-purple",
802
+ "Red-violet",
803
+ "Redwood",
804
+ "Regalia",
805
+ "Resolution blue",
806
+ "Rhythm",
807
+ "Rich black",
808
+ "Rich brilliant lavender",
809
+ "Rich carmine",
810
+ "Rich electric blue",
811
+ "Rich lavender",
812
+ "Rich lilac",
813
+ "Rich maroon",
814
+ "Rifle green",
815
+ "Roast coffee",
816
+ "Robin egg blue",
817
+ "Rocket metallic",
818
+ "Roman silver",
819
+ "Rose",
820
+ "Rose bonbon",
821
+ "Rose ebony",
822
+ "Rose gold",
823
+ "Rose madder",
824
+ "Rose pink",
825
+ "Rose quartz",
826
+ "Rose red",
827
+ "Rose taupe",
828
+ "Rose vale",
829
+ "Rosewood",
830
+ "Rosso corsa",
831
+ "Rosy brown",
832
+ "Royal azure",
833
+ "Royal blue",
834
+ "Royal blue",
835
+ "Royal fuchsia",
836
+ "Royal purple",
837
+ "Royal yellow",
838
+ "Ruber",
839
+ "Rubine red",
840
+ "Ruby",
841
+ "Ruby red",
842
+ "Ruddy",
843
+ "Ruddy brown",
844
+ "Ruddy pink",
845
+ "Rufous",
846
+ "Russet",
847
+ "Russian green",
848
+ "Russian violet",
849
+ "Rust",
850
+ "Rusty red",
851
+
852
+
853
+ "Sacramento State green",
854
+ "Saddle brown",
855
+ "Safety orange",
856
+ "Safety yellow",
857
+ "Saffron",
858
+ "Sage",
859
+ "St. Patrick's blue",
860
+ "Salmon",
861
+ "Salmon pink",
862
+ "Sand",
863
+ "Sand dune",
864
+ "Sandstorm",
865
+ "Sandy brown",
866
+ "Sandy taupe",
867
+ "Sangria",
868
+ "Sap green",
869
+ "Sapphire",
870
+ "Sapphire blue",
871
+ "Satin sheen gold",
872
+ "Scarlet",
873
+ "Scarlet",
874
+ "Schauss pink",
875
+ "School bus yellow",
876
+ "Screamin' Green",
877
+ "Sea blue",
878
+ "Sea green",
879
+ "Seal brown",
880
+ "Seashell",
881
+ "Selective yellow",
882
+ "Sepia",
883
+ "Shadow",
884
+ "Shadow blue",
885
+ "Shampoo",
886
+ "Shamrock green",
887
+ "Sheen Green",
888
+ "Shimmering Blush",
889
+ "Shocking pink",
890
+ "Sienna",
891
+ "Silver",
892
+ "Silver chalice",
893
+ "Silver Lake blue",
894
+ "Silver pink",
895
+ "Silver sand",
896
+ "Sinopia",
897
+ "Skobeloff",
898
+ "Sky blue",
899
+ "Sky magenta",
900
+ "Slate blue",
901
+ "Slate gray",
902
+ "Smalt",
903
+ "Smitten",
904
+ "Smoke",
905
+ "Smoky black",
906
+ "Smoky Topaz",
907
+ "Snow",
908
+ "Soap",
909
+ "Solid pink",
910
+ "Sonic silver",
911
+ "Spartan Crimson",
912
+ "Space cadet",
913
+ "Spanish bistre",
914
+ "Spanish blue",
915
+ "Spanish carmine",
916
+ "Spanish crimson",
917
+ "Spanish gray",
918
+ "Spanish green",
919
+ "Spanish orange",
920
+ "Spanish pink",
921
+ "Spanish red",
922
+ "Spanish sky blue",
923
+ "Spanish violet",
924
+ "Spanish viridian",
925
+ "Spiro Disco Ball",
926
+ "Spring bud",
927
+ "Spring green",
928
+ "Star command blue",
929
+ "Steel blue",
930
+ "Steel pink",
931
+ "Stil de grain yellow",
932
+ "Stizza",
933
+ "Stormcloud",
934
+ "Straw",
935
+ "Strawberry",
936
+ "Sunglow",
937
+ "Sunray",
938
+ "Sunset",
939
+ "Sunset orange",
940
+ "Super pink",
941
+
942
+
943
+ "Tan",
944
+ "Tangelo",
945
+ "Tangerine",
946
+ "Tangerine yellow",
947
+ "Tango pink",
948
+ "Taupe",
949
+ "Taupe gray",
950
+ "Tea green",
951
+ "Tea rose",
952
+ "Tea rose",
953
+ "Teal",
954
+ "Teal blue",
955
+ "Teal deer",
956
+ "Teal green",
957
+ "Telemagenta",
958
+ "Tenne",
959
+ "Terra cotta",
960
+ "Thistle",
961
+ "Thulian pink",
962
+ "Tickle Me Pink",
963
+ "Tiffany Blue",
964
+ "Tiger's eye",
965
+ "Timberwolf",
966
+ "Titanium yellow",
967
+ "Tomato",
968
+ "Toolbox",
969
+ "Topaz",
970
+ "Tractor red",
971
+ "Trolley Grey",
972
+ "Tropical rain forest",
973
+ "True Blue",
974
+ "Tufts Blue",
975
+ "Tulip",
976
+ "Tumbleweed",
977
+ "Turkish rose",
978
+ "Turquoise",
979
+ "Turquoise blue",
980
+ "Turquoise green",
981
+ "Tuscan",
982
+ "Tuscan brown",
983
+ "Tuscan red",
984
+ "Tuscan tan",
985
+ "Tuscany",
986
+ "Twilight lavender",
987
+ "Tyrian purple",
988
+
989
+
990
+ "UA blue",
991
+ "UA red",
992
+ "Ube",
993
+ "UCLA Blue",
994
+ "UCLA Gold",
995
+ "UFO Green",
996
+ "Ultramarine",
997
+ "Ultramarine blue",
998
+ "Ultra pink",
999
+ "Ultra red",
1000
+ "Umber",
1001
+ "Unbleached silk",
1002
+ "United Nations blue",
1003
+ "University of California Gold",
1004
+ "Unmellow yellow",
1005
+ "UP Forest green",
1006
+ "UP Maroon",
1007
+ "Upsdell red",
1008
+ "Urobilin",
1009
+ "USAFA blue",
1010
+ "USC Cardinal",
1011
+ "USC Gold",
1012
+ "University of Tennessee Orange",
1013
+ "Utah Crimson",
1014
+ "Vanilla",
1015
+ "Vanilla ice",
1016
+ "Vegas gold",
1017
+ "Venetian red",
1018
+ "Verdigris",
1019
+ "Vermilion",
1020
+ "Vermilion",
1021
+ "Veronica",
1022
+ "Violet",
1023
+ "Violet-blue",
1024
+ "Violet-red",
1025
+ "Viridian",
1026
+ "Viridian green",
1027
+ "Vista blue",
1028
+ "Vivid auburn",
1029
+ "Vivid burgundy",
1030
+ "Vivid cerise",
1031
+ "Vivid orchid",
1032
+ "Vivid sky blue",
1033
+ "Vivid tangerine",
1034
+ "Vivid violet",
1035
+
1036
+ "Warm black",
1037
+ "Waterspout",
1038
+ "Wenge",
1039
+ "Wheat",
1040
+ "White",
1041
+ "White smoke",
1042
+ "Wild blue yonder",
1043
+ "Wild orchid",
1044
+ "Wild Strawberry",
1045
+ "Wild watermelon",
1046
+ "Willpower orange",
1047
+ "Windsor tan",
1048
+ "Wine",
1049
+ "Wine dregs",
1050
+ "Wisteria",
1051
+ "Wood brown",
1052
+ "Xanadu",
1053
+ "Yale Blue",
1054
+ "Yankees blue",
1055
+ "Yellow",
1056
+ "Yellow-green",
1057
+ "Yellow Orange",
1058
+ "Yellow rose",
1059
+ "Zaffre",
1060
+ "Zinnwaldite brown",
1061
+ "Zomp"
1062
+ ]
1063
+
1064
+ COLOR_SEARCH = FuzzBall::Searcher.new(COLOR_NAMES)
1065
+ end