archetype 0.0.1.pre.12 → 0.0.1.pre.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/lib/archetype.rb +4 -0
  3. data/lib/archetype/actions/help.rb +16 -0
  4. data/lib/archetype/actions/theme.rb +73 -0
  5. data/lib/archetype/executor.rb +27 -0
  6. data/lib/archetype/functions/hash.rb +28 -12
  7. data/lib/archetype/functions/helpers.rb +46 -13
  8. data/lib/archetype/functions/styleguide_memoizer.rb +10 -2
  9. data/lib/archetype/sass_extensions/functions/lists.rb +36 -42
  10. data/lib/archetype/sass_extensions/functions/locale.rb +32 -16
  11. data/lib/archetype/sass_extensions/functions/styleguide.rb +127 -38
  12. data/lib/archetype/sass_extensions/functions/ui.rb +3 -2
  13. data/lib/archetype/sass_extensions/functions/version.rb +11 -6
  14. data/lib/archetype/sass_extensions/monkey_patches.rb +1 -1
  15. data/lib/archetype/version.rb +2 -2
  16. data/stylesheets/archetype/_base.scss +7 -2
  17. data/stylesheets/archetype/_config.scss +8 -1
  18. data/stylesheets/archetype/_hacks.scss +51 -17
  19. data/stylesheets/archetype/_ui.scss +16 -5
  20. data/stylesheets/archetype/base/_h5bp.scss +12 -12
  21. data/stylesheets/archetype/base/_normalize.scss +178 -139
  22. data/stylesheets/archetype/grid/_grid.scss +13 -13
  23. data/stylesheets/archetype/styleguide/components/_buttons.scss +1 -0
  24. data/stylesheets/archetype/util/_debug.scss +4 -4
  25. data/stylesheets/archetype/util/_lists.scss +1 -1
  26. data/stylesheets/archetype/util/_misc.scss +1 -1
  27. data/stylesheets/archetype/util/_rtl.scss +1 -1
  28. data/stylesheets/archetype/util/_spacing.scss +6 -6
  29. data/stylesheets/archetype/util/_styles.scss +21 -10
  30. data/stylesheets/archetype/util/_targeting.scss +1 -1
  31. data/test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png +0 -0
  32. data/test/fixtures/stylesheets/archetype/config.rb +2 -0
  33. data/test/fixtures/stylesheets/archetype/source/base.scss +3 -0
  34. data/test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss +5 -0
  35. data/test/fixtures/stylesheets/archetype/source/locale.scss +43 -0
  36. data/test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss +21 -0
  37. data/test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss +5 -1
  38. data/test/fixtures/stylesheets/archetype/source/styleguide/drop.scss +101 -0
  39. data/test/fixtures/stylesheets/archetype/source/styleguide/extend.scss +24 -0
  40. data/test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss +85 -0
  41. data/test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss +18 -0
  42. data/test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss +1 -1
  43. data/test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss +1 -1
  44. data/test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss +30 -0
  45. data/test/fixtures/stylesheets/archetype/source/utilities/associative.scss +24 -0
  46. data/test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss +4 -3
  47. data/test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss +8 -1
  48. data/test/fixtures/stylesheets/archetype/tmp/b.css +14 -0
  49. data/test/fixtures/stylesheets/archetype/tmp/base.css +349 -0
  50. data/test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css +11 -0
  51. data/test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css +4 -0
  52. data/test/fixtures/stylesheets/archetype/tmp/locale.css +23 -0
  53. data/test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css +711 -0
  54. data/test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css +2119 -0
  55. data/test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css +63 -0
  56. data/test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css +11 -0
  57. data/test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css +10 -0
  58. data/test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css +21 -0
  59. data/test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css +13 -0
  60. data/test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css +28 -0
  61. data/test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css +177 -0
  62. data/test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css +127 -0
  63. data/test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css +8 -0
  64. data/test/fixtures/stylesheets/archetype/tmp/ui/stroke.css +17 -0
  65. data/test/fixtures/stylesheets/archetype/tmp/ui/triangle.css +35 -0
  66. data/test/fixtures/stylesheets/archetype/tmp/utilities/associative.css +9 -0
  67. data/test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css +8 -0
  68. data/test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css +9 -0
  69. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css +29 -0
  70. data/test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css +29 -0
  71. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css +11 -0
  72. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css +16 -0
  73. data/test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css +15 -0
  74. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css +105 -0
  75. data/test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css +55 -0
  76. data/test/helpers/test_case.rb +2 -2
  77. data/test/integrations/archetype_test.rb +3 -1
  78. data/test/units/sass_extensions_test.rb +18 -25
  79. metadata +81 -3
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.12
4
+ version: 0.0.1.pre.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene ONeill
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-12 00:00:00.000000000 Z
12
+ date: 2014-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -79,6 +79,9 @@ files:
79
79
  - bin/archetype
80
80
  - lib/README.rdoc
81
81
  - lib/archetype.rb
82
+ - lib/archetype/actions/help.rb
83
+ - lib/archetype/actions/theme.rb
84
+ - lib/archetype/executor.rb
82
85
  - lib/archetype/functions.rb
83
86
  - lib/archetype/functions/hash.rb
84
87
  - lib/archetype/functions/helpers.rb
@@ -203,6 +206,7 @@ files:
203
206
  - test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.svg
204
207
  - test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.ttf
205
208
  - test/fixtures/stylesheets/archetype/assets/fonts/fontawesome-webfont.woff
209
+ - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
206
210
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large.png
207
211
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark.png
208
212
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/large/large_dark_static.png
@@ -218,15 +222,24 @@ files:
218
222
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
219
223
  - test/fixtures/stylesheets/archetype/config.rb
220
224
  - test/fixtures/stylesheets/archetype/source/b.scss
225
+ - test/fixtures/stylesheets/archetype/source/base.scss
221
226
  - test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
227
+ - test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
228
+ - test/fixtures/stylesheets/archetype/source/locale.scss
229
+ - test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
222
230
  - test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
231
+ - test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
232
+ - test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
223
233
  - test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
234
+ - test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
235
+ - test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
224
236
  - test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
225
237
  - test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
226
238
  - test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
227
239
  - test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
228
240
  - test/fixtures/stylesheets/archetype/source/ui/stroke.scss
229
241
  - test/fixtures/stylesheets/archetype/source/ui/triangle.scss
242
+ - test/fixtures/stylesheets/archetype/source/utilities/associative.scss
230
243
  - test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
231
244
  - test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
232
245
  - test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
@@ -236,6 +249,34 @@ files:
236
249
  - test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss
237
250
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss
238
251
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss
252
+ - test/fixtures/stylesheets/archetype/tmp/b.css
253
+ - test/fixtures/stylesheets/archetype/tmp/base.css
254
+ - test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css
255
+ - test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css
256
+ - test/fixtures/stylesheets/archetype/tmp/locale.css
257
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css
258
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css
259
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css
260
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css
261
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css
262
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css
263
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css
264
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css
265
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css
266
+ - test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css
267
+ - test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css
268
+ - test/fixtures/stylesheets/archetype/tmp/ui/stroke.css
269
+ - test/fixtures/stylesheets/archetype/tmp/ui/triangle.css
270
+ - test/fixtures/stylesheets/archetype/tmp/utilities/associative.css
271
+ - test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css
272
+ - test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css
273
+ - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css
274
+ - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css
275
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css
276
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css
277
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css
278
+ - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css
279
+ - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css
239
280
  - test/helpers/diff.rb
240
281
  - test/helpers/io.rb
241
282
  - test/helpers/test_case.rb
@@ -283,18 +324,28 @@ test_files:
283
324
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark.png
284
325
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_dark_static.png
285
326
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders/small/small_static.png
327
+ - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/animations/loaders-s7889ccc8c1.png
286
328
  - test/fixtures/stylesheets/archetype/assets/images/vendor/archetype/sprites/hovercard_tip.png
287
329
  - test/fixtures/stylesheets/archetype/config.rb
288
330
  - test/fixtures/stylesheets/archetype/source/b.scss
331
+ - test/fixtures/stylesheets/archetype/source/base.scss
289
332
  - test/fixtures/stylesheets/archetype/source/hacks/ie_pseudo.scss
333
+ - test/fixtures/stylesheets/archetype/source/hacks/transparent_focusable.scss
334
+ - test/fixtures/stylesheets/archetype/source/locale.scss
335
+ - test/fixtures/stylesheets/archetype/source/styleguide/alerts.scss
290
336
  - test/fixtures/stylesheets/archetype/source/styleguide/buttons.scss
337
+ - test/fixtures/stylesheets/archetype/source/styleguide/drop.scss
338
+ - test/fixtures/stylesheets/archetype/source/styleguide/extend.scss
291
339
  - test/fixtures/stylesheets/archetype/source/styleguide/fallback_styles.scss
340
+ - test/fixtures/stylesheets/archetype/source/styleguide/invalid_structures.scss
341
+ - test/fixtures/stylesheets/archetype/source/styleguide/multi_value.scss
292
342
  - test/fixtures/stylesheets/archetype/source/styleguide/nested_styleguides.scss
293
343
  - test/fixtures/stylesheets/archetype/source/styleguide/selective_state.scss
294
344
  - test/fixtures/stylesheets/archetype/source/ui/glyph_icon.scss
295
345
  - test/fixtures/stylesheets/archetype/source/ui/hide_element.scss
296
346
  - test/fixtures/stylesheets/archetype/source/ui/stroke.scss
297
347
  - test/fixtures/stylesheets/archetype/source/ui/triangle.scss
348
+ - test/fixtures/stylesheets/archetype/source/utilities/associative.scss
298
349
  - test/fixtures/stylesheets/archetype/source/utilities/custom_output_styler.scss
299
350
  - test/fixtures/stylesheets/archetype/source/utilities/if-set.scss
300
351
  - test/fixtures/stylesheets/archetype/source/utilities/spacing/horizontal-spacing.scss
@@ -304,10 +355,37 @@ test_files:
304
355
  - test/fixtures/stylesheets/archetype/source/utilities/styles/z-index.scss
305
356
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-browser.scss
306
357
  - test/fixtures/stylesheets/archetype/source/utilities/targeting/target-os.scss
358
+ - test/fixtures/stylesheets/archetype/tmp/b.css
359
+ - test/fixtures/stylesheets/archetype/tmp/base.css
360
+ - test/fixtures/stylesheets/archetype/tmp/hacks/ie_pseudo.css
361
+ - test/fixtures/stylesheets/archetype/tmp/hacks/transparent_focusable.css
362
+ - test/fixtures/stylesheets/archetype/tmp/locale.css
363
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/alerts.css
364
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/buttons.css
365
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/drop.css
366
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/extend.css
367
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/fallback_styles.css
368
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/invalid_structures.css
369
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/multi_value.css
370
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/nested_styleguides.css
371
+ - test/fixtures/stylesheets/archetype/tmp/styleguide/selective_state.css
372
+ - test/fixtures/stylesheets/archetype/tmp/ui/glyph_icon.css
373
+ - test/fixtures/stylesheets/archetype/tmp/ui/hide_element.css
374
+ - test/fixtures/stylesheets/archetype/tmp/ui/stroke.css
375
+ - test/fixtures/stylesheets/archetype/tmp/ui/triangle.css
376
+ - test/fixtures/stylesheets/archetype/tmp/utilities/associative.css
377
+ - test/fixtures/stylesheets/archetype/tmp/utilities/custom_output_styler.css
378
+ - test/fixtures/stylesheets/archetype/tmp/utilities/if-set.css
379
+ - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/horizontal-spacing.css
380
+ - test/fixtures/stylesheets/archetype/tmp/utilities/spacing/vertical-spacing.css
381
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/filter.css
382
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/font-family.css
383
+ - test/fixtures/stylesheets/archetype/tmp/utilities/styles/z-index.css
384
+ - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-browser.css
385
+ - test/fixtures/stylesheets/archetype/tmp/utilities/targeting/target-os.css
307
386
  - test/helpers/diff.rb
308
387
  - test/helpers/io.rb
309
388
  - test/helpers/test_case.rb
310
389
  - test/integrations/archetype_test.rb
311
390
  - test/test_helper.rb
312
391
  - test/units/sass_extensions_test.rb
313
- has_rdoc: