procreate-swatches 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +7 -0
  3. data/.gitignore +16 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +8 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +19 -0
  8. data/.yardopts +5 -0
  9. data/CODE_OF_CONDUCT.md +74 -0
  10. data/Gemfile +6 -0
  11. data/Gemfile.lock +102 -0
  12. data/LICENSE.txt +21 -0
  13. data/README.md +230 -0
  14. data/Rakefile +8 -0
  15. data/bin/console +14 -0
  16. data/bin/setup +8 -0
  17. data/doc/Procreate/Swatches/ColorsHelper.html +693 -0
  18. data/doc/Procreate/Swatches/Errors/InvalidFormat.html +220 -0
  19. data/doc/Procreate/Swatches/Errors/InvalidPath.html +220 -0
  20. data/doc/Procreate/Swatches/Errors.html +128 -0
  21. data/doc/Procreate/Swatches/Exporter.html +754 -0
  22. data/doc/Procreate/Swatches/Parser.html +622 -0
  23. data/doc/Procreate/Swatches/Wrapper.html +1168 -0
  24. data/doc/Procreate/Swatches.html +497 -0
  25. data/doc/Procreate.html +128 -0
  26. data/doc/_index.html +209 -0
  27. data/doc/class_list.html +51 -0
  28. data/doc/css/common.css +1 -0
  29. data/doc/css/full_list.css +58 -0
  30. data/doc/css/style.css +496 -0
  31. data/doc/file.CODE_OF_CONDUCT.html +146 -0
  32. data/doc/file.LICENSE.html +70 -0
  33. data/doc/file.README.html +296 -0
  34. data/doc/file_list.html +66 -0
  35. data/doc/frames.html +17 -0
  36. data/doc/index.html +296 -0
  37. data/doc/js/app.js +292 -0
  38. data/doc/js/full_list.js +216 -0
  39. data/doc/js/jquery.js +4 -0
  40. data/doc/method_list.html +275 -0
  41. data/doc/top-level-namespace.html +110 -0
  42. data/lib/procreate/swatches/colors_helper.rb +83 -0
  43. data/lib/procreate/swatches/errors/invalid_format.rb +19 -0
  44. data/lib/procreate/swatches/errors/invalid_path.rb +16 -0
  45. data/lib/procreate/swatches/exporter.rb +131 -0
  46. data/lib/procreate/swatches/parser.rb +82 -0
  47. data/lib/procreate/swatches/version.rb +8 -0
  48. data/lib/procreate/swatches/wrapper.rb +155 -0
  49. data/lib/procreate/swatches.rb +60 -0
  50. data/procreate-swatches.gemspec +41 -0
  51. metadata +275 -0
data/doc/_index.html ADDED
@@ -0,0 +1,209 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Documentation by YARD 0.9.16
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ pathId = null;
17
+ relpath = '';
18
+ </script>
19
+
20
+
21
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
24
+
25
+
26
+ </head>
27
+ <body>
28
+ <div class="nav_wrap">
29
+ <iframe id="nav" src="class_list.html?1"></iframe>
30
+ <div id="resizer"></div>
31
+ </div>
32
+
33
+ <div id="main" tabindex="-1">
34
+ <div id="header">
35
+ <div id="menu">
36
+
37
+ </div>
38
+
39
+ <div id="search">
40
+
41
+ <a class="full_list_link" id="class_list_link"
42
+ href="class_list.html">
43
+
44
+ <svg width="24" height="24">
45
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
46
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
47
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
48
+ </svg>
49
+ </a>
50
+
51
+ </div>
52
+ <div class="clear"></div>
53
+ </div>
54
+
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.16</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <h2>File Listing</h2>
60
+ <ul id="files" class="index_inline_list">
61
+
62
+
63
+ <li class="r1"><a href="index.html" title="README">README</a></li>
64
+
65
+
66
+ <li class="r2"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></li>
67
+
68
+
69
+ <li class="r1"><a href="file.CODE_OF_CONDUCT.html" title="CODE_OF_CONDUCT">CODE_OF_CONDUCT</a></li>
70
+
71
+
72
+ </ul>
73
+
74
+ <div class="clear"></div>
75
+ <h2>Namespace Listing A-Z</h2>
76
+
77
+
78
+
79
+
80
+ <table>
81
+ <tr>
82
+ <td valign='top' width="33%">
83
+
84
+
85
+ <ul id="alpha_C" class="alpha">
86
+ <li class="letter">C</li>
87
+ <ul>
88
+
89
+ <li>
90
+ <span class='object_link'><a href="Procreate/Swatches/ColorsHelper.html" title="Procreate::Swatches::ColorsHelper (module)">ColorsHelper</a></span>
91
+
92
+ <small>(Procreate::Swatches)</small>
93
+
94
+ </li>
95
+
96
+ </ul>
97
+ </ul>
98
+
99
+
100
+ <ul id="alpha_E" class="alpha">
101
+ <li class="letter">E</li>
102
+ <ul>
103
+
104
+ <li>
105
+ <span class='object_link'><a href="Procreate/Swatches/Errors.html" title="Procreate::Swatches::Errors (module)">Errors</a></span>
106
+
107
+ <small>(Procreate::Swatches)</small>
108
+
109
+ </li>
110
+
111
+ <li>
112
+ <span class='object_link'><a href="Procreate/Swatches/Exporter.html" title="Procreate::Swatches::Exporter (class)">Exporter</a></span>
113
+
114
+ <small>(Procreate::Swatches)</small>
115
+
116
+ </li>
117
+
118
+ </ul>
119
+ </ul>
120
+
121
+
122
+ <ul id="alpha_I" class="alpha">
123
+ <li class="letter">I</li>
124
+ <ul>
125
+
126
+ <li>
127
+ <span class='object_link'><a href="Procreate/Swatches/Errors/InvalidFormat.html" title="Procreate::Swatches::Errors::InvalidFormat (class)">InvalidFormat</a></span>
128
+
129
+ <small>(Procreate::Swatches::Errors)</small>
130
+
131
+ </li>
132
+
133
+ <li>
134
+ <span class='object_link'><a href="Procreate/Swatches/Errors/InvalidPath.html" title="Procreate::Swatches::Errors::InvalidPath (class)">InvalidPath</a></span>
135
+
136
+ <small>(Procreate::Swatches::Errors)</small>
137
+
138
+ </li>
139
+
140
+ </ul>
141
+ </ul>
142
+
143
+
144
+ <ul id="alpha_P" class="alpha">
145
+ <li class="letter">P</li>
146
+ <ul>
147
+
148
+ <li>
149
+ <span class='object_link'><a href="Procreate/Swatches/Parser.html" title="Procreate::Swatches::Parser (class)">Parser</a></span>
150
+
151
+ <small>(Procreate::Swatches)</small>
152
+
153
+ </li>
154
+
155
+ <li>
156
+ <span class='object_link'><a href="Procreate.html" title="Procreate (module)">Procreate</a></span>
157
+
158
+ </li>
159
+
160
+ </ul>
161
+ </ul>
162
+
163
+
164
+ <ul id="alpha_S" class="alpha">
165
+ <li class="letter">S</li>
166
+ <ul>
167
+
168
+ <li>
169
+ <span class='object_link'><a href="Procreate/Swatches.html" title="Procreate::Swatches (module)">Swatches</a></span>
170
+
171
+ <small>(Procreate)</small>
172
+
173
+ </li>
174
+
175
+ </ul>
176
+ </ul>
177
+
178
+
179
+ <ul id="alpha_W" class="alpha">
180
+ <li class="letter">W</li>
181
+ <ul>
182
+
183
+ <li>
184
+ <span class='object_link'><a href="Procreate/Swatches/Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Wrapper</a></span>
185
+
186
+ <small>(Procreate::Swatches)</small>
187
+
188
+ </li>
189
+
190
+ </ul>
191
+ </ul>
192
+
193
+ </td>
194
+ </tr>
195
+ </table>
196
+
197
+ </div>
198
+
199
+ </div>
200
+
201
+ <div id="footer">
202
+ Generated on Sat Apr 27 09:32:31 2019 by
203
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
204
+ 0.9.16 (ruby-2.4.3).
205
+ </div>
206
+
207
+ </div>
208
+ </body>
209
+ </html>
@@ -0,0 +1,51 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta charset="utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <title>Class List</title>
19
+ <base id="base_target" target="_parent" />
20
+ </head>
21
+ <body>
22
+ <div id="content">
23
+ <div class="fixed_header">
24
+ <h1 id="full_list_header">Class List</h1>
25
+ <div id="full_list_nav">
26
+
27
+ <span><a target="_self" href="class_list.html">
28
+ Classes
29
+ </a></span>
30
+
31
+ <span><a target="_self" href="method_list.html">
32
+ Methods
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="file_list.html">
36
+ Files
37
+ </a></span>
38
+
39
+ </div>
40
+
41
+ <div id="search">Search: <input type="text" /></div>
42
+ </div>
43
+
44
+ <ul id="full_list" class="class">
45
+ <li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
46
+ <li id='object_Procreate' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Procreate.html" title="Procreate (module)">Procreate</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Procreate::Swatches' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Procreate/Swatches.html" title="Procreate::Swatches (module)">Swatches</a></span><small class='search_info'>Procreate</small></div><ul><li id='object_Procreate::Swatches::ColorsHelper' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Procreate/Swatches/ColorsHelper.html" title="Procreate::Swatches::ColorsHelper (module)">ColorsHelper</a></span><small class='search_info'>Procreate::Swatches</small></div></li><li id='object_Procreate::Swatches::Errors' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="Procreate/Swatches/Errors.html" title="Procreate::Swatches::Errors (module)">Errors</a></span><small class='search_info'>Procreate::Swatches</small></div><ul><li id='object_Procreate::Swatches::Errors::InvalidFormat' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Procreate/Swatches/Errors/InvalidFormat.html" title="Procreate::Swatches::Errors::InvalidFormat (class)">InvalidFormat</a></span> &lt; StandardError<small class='search_info'>Procreate::Swatches::Errors</small></div></li><li id='object_Procreate::Swatches::Errors::InvalidPath' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Procreate/Swatches/Errors/InvalidPath.html" title="Procreate::Swatches::Errors::InvalidPath (class)">InvalidPath</a></span> &lt; StandardError<small class='search_info'>Procreate::Swatches::Errors</small></div></li></ul></li><li id='object_Procreate::Swatches::Exporter' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Procreate/Swatches/Exporter.html" title="Procreate::Swatches::Exporter (class)">Exporter</a></span> &lt; Object<small class='search_info'>Procreate::Swatches</small></div></li><li id='object_Procreate::Swatches::Parser' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Procreate/Swatches/Parser.html" title="Procreate::Swatches::Parser (class)">Parser</a></span> &lt; Object<small class='search_info'>Procreate::Swatches</small></div></li><li id='object_Procreate::Swatches::Wrapper' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Procreate/Swatches/Wrapper.html" title="Procreate::Swatches::Wrapper (class)">Wrapper</a></span> &lt; Object<small class='search_info'>Procreate::Swatches</small></div></li></ul></li></ul></li>
47
+
48
+ </ul>
49
+ </div>
50
+ </body>
51
+ </html>
@@ -0,0 +1 @@
1
+ /* Override this file with custom rules */
@@ -0,0 +1,58 @@
1
+ body {
2
+ margin: 0;
3
+ font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
+ font-size: 13px;
5
+ height: 101%;
6
+ overflow-x: hidden;
7
+ background: #fafafa;
8
+ }
9
+
10
+ h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; }
11
+ .clear { clear: both; }
12
+ .fixed_header { position: fixed; background: #fff; width: 100%; padding-bottom: 10px; margin-top: 0; top: 0; z-index: 9999; height: 70px; }
13
+ #search { position: absolute; right: 5px; top: 9px; padding-left: 24px; }
14
+ #content.insearch #search, #content.insearch #noresults { background: url(data:image/gif;base64,R0lGODlhEAAQAPYAAP///wAAAPr6+pKSkoiIiO7u7sjIyNjY2J6engAAAI6OjsbGxjIyMlJSUuzs7KamppSUlPLy8oKCghwcHLKysqSkpJqamvT09Pj4+KioqM7OzkRERAwMDGBgYN7e3ujo6Ly8vCoqKjY2NkZGRtTU1MTExDw8PE5OTj4+PkhISNDQ0MrKylpaWrS0tOrq6nBwcKysrLi4uLq6ul5eXlxcXGJiYoaGhuDg4H5+fvz8/KKiohgYGCwsLFZWVgQEBFBQUMzMzDg4OFhYWBoaGvDw8NbW1pycnOLi4ubm5kBAQKqqqiQkJCAgIK6urnJyckpKSjQ0NGpqatLS0sDAwCYmJnx8fEJCQlRUVAoKCggICLCwsOTk5ExMTPb29ra2tmZmZmhoaNzc3KCgoBISEiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCAAAACwAAAAAEAAQAAAHaIAAgoMgIiYlg4kACxIaACEJCSiKggYMCRselwkpghGJBJEcFgsjJyoAGBmfggcNEx0flBiKDhQFlIoCCA+5lAORFb4AJIihCRbDxQAFChAXw9HSqb60iREZ1omqrIPdJCTe0SWI09GBACH5BAkIAAAALAAAAAAQABAAAAdrgACCgwc0NTeDiYozCQkvOTo9GTmDKy8aFy+NOBA7CTswgywJDTIuEjYFIY0JNYMtKTEFiRU8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AAAA==) no-repeat center left; }
15
+ #full_list { padding: 0; list-style: none; margin-left: 0; margin-top: 80px; font-size: 1.1em; }
16
+ #full_list ul { padding: 0; }
17
+ #full_list li { padding: 0; margin: 0; list-style: none; }
18
+ #full_list li .item { padding: 5px 5px 5px 12px; }
19
+ #noresults { padding: 7px 12px; background: #fff; }
20
+ #content.insearch #noresults { margin-left: 7px; }
21
+ li.collapsed ul { display: none; }
22
+ li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; }
23
+ li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; }
24
+ li { color: #888; cursor: pointer; }
25
+ li.deprecated { text-decoration: line-through; font-style: italic; }
26
+ li.odd { background: #f0f0f0; }
27
+ li.even { background: #fafafa; }
28
+ .item:hover { background: #ddd; }
29
+ li small:before { content: "("; }
30
+ li small:after { content: ")"; }
31
+ li small.search_info { display: none; }
32
+ a, a:visited { text-decoration: none; color: #05a; }
33
+ li.clicked > .item { background: #05a; color: #ccc; }
34
+ li.clicked > .item a, li.clicked > .item a:visited { color: #eee; }
35
+ li.clicked > .item a.toggle { opacity: 0.5; background-position: bottom right; }
36
+ li.collapsed.clicked a.toggle { background-position: top right; }
37
+ #search input { border: 1px solid #bbb; border-radius: 3px; }
38
+ #full_list_nav { margin-left: 10px; font-size: 0.9em; display: block; color: #aaa; }
39
+ #full_list_nav a, #nav a:visited { color: #358; }
40
+ #full_list_nav a:hover { background: transparent; color: #5af; }
41
+ #full_list_nav span:after { content: ' | '; }
42
+ #full_list_nav span:last-child:after { content: ''; }
43
+
44
+ #content h1 { margin-top: 0; }
45
+ li { white-space: nowrap; cursor: normal; }
46
+ li small { display: block; font-size: 0.8em; }
47
+ li small:before { content: ""; }
48
+ li small:after { content: ""; }
49
+ li small.search_info { display: none; }
50
+ #search { width: 170px; position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; padding-left: 0; padding-right: 24px; }
51
+ #content.insearch #search { background-position: center right; }
52
+ #search input { width: 110px; }
53
+
54
+ #full_list.insearch ul { display: block; }
55
+ #full_list.insearch .item { display: none; }
56
+ #full_list.insearch .found { display: block; padding-left: 11px !important; }
57
+ #full_list.insearch li a.toggle { display: none; }
58
+ #full_list.insearch li small.search_info { display: block; }