archetype 0.0.1.pre.9 → 0.0.1.pre.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/archetype/sass_extensions/functions/styleguide.rb +6 -2
  3. data/lib/archetype/version.rb +1 -1
  4. metadata +1 -57
  5. data/test/fixtures/stylesheets/archetype/tmp/b.css +0 -14
  6. data/test/fixtures/stylesheets/archetype/tmp/base.css +0 -349
  7. data/test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css +0 -11
  8. data/test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css +0 -4
  9. data/test/fixtures/stylesheets/archetype/tmp/locale.css +0 -23
  10. data/test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css +0 -711
  11. data/test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css +0 -2119
  12. data/test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css +0 -63
  13. data/test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css +0 -11
  14. data/test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css +0 -9
  15. data/test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css +0 -21
  16. data/test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css +0 -13
  17. data/test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css +0 -28
  18. data/test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css +0 -177
  19. data/test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css +0 -127
  20. data/test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css +0 -8
  21. data/test/fixtures/stylesheets/archetype/tmp/ui/stroke.css +0 -17
  22. data/test/fixtures/stylesheets/archetype/tmp/ui/triangle.css +0 -35
  23. data/test/fixtures/stylesheets/archetype/tmp/utilities/associative.css +0 -9
  24. data/test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css +0 -8
  25. data/test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css +0 -9
  26. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css +0 -29
  27. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css +0 -29
  28. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css +0 -11
  29. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css +0 -16
  30. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css +0 -15
  31. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css +0 -105
  32. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7a22221ceca48eeb8e7533ecfceb2764683604b
4
- data.tar.gz: 12ad28b29945f11d8bb7e24647a4b52352a71be1
3
+ metadata.gz: 76f9c81397416d6b304275d0be066bd0f7b63bbb
4
+ data.tar.gz: 92bf858e2784bc85bb687d9836c401718bd26b32
5
5
  SHA512:
6
- metadata.gz: 02f3c11305c235057fd94ce3822609f71649a31910047d58af66ce43e1e6628cd669a4cf63089cf5110cb03fa9fd85c044e82863ec3477030825c5fd476e00ee
7
- data.tar.gz: 9c9c287027c12418d6ef30d0623de1cd8fa90dfdb6541c8bfb49a41d1e314db81e7edeab17c0285d2249bbcfecd9e6ee2a0d66e8e1fe1d55ec1c9b89ccb7b246
6
+ metadata.gz: 907804823810690498dd247dde990ad9def057416b6b9de4f159cc632054fea8d372739d92c16cebd33357071cf1246b144de9067431247b39041c3cbe16d3f3
7
+ data.tar.gz: 4a3ed261f9f1fe3fe3bfe6c1f81d2038bfa96b967531a0c8180f9394bac8ea4f36f2c1fd8e7d484e8baf55ab64cff6200fa6c37c1b120b1e235d162a74077a5f
@@ -407,14 +407,18 @@ private
407
407
  #
408
408
  def get_theme(theme)
409
409
  theme_name = helpers.to_str(theme || 'archetype')
410
- @@styleguide_themes ||= {}
411
- theme = @@styleguide_themes[theme_name] ||= {}
410
+ theme = _get_persisted_theme(theme_name)
412
411
  theme[:name] ||= theme_name
413
412
  theme[:components] ||= {}
414
413
  theme[:extensions] ||= []
415
414
  return theme
416
415
  end
417
416
 
417
+ def _get_persisted_theme(theme_name)
418
+ theme = Thread.current[:styleguide_themes] ||= {}
419
+ theme[theme_name] ||= {}
420
+ end
421
+
418
422
  #
419
423
  # driver method for converting a sentence into a list of styles
420
424
  #
@@ -1,3 +1,3 @@
1
1
  module Archetype
2
- VERSION = '0.0.1.pre.9'
2
+ VERSION = '0.0.1.pre.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archetype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre.9
4
+ version: 0.0.1.pre.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene ONeill
@@ -254,34 +254,6 @@ files:
254
254
  - test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss
255
255
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss
256
256
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss
257
- - test/fixtures/stylesheets/archetype/tmp/b.css
258
- - test/fixtures/stylesheets/archetype/tmp/base.css
259
- - test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css
260
- - test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css
261
- - test/fixtures/stylesheets/archetype/tmp/locale.css
262
- - test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css
263
- - test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css
264
- - test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css
265
- - test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css
266
- - test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css
267
- - test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css
268
- - test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css
269
- - test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css
270
- - test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css
271
- - test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css
272
- - test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css
273
- - test/fixtures/stylesheets/archetype/tmp/ui/stroke.css
274
- - test/fixtures/stylesheets/archetype/tmp/ui/triangle.css
275
- - test/fixtures/stylesheets/archetype/tmp/utilities/associative.css
276
- - test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css
277
- - test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css
278
- - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css
279
- - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css
280
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css
281
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css
282
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css
283
- - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css
284
- - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css
285
257
  - test/helpers/diff.rb
286
258
  - test/helpers/io.rb
287
259
  - test/helpers/test_case.rb
@@ -365,34 +337,6 @@ test_files:
365
337
  - test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss
366
338
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss
367
339
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss
368
- - test/fixtures/stylesheets/archetype/tmp/b.css
369
- - test/fixtures/stylesheets/archetype/tmp/base.css
370
- - test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css
371
- - test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css
372
- - test/fixtures/stylesheets/archetype/tmp/locale.css
373
- - test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css
374
- - test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css
375
- - test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css
376
- - test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css
377
- - test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css
378
- - test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css
379
- - test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css
380
- - test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css
381
- - test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css
382
- - test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css
383
- - test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css
384
- - test/fixtures/stylesheets/archetype/tmp/ui/stroke.css
385
- - test/fixtures/stylesheets/archetype/tmp/ui/triangle.css
386
- - test/fixtures/stylesheets/archetype/tmp/utilities/associative.css
387
- - test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css
388
- - test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css
389
- - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css
390
- - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css
391
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css
392
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css
393
- - test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css
394
- - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css
395
- - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css
396
340
  - test/helpers/diff.rb
397
341
  - test/helpers/io.rb
398
342
  - test/helpers/test_case.rb
@@ -1,14 +0,0 @@
1
- a {
2
- font-size: 18px;
3
- font-weight: bold;
4
- line-height: 22px;
5
- color: black;
6
- }
7
-
8
- b {
9
- font-size: 24px;
10
- font-weight: normal;
11
- line-height: 26px;
12
- color: white;
13
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.75);
14
- }
@@ -1,349 +0,0 @@
1
- @-webkit-keyframes archetype-loader {
2
- from {
3
- -webkit-transform: rotate(0deg);
4
- }
5
-
6
- to {
7
- -webkit-transform: rotate(360deg);
8
- }
9
- }
10
-
11
- @-moz-keyframes archetype-loader {
12
- from {
13
- -moz-transform: rotate(0deg);
14
- }
15
-
16
- to {
17
- -moz-transform: rotate(360deg);
18
- }
19
- }
20
-
21
- @-ms-keyframes archetype-loader {
22
- from {
23
- -ms-transform: rotate(0deg);
24
- }
25
-
26
- to {
27
- -ms-transform: rotate(360deg);
28
- }
29
- }
30
-
31
- @-o-keyframes archetype-loader {
32
- from {
33
- -o-transform: rotate(0deg);
34
- }
35
-
36
- to {
37
- -o-transform: rotate(360deg);
38
- }
39
- }
40
-
41
- @keyframes archetype-loader {
42
- from {
43
- transform: rotate(0deg);
44
- }
45
-
46
- to {
47
- transform: rotate(360deg);
48
- }
49
- }
50
-
51
- @-webkit-keyframes archetype-loader-position-medium-1 {
52
- from, to {
53
- background-position: 0 -230px;
54
- width: 58px;
55
- height: 58px;
56
- margin-left: -29px;
57
- margin-top: -29px;
58
- }
59
- }
60
-
61
- @-moz-keyframes archetype-loader-position-medium-1 {
62
- from, to {
63
- background-position: 0 -230px;
64
- width: 58px;
65
- height: 58px;
66
- margin-left: -29px;
67
- margin-top: -29px;
68
- }
69
- }
70
-
71
- @-ms-keyframes archetype-loader-position-medium-1 {
72
- from, to {
73
- background-position: 0 -230px;
74
- width: 58px;
75
- height: 58px;
76
- margin-left: -29px;
77
- margin-top: -29px;
78
- }
79
- }
80
-
81
- @-o-keyframes archetype-loader-position-medium-1 {
82
- from, to {
83
- background-position: 0 -230px;
84
- width: 58px;
85
- height: 58px;
86
- margin-left: -29px;
87
- margin-top: -29px;
88
- }
89
- }
90
-
91
- @keyframes archetype-loader-position-medium-1 {
92
- from, to {
93
- background-position: 0 -230px;
94
- width: 58px;
95
- height: 58px;
96
- margin-left: -29px;
97
- margin-top: -29px;
98
- }
99
- }
100
-
101
- @-webkit-keyframes archetype-loader-position-medium-2 {
102
- from, to {
103
- background-position: 0 -288px;
104
- width: 58px;
105
- height: 58px;
106
- margin-left: -29px;
107
- margin-top: -29px;
108
- }
109
- }
110
-
111
- @-moz-keyframes archetype-loader-position-medium-2 {
112
- from, to {
113
- background-position: 0 -288px;
114
- width: 58px;
115
- height: 58px;
116
- margin-left: -29px;
117
- margin-top: -29px;
118
- }
119
- }
120
-
121
- @-ms-keyframes archetype-loader-position-medium-2 {
122
- from, to {
123
- background-position: 0 -288px;
124
- width: 58px;
125
- height: 58px;
126
- margin-left: -29px;
127
- margin-top: -29px;
128
- }
129
- }
130
-
131
- @-o-keyframes archetype-loader-position-medium-2 {
132
- from, to {
133
- background-position: 0 -288px;
134
- width: 58px;
135
- height: 58px;
136
- margin-left: -29px;
137
- margin-top: -29px;
138
- }
139
- }
140
-
141
- @keyframes archetype-loader-position-medium-2 {
142
- from, to {
143
- background-position: 0 -288px;
144
- width: 58px;
145
- height: 58px;
146
- margin-left: -29px;
147
- margin-top: -29px;
148
- }
149
- }
150
-
151
- @-webkit-keyframes archetype-loader-position-small-1 {
152
- from, to {
153
- background-position: 0 -692px;
154
- width: 16px;
155
- height: 16px;
156
- margin-left: -8px;
157
- margin-top: -8px;
158
- }
159
- }
160
-
161
- @-moz-keyframes archetype-loader-position-small-1 {
162
- from, to {
163
- background-position: 0 -692px;
164
- width: 16px;
165
- height: 16px;
166
- margin-left: -8px;
167
- margin-top: -8px;
168
- }
169
- }
170
-
171
- @-ms-keyframes archetype-loader-position-small-1 {
172
- from, to {
173
- background-position: 0 -692px;
174
- width: 16px;
175
- height: 16px;
176
- margin-left: -8px;
177
- margin-top: -8px;
178
- }
179
- }
180
-
181
- @-o-keyframes archetype-loader-position-small-1 {
182
- from, to {
183
- background-position: 0 -692px;
184
- width: 16px;
185
- height: 16px;
186
- margin-left: -8px;
187
- margin-top: -8px;
188
- }
189
- }
190
-
191
- @keyframes archetype-loader-position-small-1 {
192
- from, to {
193
- background-position: 0 -692px;
194
- width: 16px;
195
- height: 16px;
196
- margin-left: -8px;
197
- margin-top: -8px;
198
- }
199
- }
200
-
201
- @-webkit-keyframes archetype-loader-position-small-2 {
202
- from, to {
203
- background-position: 0 -708px;
204
- width: 16px;
205
- height: 16px;
206
- margin-left: -8px;
207
- margin-top: -8px;
208
- }
209
- }
210
-
211
- @-moz-keyframes archetype-loader-position-small-2 {
212
- from, to {
213
- background-position: 0 -708px;
214
- width: 16px;
215
- height: 16px;
216
- margin-left: -8px;
217
- margin-top: -8px;
218
- }
219
- }
220
-
221
- @-ms-keyframes archetype-loader-position-small-2 {
222
- from, to {
223
- background-position: 0 -708px;
224
- width: 16px;
225
- height: 16px;
226
- margin-left: -8px;
227
- margin-top: -8px;
228
- }
229
- }
230
-
231
- @-o-keyframes archetype-loader-position-small-2 {
232
- from, to {
233
- background-position: 0 -708px;
234
- width: 16px;
235
- height: 16px;
236
- margin-left: -8px;
237
- margin-top: -8px;
238
- }
239
- }
240
-
241
- @keyframes archetype-loader-position-small-2 {
242
- from, to {
243
- background-position: 0 -708px;
244
- width: 16px;
245
- height: 16px;
246
- margin-left: -8px;
247
- margin-top: -8px;
248
- }
249
- }
250
-
251
- @-webkit-keyframes archetype-loader-position-large-1 {
252
- from, to {
253
- background-position: 0 -462px;
254
- width: 115px;
255
- height: 115px;
256
- margin-left: -57.5px;
257
- margin-top: -57.5px;
258
- }
259
- }
260
-
261
- @-moz-keyframes archetype-loader-position-large-1 {
262
- from, to {
263
- background-position: 0 -462px;
264
- width: 115px;
265
- height: 115px;
266
- margin-left: -57.5px;
267
- margin-top: -57.5px;
268
- }
269
- }
270
-
271
- @-ms-keyframes archetype-loader-position-large-1 {
272
- from, to {
273
- background-position: 0 -462px;
274
- width: 115px;
275
- height: 115px;
276
- margin-left: -57.5px;
277
- margin-top: -57.5px;
278
- }
279
- }
280
-
281
- @-o-keyframes archetype-loader-position-large-1 {
282
- from, to {
283
- background-position: 0 -462px;
284
- width: 115px;
285
- height: 115px;
286
- margin-left: -57.5px;
287
- margin-top: -57.5px;
288
- }
289
- }
290
-
291
- @keyframes archetype-loader-position-large-1 {
292
- from, to {
293
- background-position: 0 -462px;
294
- width: 115px;
295
- height: 115px;
296
- margin-left: -57.5px;
297
- margin-top: -57.5px;
298
- }
299
- }
300
-
301
- @-webkit-keyframes archetype-loader-position-large-2 {
302
- from, to {
303
- background-position: 0 -577px;
304
- width: 115px;
305
- height: 115px;
306
- margin-left: -57.5px;
307
- margin-top: -57.5px;
308
- }
309
- }
310
-
311
- @-moz-keyframes archetype-loader-position-large-2 {
312
- from, to {
313
- background-position: 0 -577px;
314
- width: 115px;
315
- height: 115px;
316
- margin-left: -57.5px;
317
- margin-top: -57.5px;
318
- }
319
- }
320
-
321
- @-ms-keyframes archetype-loader-position-large-2 {
322
- from, to {
323
- background-position: 0 -577px;
324
- width: 115px;
325
- height: 115px;
326
- margin-left: -57.5px;
327
- margin-top: -57.5px;
328
- }
329
- }
330
-
331
- @-o-keyframes archetype-loader-position-large-2 {
332
- from, to {
333
- background-position: 0 -577px;
334
- width: 115px;
335
- height: 115px;
336
- margin-left: -57.5px;
337
- margin-top: -57.5px;
338
- }
339
- }
340
-
341
- @keyframes archetype-loader-position-large-2 {
342
- from, to {
343
- background-position: 0 -577px;
344
- width: 115px;
345
- height: 115px;
346
- margin-left: -57.5px;
347
- margin-top: -57.5px;
348
- }
349
- }