stylus-source 0.15.4 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (577) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +39 -0
  3. data/VERSION +1 -0
  4. data/lib/stylus/source.rb +1 -1
  5. data/stylus-source.gemspec +2 -2
  6. data/vendor/History.md +525 -0
  7. data/vendor/LICENSE +22 -0
  8. data/vendor/Makefile +20 -0
  9. data/vendor/Readme.md +127 -0
  10. data/vendor/bin/stylus +606 -0
  11. data/vendor/bm.js +22 -0
  12. data/vendor/docs/bifs.md +582 -0
  13. data/vendor/docs/comments.md +35 -0
  14. data/vendor/docs/compare.md +81 -0
  15. data/vendor/docs/conditionals.md +107 -0
  16. data/vendor/docs/css-style.md +77 -0
  17. data/vendor/docs/error-reporting.md +50 -0
  18. data/vendor/docs/escape.md +27 -0
  19. data/vendor/docs/executable.md +159 -0
  20. data/vendor/docs/firebug.md +60 -0
  21. data/vendor/docs/font-face.md +26 -0
  22. data/vendor/docs/functions.md +192 -0
  23. data/vendor/docs/functions.url.md +30 -0
  24. data/vendor/docs/gedit.md +24 -0
  25. data/vendor/docs/import.md +73 -0
  26. data/vendor/docs/interpolation.md +55 -0
  27. data/vendor/docs/introspection.md +39 -0
  28. data/vendor/docs/iteration.md +100 -0
  29. data/vendor/docs/js.md +136 -0
  30. data/vendor/docs/keyframes.md +120 -0
  31. data/vendor/docs/kwargs.md +35 -0
  32. data/vendor/docs/literal.md +16 -0
  33. data/vendor/docs/media.md +18 -0
  34. data/vendor/docs/middleware.md +73 -0
  35. data/vendor/docs/mixins.md +130 -0
  36. data/vendor/docs/operators.md +451 -0
  37. data/vendor/docs/selectors.md +131 -0
  38. data/vendor/docs/textmate.md +4 -0
  39. data/vendor/docs/vargs.md +84 -0
  40. data/vendor/docs/variables.md +78 -0
  41. data/vendor/editors/Stylus.tmbundle/Commands/Compile and Display CSS.tmCommand +33 -0
  42. data/vendor/editors/Stylus.tmbundle/Preferences/Comments.tmPreferences +36 -0
  43. data/vendor/editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage +166 -0
  44. data/vendor/editors/Stylus.tmbundle/info.plist +10 -0
  45. data/vendor/editors/gedit/styl.lang +475 -0
  46. data/vendor/examples/arithmetic.js +12 -0
  47. data/vendor/examples/arithmetic.styl +29 -0
  48. data/vendor/examples/basic.js +12 -0
  49. data/vendor/examples/basic.styl +8 -0
  50. data/vendor/examples/builtins.js +12 -0
  51. data/vendor/examples/builtins.styl +56 -0
  52. data/vendor/examples/comments.js +11 -0
  53. data/vendor/examples/comments.styl +15 -0
  54. data/vendor/examples/compress.js +12 -0
  55. data/vendor/examples/conversions.js +12 -0
  56. data/vendor/examples/conversions.styl +34 -0
  57. data/vendor/examples/functions.js +12 -0
  58. data/vendor/examples/functions.styl +30 -0
  59. data/vendor/examples/gradients.js +13 -0
  60. data/vendor/examples/gradients.styl +8 -0
  61. data/vendor/examples/images/gopher.jpg +0 -0
  62. data/vendor/examples/images/gradient.svg +9 -0
  63. data/vendor/examples/images/jesus.gif +0 -0
  64. data/vendor/examples/images/sprite.gif +0 -0
  65. data/vendor/examples/images.js +20 -0
  66. data/vendor/examples/images.styl +15 -0
  67. data/vendor/examples/implicit-functions.js +12 -0
  68. data/vendor/examples/implicit-functions.styl +23 -0
  69. data/vendor/examples/import.js +12 -0
  70. data/vendor/examples/import.styl +11 -0
  71. data/vendor/examples/js-functions.js +55 -0
  72. data/vendor/examples/js-functions.styl +23 -0
  73. data/vendor/examples/literal.js +12 -0
  74. data/vendor/examples/literal.styl +8 -0
  75. data/vendor/examples/middleware.js +23 -0
  76. data/vendor/examples/mixins/box.styl +14 -0
  77. data/vendor/examples/mixins/gradients.styl +92 -0
  78. data/vendor/examples/nesting.js +12 -0
  79. data/vendor/examples/nesting.styl +14 -0
  80. data/vendor/examples/variables.js +12 -0
  81. data/vendor/examples/variables.styl +24 -0
  82. data/vendor/index.js +2 -0
  83. data/{lib/stylus → vendor/lib}/colors.js +0 -0
  84. data/{lib/stylus → vendor/lib}/convert/css.js +0 -0
  85. data/{lib/stylus → vendor/lib}/errors.js +0 -0
  86. data/{lib/stylus → vendor/lib}/functions/image.js +0 -0
  87. data/{lib/stylus → vendor/lib}/functions/index.js +0 -0
  88. data/{lib/stylus → vendor/lib}/functions/index.styl +11 -2
  89. data/{lib/stylus → vendor/lib}/functions/url.js +0 -0
  90. data/{lib/stylus → vendor/lib}/lexer.js +14 -1
  91. data/{lib/stylus → vendor/lib}/middleware.js +5 -1
  92. data/{lib/stylus → vendor/lib}/nodes/arguments.js +0 -0
  93. data/{lib/stylus → vendor/lib}/nodes/binop.js +0 -0
  94. data/{lib/stylus → vendor/lib}/nodes/block.js +0 -0
  95. data/{lib/stylus → vendor/lib}/nodes/boolean.js +0 -0
  96. data/{lib/stylus → vendor/lib}/nodes/call.js +0 -0
  97. data/{lib/stylus → vendor/lib}/nodes/charset.js +0 -0
  98. data/{lib/stylus → vendor/lib}/nodes/comment.js +0 -0
  99. data/{lib/stylus → vendor/lib}/nodes/each.js +0 -0
  100. data/{lib/stylus → vendor/lib}/nodes/expression.js +32 -0
  101. data/{lib/stylus → vendor/lib}/nodes/fontface.js +0 -0
  102. data/{lib/stylus → vendor/lib}/nodes/function.js +0 -0
  103. data/{lib/stylus → vendor/lib}/nodes/group.js +0 -0
  104. data/{lib/stylus → vendor/lib}/nodes/hsla.js +0 -0
  105. data/{lib/stylus → vendor/lib}/nodes/ident.js +0 -0
  106. data/{lib/stylus → vendor/lib}/nodes/if.js +0 -0
  107. data/{lib/stylus → vendor/lib}/nodes/import.js +0 -0
  108. data/{lib/stylus → vendor/lib}/nodes/index.js +0 -0
  109. data/{lib/stylus → vendor/lib}/nodes/jsliteral.js +0 -0
  110. data/{lib/stylus → vendor/lib}/nodes/keyframes.js +0 -0
  111. data/{lib/stylus → vendor/lib}/nodes/literal.js +0 -0
  112. data/{lib/stylus → vendor/lib}/nodes/media.js +0 -0
  113. data/{lib/stylus → vendor/lib}/nodes/node.js +14 -0
  114. data/{lib/stylus → vendor/lib}/nodes/null.js +0 -0
  115. data/{lib/stylus → vendor/lib}/nodes/page.js +0 -0
  116. data/{lib/stylus → vendor/lib}/nodes/params.js +0 -0
  117. data/{lib/stylus → vendor/lib}/nodes/property.js +0 -0
  118. data/{lib/stylus → vendor/lib}/nodes/return.js +0 -0
  119. data/{lib/stylus → vendor/lib}/nodes/rgba.js +4 -2
  120. data/{lib/stylus → vendor/lib}/nodes/root.js +0 -0
  121. data/{lib/stylus → vendor/lib}/nodes/selector.js +0 -0
  122. data/{lib/stylus → vendor/lib}/nodes/string.js +0 -0
  123. data/{lib/stylus → vendor/lib}/nodes/ternary.js +0 -0
  124. data/{lib/stylus → vendor/lib}/nodes/unaryop.js +0 -0
  125. data/{lib/stylus → vendor/lib}/nodes/unit.js +0 -0
  126. data/{lib/stylus → vendor/lib}/parser.js +17 -2
  127. data/{lib/stylus → vendor/lib}/renderer.js +0 -0
  128. data/{lib/stylus → vendor/lib}/stack/frame.js +0 -0
  129. data/{lib/stylus → vendor/lib}/stack/index.js +0 -0
  130. data/{lib/stylus → vendor/lib}/stack/scope.js +0 -0
  131. data/{lib/stylus → vendor/lib}/stylus.js +1 -1
  132. data/{lib/stylus → vendor/lib}/token.js +0 -0
  133. data/{lib/stylus → vendor/lib}/utils.js +0 -0
  134. data/{lib/stylus → vendor/lib}/visitor/compiler.js +1 -0
  135. data/{lib/stylus → vendor/lib}/visitor/evaluator.js +9 -3
  136. data/{lib/stylus → vendor/lib}/visitor/index.js +0 -0
  137. data/{lib → vendor}/node_modules/cssom/Jakefile +0 -0
  138. data/{lib → vendor}/node_modules/cssom/README.mdown +0 -0
  139. data/{lib → vendor}/node_modules/cssom/Rakefile +0 -0
  140. data/{lib → vendor}/node_modules/cssom/docs/bar.css +0 -0
  141. data/{lib → vendor}/node_modules/cssom/docs/demo.css +0 -0
  142. data/{lib → vendor}/node_modules/cssom/docs/foo.css +0 -0
  143. data/{lib → vendor}/node_modules/cssom/docs/parse.html +0 -0
  144. data/{lib → vendor}/node_modules/cssom/docs/parse2.html +0 -0
  145. data/{lib → vendor}/node_modules/cssom/index.html +0 -0
  146. data/{lib → vendor}/node_modules/cssom/lib/CSSImportRule.js +0 -0
  147. data/{lib → vendor}/node_modules/cssom/lib/CSSMediaRule.js +0 -0
  148. data/{lib → vendor}/node_modules/cssom/lib/CSSOM.js +0 -0
  149. data/{lib → vendor}/node_modules/cssom/lib/CSSRule.js +0 -0
  150. data/{lib → vendor}/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -0
  151. data/{lib → vendor}/node_modules/cssom/lib/CSSStyleRule.js +0 -0
  152. data/{lib → vendor}/node_modules/cssom/lib/CSSStyleSheet.js +0 -0
  153. data/{lib → vendor}/node_modules/cssom/lib/MediaList.js +0 -0
  154. data/{lib → vendor}/node_modules/cssom/lib/StyleSheet.js +0 -0
  155. data/{lib → vendor}/node_modules/cssom/lib/clone.js +0 -0
  156. data/{lib → vendor}/node_modules/cssom/lib/index.js +0 -0
  157. data/{lib → vendor}/node_modules/cssom/lib/parse.js +0 -0
  158. data/{lib → vendor}/node_modules/cssom/media.html +0 -0
  159. data/{lib → vendor}/node_modules/cssom/package.json +0 -0
  160. data/{lib → vendor}/node_modules/cssom/plugins/toHTML.js +0 -0
  161. data/{lib → vendor}/node_modules/cssom/server/index.html +0 -0
  162. data/{lib → vendor}/node_modules/cssom/server/index.js +0 -0
  163. data/{lib → vendor}/node_modules/cssom/shorthands.html +0 -0
  164. data/{lib → vendor}/node_modules/cssom/test/CSSStyleDeclaration.test.js +0 -0
  165. data/{lib → vendor}/node_modules/cssom/test/CSSStyleRule.test.js +0 -0
  166. data/{lib → vendor}/node_modules/cssom/test/CSSStyleSheet.test.js +0 -0
  167. data/{lib → vendor}/node_modules/cssom/test/MediaList.test.js +0 -0
  168. data/{lib → vendor}/node_modules/cssom/test/clone.test.js +0 -0
  169. data/{lib → vendor}/node_modules/cssom/test/fixtures/dummy.css +0 -0
  170. data/{lib → vendor}/node_modules/cssom/test/helper.js +0 -0
  171. data/{lib → vendor}/node_modules/cssom/test/index.html +0 -0
  172. data/{lib → vendor}/node_modules/cssom/test/parse.test.js +0 -0
  173. data/{lib → vendor}/node_modules/cssom/test/vendor/qunit.css +0 -0
  174. data/{lib → vendor}/node_modules/cssom/test/vendor/qunit.js +0 -0
  175. data/{lib → vendor}/node_modules/growl/History.md +0 -0
  176. data/{lib → vendor}/node_modules/growl/Readme.md +0 -0
  177. data/{lib → vendor}/node_modules/growl/lib/growl.js +0 -0
  178. data/{lib → vendor}/node_modules/growl/package.json +0 -0
  179. data/{lib → vendor}/node_modules/growl/test.js +0 -0
  180. data/vendor/node_modules/mkdirp/LICENSE +21 -0
  181. data/vendor/node_modules/mkdirp/README.markdown +21 -0
  182. data/vendor/node_modules/mkdirp/examples/pow.js +6 -0
  183. data/vendor/node_modules/mkdirp/examples/pow.js.orig +6 -0
  184. data/vendor/node_modules/mkdirp/examples/pow.js.rej +19 -0
  185. data/vendor/node_modules/mkdirp/index.js +20 -0
  186. data/vendor/node_modules/mkdirp/package.json +23 -0
  187. data/vendor/node_modules/mkdirp/test/mkdirp.js +28 -0
  188. data/vendor/node_modules/mkdirp/test/race.js +41 -0
  189. data/vendor/node_modules/mkdirp/test/rel.js +32 -0
  190. data/vendor/package.json +16 -0
  191. data/vendor/test/cases/arithmetic.color.css +44 -0
  192. data/vendor/test/cases/arithmetic.color.styl +48 -0
  193. data/vendor/test/cases/arithmetic.css +23 -0
  194. data/vendor/test/cases/arithmetic.styl +30 -0
  195. data/vendor/test/cases/arithmetic.unary.css +16 -0
  196. data/vendor/test/cases/arithmetic.unary.styl +16 -0
  197. data/vendor/test/cases/atscope.css +21 -0
  198. data/vendor/test/cases/atscope.styl +23 -0
  199. data/vendor/test/cases/bifs.add-property.css +21 -0
  200. data/vendor/test/cases/bifs.add-property.styl +48 -0
  201. data/vendor/test/cases/bifs.components.css +9 -0
  202. data/vendor/test/cases/bifs.components.styl +9 -0
  203. data/vendor/test/cases/bifs.dark.css +5 -0
  204. data/vendor/test/cases/bifs.dark.styl +4 -0
  205. data/vendor/test/cases/bifs.darken.css +8 -0
  206. data/vendor/test/cases/bifs.darken.styl +9 -0
  207. data/vendor/test/cases/bifs.fade.css +6 -0
  208. data/vendor/test/cases/bifs.fade.styl +6 -0
  209. data/vendor/test/cases/bifs.image-size.css +9 -0
  210. data/vendor/test/cases/bifs.image-size.styl +16 -0
  211. data/vendor/test/cases/bifs.join.css +18 -0
  212. data/vendor/test/cases/bifs.join.styl +21 -0
  213. data/vendor/test/cases/bifs.last.css +5 -0
  214. data/vendor/test/cases/bifs.last.styl +6 -0
  215. data/vendor/test/cases/bifs.length.css +10 -0
  216. data/vendor/test/cases/bifs.length.styl +18 -0
  217. data/vendor/test/cases/bifs.light.css +5 -0
  218. data/vendor/test/cases/bifs.light.styl +4 -0
  219. data/vendor/test/cases/bifs.lighten.css +14 -0
  220. data/vendor/test/cases/bifs.lighten.styl +14 -0
  221. data/vendor/test/cases/bifs.lookup.css +3 -0
  222. data/vendor/test/cases/bifs.lookup.styl +8 -0
  223. data/vendor/test/cases/bifs.match.css +4 -0
  224. data/vendor/test/cases/bifs.match.styl +9 -0
  225. data/vendor/test/cases/bifs.opposite-position.css +8 -0
  226. data/vendor/test/cases/bifs.opposite-position.styl +9 -0
  227. data/vendor/test/cases/bifs.push.css +25 -0
  228. data/vendor/test/cases/bifs.push.styl +48 -0
  229. data/vendor/test/cases/bifs.rgba.css +5 -0
  230. data/vendor/test/cases/bifs.rgba.styl +4 -0
  231. data/vendor/test/cases/bifs.s.css +11 -0
  232. data/vendor/test/cases/bifs.s.styl +12 -0
  233. data/vendor/test/cases/bifs.type.css +11 -0
  234. data/vendor/test/cases/bifs.type.styl +12 -0
  235. data/vendor/test/cases/bifs.unit.css +6 -0
  236. data/vendor/test/cases/bifs.unit.styl +5 -0
  237. data/vendor/test/cases/bifs.unquote.css +5 -0
  238. data/vendor/test/cases/bifs.unquote.styl +8 -0
  239. data/vendor/test/cases/bifs.url.css +11 -0
  240. data/vendor/test/cases/bifs.url.styl +15 -0
  241. data/vendor/test/cases/coercion.css +6 -0
  242. data/vendor/test/cases/coercion.styl +5 -0
  243. data/vendor/test/cases/comments.css +18 -0
  244. data/vendor/test/cases/comments.styl +28 -0
  245. data/vendor/test/cases/compress.comments.css +2 -0
  246. data/vendor/test/cases/compress.comments.styl +5 -0
  247. data/vendor/test/cases/compress.units.css +2 -0
  248. data/vendor/test/cases/compress.units.styl +18 -0
  249. data/vendor/test/cases/conditional-assignment.css +4 -0
  250. data/vendor/test/cases/conditional-assignment.styl +9 -0
  251. data/vendor/test/cases/control.blueprint.ie.css +126 -0
  252. data/vendor/test/cases/control.blueprint.ie.styl +36 -0
  253. data/vendor/test/cases/control.blueprint.screen.css +1103 -0
  254. data/vendor/test/cases/control.blueprint.screen.styl +265 -0
  255. data/vendor/test/cases/control.boilerplate.css +473 -0
  256. data/vendor/test/cases/control.boilerplate.styl +265 -0
  257. data/vendor/test/cases/css.functions.single-line.css +9 -0
  258. data/vendor/test/cases/css.functions.single-line.styl +13 -0
  259. data/vendor/test/cases/css.if.css +8 -0
  260. data/vendor/test/cases/css.if.styl +21 -0
  261. data/vendor/test/cases/css.keyframes.css +57 -0
  262. data/vendor/test/cases/css.keyframes.styl +48 -0
  263. data/vendor/test/cases/css.large.css +172 -0
  264. data/vendor/test/cases/css.large.styl +172 -0
  265. data/vendor/test/cases/css.media.css +15 -0
  266. data/vendor/test/cases/css.media.styl +17 -0
  267. data/vendor/test/cases/css.mixins.braces.css +38 -0
  268. data/vendor/test/cases/css.mixins.braces.styl +53 -0
  269. data/vendor/test/cases/css.mixins.css +38 -0
  270. data/vendor/test/cases/css.mixins.root.css +26 -0
  271. data/vendor/test/cases/css.mixins.root.styl +25 -0
  272. data/vendor/test/cases/css.mixins.root.wonky.css +26 -0
  273. data/vendor/test/cases/css.mixins.root.wonky.styl +17 -0
  274. data/vendor/test/cases/css.mixins.styl +47 -0
  275. data/vendor/test/cases/css.selector.interpolation.css +91 -0
  276. data/vendor/test/cases/css.selector.interpolation.styl +90 -0
  277. data/vendor/test/cases/css.selectors.css +38 -0
  278. data/vendor/test/cases/css.selectors.styl +53 -0
  279. data/vendor/test/cases/css.whitespace.css +37 -0
  280. data/vendor/test/cases/css.whitespace.styl +38 -0
  281. data/vendor/test/cases/escape.css +4 -0
  282. data/vendor/test/cases/escape.styl +4 -0
  283. data/vendor/test/cases/fontface.css +4 -0
  284. data/vendor/test/cases/fontface.styl +5 -0
  285. data/vendor/test/cases/for.complex.css +44 -0
  286. data/vendor/test/cases/for.complex.styl +28 -0
  287. data/vendor/test/cases/for.css +52 -0
  288. data/vendor/test/cases/for.function.css +20 -0
  289. data/vendor/test/cases/for.function.styl +51 -0
  290. data/vendor/test/cases/for.styl +44 -0
  291. data/vendor/test/cases/function.arguments.css +4 -0
  292. data/vendor/test/cases/function.arguments.styl +14 -0
  293. data/vendor/test/cases/function.literals.css +6 -0
  294. data/vendor/test/cases/function.literals.styl +12 -0
  295. data/vendor/test/cases/functions.arg-calls.css +3 -0
  296. data/vendor/test/cases/functions.arg-calls.styl +9 -0
  297. data/vendor/test/cases/functions.call.css +4 -0
  298. data/vendor/test/cases/functions.call.styl +7 -0
  299. data/vendor/test/cases/functions.css +11 -0
  300. data/vendor/test/cases/functions.defaults.css +15 -0
  301. data/vendor/test/cases/functions.defaults.styl +30 -0
  302. data/vendor/test/cases/functions.multi-line.css +9 -0
  303. data/vendor/test/cases/functions.multi-line.styl +25 -0
  304. data/vendor/test/cases/functions.multiple-calls.css +13 -0
  305. data/vendor/test/cases/functions.multiple-calls.styl +26 -0
  306. data/vendor/test/cases/functions.nested-calls.css +3 -0
  307. data/vendor/test/cases/functions.nested-calls.styl +9 -0
  308. data/vendor/test/cases/functions.nested.css +10 -0
  309. data/vendor/test/cases/functions.nested.styl +37 -0
  310. data/vendor/test/cases/functions.property.css +10 -0
  311. data/vendor/test/cases/functions.property.styl +11 -0
  312. data/vendor/test/cases/functions.return.css +15 -0
  313. data/vendor/test/cases/functions.return.each.css +10 -0
  314. data/vendor/test/cases/functions.return.each.styl +23 -0
  315. data/vendor/test/cases/functions.return.styl +86 -0
  316. data/vendor/test/cases/functions.styl +34 -0
  317. data/vendor/test/cases/functions.variable.css +9 -0
  318. data/vendor/test/cases/functions.variable.ident.css +3 -0
  319. data/vendor/test/cases/functions.variable.ident.styl +11 -0
  320. data/vendor/test/cases/functions.variable.styl +27 -0
  321. data/vendor/test/cases/hack.star.css +27 -0
  322. data/vendor/test/cases/hack.star.styl +37 -0
  323. data/vendor/test/cases/if.css +43 -0
  324. data/vendor/test/cases/if.else.css +6 -0
  325. data/vendor/test/cases/if.else.styl +16 -0
  326. data/vendor/test/cases/if.mixin.css +7 -0
  327. data/vendor/test/cases/if.mixin.styl +24 -0
  328. data/vendor/test/cases/if.postfix.css +61 -0
  329. data/vendor/test/cases/if.postfix.styl +110 -0
  330. data/vendor/test/cases/if.selectors.css +16 -0
  331. data/vendor/test/cases/if.selectors.styl +22 -0
  332. data/vendor/test/cases/if.styl +99 -0
  333. data/vendor/test/cases/import.basic/a.styl +5 -0
  334. data/vendor/test/cases/import.basic/b.styl +5 -0
  335. data/vendor/test/cases/import.basic/c.styl +3 -0
  336. data/vendor/test/cases/import.basic.css +11 -0
  337. data/vendor/test/cases/import.basic.styl +4 -0
  338. data/vendor/test/cases/import.complex/a.styl +4 -0
  339. data/vendor/test/cases/import.complex/c.styl +2 -0
  340. data/vendor/test/cases/import.complex/nested/b.styl +4 -0
  341. data/vendor/test/cases/import.complex.css +9 -0
  342. data/vendor/test/cases/import.complex.styl +1 -0
  343. data/vendor/test/cases/import.index/vendor/a.styl +2 -0
  344. data/vendor/test/cases/import.index/vendor/b.styl +2 -0
  345. data/vendor/test/cases/import.index/vendor/c.styl +2 -0
  346. data/vendor/test/cases/import.index/vendor/index.styl +4 -0
  347. data/vendor/test/cases/import.index.css +9 -0
  348. data/vendor/test/cases/import.index.styl +2 -0
  349. data/vendor/test/cases/import.literal.css +2 -0
  350. data/vendor/test/cases/import.literal.styl +3 -0
  351. data/vendor/test/cases/import.mixins.css +7 -0
  352. data/vendor/test/cases/import.mixins.styl +9 -0
  353. data/vendor/test/cases/import.ordering/five.styl +2 -0
  354. data/vendor/test/cases/import.ordering/four.styl +4 -0
  355. data/vendor/test/cases/import.ordering/two.styl +2 -0
  356. data/vendor/test/cases/import.ordering.css +15 -0
  357. data/vendor/test/cases/import.ordering.styl +12 -0
  358. data/vendor/test/cases/important.css +6 -0
  359. data/vendor/test/cases/important.styl +6 -0
  360. data/vendor/test/cases/interpolation.properties.css +40 -0
  361. data/vendor/test/cases/interpolation.properties.styl +56 -0
  362. data/vendor/test/cases/introspection.css +7 -0
  363. data/vendor/test/cases/introspection.styl +14 -0
  364. data/vendor/test/cases/jquery.css +3 -0
  365. data/vendor/test/cases/jquery.styl +5 -0
  366. data/vendor/test/cases/keyframes.css +9 -0
  367. data/vendor/test/cases/keyframes.fabrication.css +18 -0
  368. data/vendor/test/cases/keyframes.fabrication.defaults.css +45 -0
  369. data/vendor/test/cases/keyframes.fabrication.defaults.styl +9 -0
  370. data/vendor/test/cases/keyframes.fabrication.styl +11 -0
  371. data/vendor/test/cases/keyframes.styl +6 -0
  372. data/vendor/test/cases/kwargs.css +63 -0
  373. data/vendor/test/cases/kwargs.styl +74 -0
  374. data/vendor/test/cases/list.css +3 -0
  375. data/vendor/test/cases/list.styl +3 -0
  376. data/vendor/test/cases/literal.color.css +6 -0
  377. data/vendor/test/cases/literal.color.styl +5 -0
  378. data/vendor/test/cases/literal.css +10 -0
  379. data/vendor/test/cases/literal.styl +18 -0
  380. data/vendor/test/cases/media.css +14 -0
  381. data/vendor/test/cases/media.styl +11 -0
  382. data/vendor/test/cases/mixin.conditional.css +19 -0
  383. data/vendor/test/cases/mixin.conditional.styl +36 -0
  384. data/vendor/test/cases/mixin.order.conditional.css +11 -0
  385. data/vendor/test/cases/mixin.order.conditional.styl +20 -0
  386. data/vendor/test/cases/mixin.order.css +9 -0
  387. data/vendor/test/cases/mixin.order.nested.css +9 -0
  388. data/vendor/test/cases/mixin.order.nested.styl +21 -0
  389. data/vendor/test/cases/mixin.order.styl +20 -0
  390. data/vendor/test/cases/mixins/box.styl +11 -0
  391. data/vendor/test/cases/mixins.complex.css +30 -0
  392. data/vendor/test/cases/mixins.complex.fix-to.css +15 -0
  393. data/vendor/test/cases/mixins.complex.fix-to.styl +28 -0
  394. data/vendor/test/cases/mixins.complex.styl +41 -0
  395. data/vendor/test/cases/mixins.conditional.css +3 -0
  396. data/vendor/test/cases/mixins.conditional.styl +8 -0
  397. data/vendor/test/cases/mixins.nested.css +7 -0
  398. data/vendor/test/cases/mixins.nested.selectors.css +21 -0
  399. data/vendor/test/cases/mixins.nested.selectors.styl +31 -0
  400. data/vendor/test/cases/mixins.nested.styl +14 -0
  401. data/vendor/test/cases/mixins.order.2.css +11 -0
  402. data/vendor/test/cases/mixins.order.2.styl +16 -0
  403. data/vendor/test/cases/mixins.reset.css +75 -0
  404. data/vendor/test/cases/mixins.reset.styl +27 -0
  405. data/vendor/test/cases/mixins.return.css +4 -0
  406. data/vendor/test/cases/mixins.return.styl +8 -0
  407. data/vendor/test/cases/mixins.root.css +3 -0
  408. data/vendor/test/cases/mixins.root.styl +5 -0
  409. data/vendor/test/cases/operator.range.css +15 -0
  410. data/vendor/test/cases/operator.range.styl +23 -0
  411. data/vendor/test/cases/operators.assignment.function.css +15 -0
  412. data/vendor/test/cases/operators.assignment.function.styl +34 -0
  413. data/vendor/test/cases/operators.assignment.mixin.css +15 -0
  414. data/vendor/test/cases/operators.assignment.mixin.styl +39 -0
  415. data/vendor/test/cases/operators.assignment.root.css +25 -0
  416. data/vendor/test/cases/operators.assignment.root.styl +55 -0
  417. data/vendor/test/cases/operators.complex.css +9 -0
  418. data/vendor/test/cases/operators.complex.styl +32 -0
  419. data/vendor/test/cases/operators.css +40 -0
  420. data/vendor/test/cases/operators.equality.css +55 -0
  421. data/vendor/test/cases/operators.equality.styl +55 -0
  422. data/vendor/test/cases/operators.in.css +37 -0
  423. data/vendor/test/cases/operators.in.styl +51 -0
  424. data/vendor/test/cases/operators.mixins.css +10 -0
  425. data/vendor/test/cases/operators.mixins.styl +25 -0
  426. data/vendor/test/cases/operators.precedence.css +51 -0
  427. data/vendor/test/cases/operators.precedence.styl +82 -0
  428. data/vendor/test/cases/operators.styl +96 -0
  429. data/vendor/test/cases/operators.subscript.assign.css +21 -0
  430. data/vendor/test/cases/operators.subscript.assign.styl +45 -0
  431. data/vendor/test/cases/operators.subscript.css +59 -0
  432. data/vendor/test/cases/operators.subscript.range.css +14 -0
  433. data/vendor/test/cases/operators.subscript.range.styl +15 -0
  434. data/vendor/test/cases/operators.subscript.styl +81 -0
  435. data/vendor/test/cases/page.css +13 -0
  436. data/vendor/test/cases/page.styl +13 -0
  437. data/vendor/test/cases/parent.css +32 -0
  438. data/vendor/test/cases/parent.styl +33 -0
  439. data/vendor/test/cases/properties.colons.css +8 -0
  440. data/vendor/test/cases/properties.colons.styl +10 -0
  441. data/vendor/test/cases/properties.css +4 -0
  442. data/vendor/test/cases/properties.one-line.css +10 -0
  443. data/vendor/test/cases/properties.one-line.styl +11 -0
  444. data/vendor/test/cases/properties.styl +4 -0
  445. data/vendor/test/cases/property-access.css +48 -0
  446. data/vendor/test/cases/property-access.styl +62 -0
  447. data/vendor/test/cases/regression.107.lookup-failure.css +12 -0
  448. data/vendor/test/cases/regression.107.lookup-failure.styl +13 -0
  449. data/vendor/test/cases/regression.127.css +3 -0
  450. data/vendor/test/cases/regression.127.styl +2 -0
  451. data/vendor/test/cases/regression.130.css +16 -0
  452. data/vendor/test/cases/regression.130.styl +6 -0
  453. data/vendor/test/cases/regression.131.css +7 -0
  454. data/vendor/test/cases/regression.131.styl +2 -0
  455. data/vendor/test/cases/regression.137.css +7 -0
  456. data/vendor/test/cases/regression.137.styl +7 -0
  457. data/vendor/test/cases/regression.139.css +5 -0
  458. data/vendor/test/cases/regression.139.styl +21 -0
  459. data/vendor/test/cases/regression.142.css +39 -0
  460. data/vendor/test/cases/regression.142.styl +54 -0
  461. data/vendor/test/cases/regression.146.css +30 -0
  462. data/vendor/test/cases/regression.146.styl +31 -0
  463. data/vendor/test/cases/regression.153.css +8 -0
  464. data/vendor/test/cases/regression.153.styl +9 -0
  465. data/vendor/test/cases/regression.154.css +8 -0
  466. data/vendor/test/cases/regression.154.styl +14 -0
  467. data/vendor/test/cases/regression.156.css +4 -0
  468. data/vendor/test/cases/regression.156.styl +6 -0
  469. data/vendor/test/cases/regression.212.css +15 -0
  470. data/vendor/test/cases/regression.212.styl +14 -0
  471. data/vendor/test/cases/regression.216.css +10 -0
  472. data/vendor/test/cases/regression.216.styl +8 -0
  473. data/vendor/test/cases/regression.220.css +5 -0
  474. data/vendor/test/cases/regression.220.styl +5 -0
  475. data/vendor/test/cases/regression.229.css +12 -0
  476. data/vendor/test/cases/regression.229.styl +9 -0
  477. data/vendor/test/cases/regression.233.css +6 -0
  478. data/vendor/test/cases/regression.233.styl +7 -0
  479. data/vendor/test/cases/regression.235.css +11 -0
  480. data/vendor/test/cases/regression.235.styl +13 -0
  481. data/vendor/test/cases/regression.243.css +3 -0
  482. data/vendor/test/cases/regression.243.styl +4 -0
  483. data/vendor/test/cases/regression.244.css +3 -0
  484. data/vendor/test/cases/regression.244.styl +3 -0
  485. data/vendor/test/cases/regression.247.css +6 -0
  486. data/vendor/test/cases/regression.247.styl +6 -0
  487. data/vendor/test/cases/regression.248.compressed.css +4 -0
  488. data/vendor/test/cases/regression.248.compressed.styl +10 -0
  489. data/vendor/test/cases/regression.252.css +13 -0
  490. data/vendor/test/cases/regression.252.styl +13 -0
  491. data/vendor/test/cases/regression.260.css +6 -0
  492. data/vendor/test/cases/regression.260.styl +6 -0
  493. data/vendor/test/cases/regression.267.css +3 -0
  494. data/vendor/test/cases/regression.267.styl +3 -0
  495. data/vendor/test/cases/regression.270.css +5 -0
  496. data/vendor/test/cases/regression.270.styl +7 -0
  497. data/vendor/test/cases/regression.272.css +11 -0
  498. data/vendor/test/cases/regression.272.styl +17 -0
  499. data/vendor/test/cases/regression.274.css +14 -0
  500. data/vendor/test/cases/regression.274.styl +16 -0
  501. data/vendor/test/cases/regression.360.css +19 -0
  502. data/vendor/test/cases/regression.360.styl +1 -0
  503. data/vendor/test/cases/regression.368.css +4 -0
  504. data/vendor/test/cases/regression.368.styl +3 -0
  505. data/vendor/test/cases/regression.379.css +6 -0
  506. data/vendor/test/cases/regression.379.styl +10 -0
  507. data/vendor/test/cases/regression.380.css +8 -0
  508. data/vendor/test/cases/regression.380.styl +14 -0
  509. data/vendor/test/cases/regression.388.css +2 -0
  510. data/vendor/test/cases/regression.388.styl +6 -0
  511. data/vendor/test/cases/regression.415.css +5 -0
  512. data/vendor/test/cases/regression.415.styl +3 -0
  513. data/vendor/test/cases/regression.420.css +21 -0
  514. data/vendor/test/cases/regression.420.styl +29 -0
  515. data/vendor/test/cases/reset.css +70 -0
  516. data/vendor/test/cases/reset.styl +16 -0
  517. data/vendor/test/cases/rule.charset.css +1 -0
  518. data/vendor/test/cases/rule.charset.styl +2 -0
  519. data/vendor/test/cases/rulset.css +4 -0
  520. data/vendor/test/cases/rulset.newline.css +5 -0
  521. data/vendor/test/cases/rulset.newline.styl +5 -0
  522. data/vendor/test/cases/rulset.styl +3 -0
  523. data/vendor/test/cases/scope.complex.css +10 -0
  524. data/vendor/test/cases/scope.complex.styl +16 -0
  525. data/vendor/test/cases/scope.css +5 -0
  526. data/vendor/test/cases/scope.nested.css +9 -0
  527. data/vendor/test/cases/scope.nested.styl +10 -0
  528. data/vendor/test/cases/scope.styl +12 -0
  529. data/vendor/test/cases/selector.interpolation.css +57 -0
  530. data/vendor/test/cases/selector.interpolation.styl +45 -0
  531. data/vendor/test/cases/selectors.complex.css +28 -0
  532. data/vendor/test/cases/selectors.complex.styl +27 -0
  533. data/vendor/test/cases/selectors.css +50 -0
  534. data/vendor/test/cases/selectors.nested.comma.css +9 -0
  535. data/vendor/test/cases/selectors.nested.comma.styl +8 -0
  536. data/vendor/test/cases/selectors.nested.css +34 -0
  537. data/vendor/test/cases/selectors.nested.styl +33 -0
  538. data/vendor/test/cases/selectors.pseudo.css +27 -0
  539. data/vendor/test/cases/selectors.pseudo.elements.css +26 -0
  540. data/vendor/test/cases/selectors.pseudo.elements.styl +29 -0
  541. data/vendor/test/cases/selectors.pseudo.styl +24 -0
  542. data/vendor/test/cases/selectors.styl +46 -0
  543. data/vendor/test/cases/self-assignment.css +3 -0
  544. data/vendor/test/cases/self-assignment.styl +4 -0
  545. data/vendor/test/cases/vargs.call.css +24 -0
  546. data/vendor/test/cases/vargs.call.styl +40 -0
  547. data/vendor/test/cases/vargs.css +30 -0
  548. data/vendor/test/cases/vargs.styl +49 -0
  549. data/vendor/test/cases/variable.css +3 -0
  550. data/vendor/test/cases/variable.styl +4 -0
  551. data/vendor/test/cases/variables.css +12 -0
  552. data/vendor/test/cases/variables.styl +17 -0
  553. data/vendor/test/images/gif +0 -0
  554. data/vendor/test/images/squirrel.jpeg +0 -0
  555. data/vendor/test/images/tux.png +0 -0
  556. data/vendor/test/run.js +151 -0
  557. data/vendor/testing/index.html +56 -0
  558. data/vendor/testing/stylus.js +146 -0
  559. data/vendor/testing/test-js.js +23 -0
  560. data/vendor/testing/test.css +8 -0
  561. data/vendor/testing/test.js +23 -0
  562. data/vendor/testing/test.styl +75 -0
  563. data/vendor/testing/utils.styl +6 -0
  564. data/vendor/testing/vendor.styl +3 -0
  565. metadata +565 -112
  566. data/.DS_Store +0 -0
  567. data/lib/.DS_Store +0 -0
  568. data/lib/node_modules/cssom/.idea/CSSOM.iml +0 -9
  569. data/lib/node_modules/cssom/.idea/dictionaries/nv.xml +0 -3
  570. data/lib/node_modules/cssom/.idea/encodings.xml +0 -5
  571. data/lib/node_modules/cssom/.idea/misc.xml +0 -17
  572. data/lib/node_modules/cssom/.idea/modules.xml +0 -9
  573. data/lib/node_modules/cssom/.idea/projectCodeStyle.xml +0 -82
  574. data/lib/node_modules/cssom/.idea/vcs.xml +0 -8
  575. data/lib/node_modules/cssom/.idea/workspace.xml +0 -467
  576. data/lib/node_modules/cssom/.livereload +0 -19
  577. data/lib/node_modules/cssom/docs/.livereload +0 -19
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ vendor
data/Rakefile ADDED
@@ -0,0 +1,39 @@
1
+ require 'bundler'
2
+ require 'multi_json'
3
+ require 'open-uri'
4
+ Bundler::GemHelper.install_tasks
5
+
6
+ def say(line)
7
+ puts " \e[32m=>\e[0m #{line}"
8
+ end
9
+
10
+ def execute(banner, command)
11
+ say(banner + "...")
12
+ output = `#{command} 2>&1`
13
+ unless $?.success?
14
+ $stderr.puts(" \e[31mOops, something went wrong!\e[0m\n\n")
15
+ $stderr.puts(output)
16
+ exit(1)
17
+ end
18
+ output
19
+ end
20
+
21
+ desc "Downloads stylus into './vendor' and checks the latest released tag"
22
+ task :update do
23
+ raw = open('http://registry.npmjs.org/stylus') { |io| io.binmode.read }
24
+ metadata = MultiJson.decode(raw)
25
+ current_version = File.read('VERSION')
26
+ version = metadata['dist-tags']['latest']
27
+ tarball = metadata['versions'][version]['dist']['tarball']
28
+
29
+ say "Updating stylus source from #{current_version} to #{version}"
30
+
31
+ execute 'cleaning up old files', 'rm -rf vendor'
32
+ execute "download stylus #{version}", "wget #{tarball} -O stylus.tgz"
33
+ execute "upacking stylus #{version}", 'tar -zxvf stylus.tgz'
34
+ execute 'cleaning up', 'rm stylus.tgz package/.npmignore'
35
+ execute 'updating stylus dependencies', 'mv package vendor && cd vendor && npm install .'
36
+ say 'updating VERSION file'
37
+ File.open('VERSION', 'w') { |file| file.write(version) }
38
+ say 'done!'
39
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.17.0
data/lib/stylus/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Stylus
2
2
  module Source
3
3
  def self.bundled_path
4
- File.expand_path("../stylus.js", __FILE__)
4
+ File.expand_path("../../../vendor/lib/stylus.js", __FILE__)
5
5
  end
6
6
  end
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "stylus-source"
5
- s.version = "0.15.4"
5
+ s.version = File.read('VERSION')
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["TJ Holowaychuk"]
8
8
  s.email = ["tj@vision-media.ca"]
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
10
10
  s.summary = %q{JS source code for Stylus.js}
11
11
  s.description = %q{Robust, expressive, and feature-rich CSS superset. This gem packages up stylus for use with the stylus gem.}
12
12
 
13
- s.files = `git ls-files`.split("\n")
13
+ s.files = `git ls-files`.split("\n") + Dir["vendor/**/*"]
14
14
  s.require_paths = ["lib"]
15
15
  end
data/vendor/History.md ADDED
@@ -0,0 +1,525 @@
1
+
2
+ 0.17.0 / 2011-09-30
3
+ ==================
4
+
5
+ * Added `@scope <selector>` feature to scope all subsequent selectors
6
+ * Added list equality to the `!=` operator
7
+ * Added list equality to the `==` operator
8
+ * Added mkdir -p support to the middleware
9
+ * Changed: `!` coerces expression not the first value
10
+ * Fixed Ternary boolean coercion. Closes #420
11
+ * Fixed __@font-face__ __@import__ regression. Closes #418
12
+
13
+ 0.16.0 / 2011-09-26
14
+ ==================
15
+
16
+ * Added `mkdir -p` support to the middleware
17
+ * Added `@import url(string)` support. Closes #352
18
+ * Added `fade-in()` and `fade-out()` BIFs
19
+ * Adding prefixes for Opera and IE
20
+ * Fixed comments trailing __@media__. Closes #415 [guillermo]
21
+ * Fixed: Output from --help in stylus executable cut-off half way through
22
+ * Changed: treat -/+ operations with percentages as lighten()/darken().
23
+ Closes #401
24
+
25
+ 0.15.4 / 2011-09-14
26
+ ==================
27
+
28
+ * Fixed `String#coerce()` for Expressions
29
+
30
+ 0.15.3 / 2011-09-14
31
+ ==================
32
+
33
+ * Added `-U, --inline` to stylus(1)
34
+ * Added `rem` support. Closes #395
35
+ * Fixed __@charset__ semi-colon. Closes #400
36
+ * Fixed infinite loop in `Parser#function()`. Closes #393
37
+
38
+ 0.15.2 / 2011-09-06
39
+ ==================
40
+
41
+ * Added alias `:=` of `?=`. Closes #389
42
+ * Removed auto-prefixing of pseudo element selectors. Closes #385
43
+ * Changed: when left-hand operand has no unit assign the right
44
+ * Fixed __@keyframes__ with __@import__ regression. Closes #372
45
+ * Fixed css __@import__ within blocks regression. Closes #388
46
+ * Fixed unwrapping of property args expression. Closes #379
47
+ * Fixed __@prop__ access scope issue, use closet block, not current
48
+ * Fixed __@font-face__. Closes #375
49
+
50
+ 0.15.1 / 2011-08-18
51
+ ==================
52
+
53
+ * Added pseudo-element vendor expansion support
54
+ * Added `@keyframe` expansion support. Closes #293
55
+ * Added support for arbitrary `@-VENDOR-keyframes` support
56
+ * Added support for `@property` mixin property access Closes #363
57
+ * Added `/*!` support to comments to disable suppression
58
+ * Changed: allow uses to append `.styl` when importing. Closes #366
59
+ * Fixed paren matching issue. Closes #368
60
+ * Fixed windows absolute path checking Added `utils.absolute(path)`
61
+ * Fixed `Ident#clone()` with `.property` flag
62
+ * Fixed evaluation of expression when using @name. Closes #361
63
+ * Fixed `path.join()` usage in `utils.lookup()`. Closes #356
64
+ * Fixed space after comment regression. Closes #360
65
+
66
+ 0.15.0 / 2011-08-15
67
+ ==================
68
+
69
+ * Adding `Renderer#get(option)`
70
+ * Added the ability to reference property values with `@<name>`. Closes #344
71
+ * Changed comment output. css-style multi-line comments are preserved
72
+ * Fixed issue with bools in selectors. Closes #280
73
+
74
+ 0.14.0 / 2011-08-10
75
+ ==================
76
+
77
+ * Added firebug original file / line number mapping [parallel]
78
+ * Added support for `#rgba` and `#rrggbbaa` color formats
79
+ * Changed: fix alpha to a scale of 2
80
+ * Fixing function param check to allow for empty function arguments
81
+
82
+ 0.13.9 / 2011-08-04
83
+ ==================
84
+
85
+ * Fixed `lighten()` BIF 'lighten by %' function push color closer to white [cwolves]
86
+ * Fixed cli plugin usage absolute paths, don't prepend the CWD [cpojer]
87
+ * Renaming 'import' to '_import' because import is a reserved word in node v0.5
88
+
89
+ 0.13.8 / 2011-08-01
90
+ ==================
91
+
92
+ * Added `PI` and `-math-prop(name)`
93
+ * Added `cos()` and `sin()`
94
+ * Added support for __SVG__ data URIs [mhemesath]
95
+ * Rename variable "import" to "imported" [eegg]
96
+
97
+ 0.13.7 / 2011-07-15
98
+ ==================
99
+
100
+ * Added `js(str)` BIF
101
+ * Fixed reserved keyword `import` with `imported`
102
+
103
+ 0.13.6 / 2011-07-12
104
+ ==================
105
+
106
+ * Added `@-webkit-keyframes` support. Closes #307
107
+ * Added gedit language-spec
108
+ * Changed: optional `growl` dep for stylus(1)
109
+ * Changed: `require("stylus")` instead of `../` for the mac app integration
110
+
111
+ 0.13.5 / 2011-06-27
112
+ ==================
113
+
114
+ * Fixed middleware handling of new and removed `@import` s [brandonbloom]
115
+
116
+ 0.13.4 / 2011-06-22
117
+ ==================
118
+
119
+ * Added __Compile and Display CSS__ TextMate command (⌘B) [Daniel Gasienica]
120
+ * Fixed caching behavior for recompilation of files with changed imports [Brandon Bloom]
121
+
122
+ 0.13.3 / 2011-06-01
123
+ ==================
124
+
125
+ * Added padding for error linenos so they line up
126
+ * Improved unary op error messages
127
+ * Improved invalid `@keyframes` ident error msg
128
+ * Fixed HSLA regression for operations resulting in a bool. Closes #274
129
+ * Fixed `arguments` issue with excluding defaults. Closes #272
130
+
131
+ 0.13.2 / 2011-05-31
132
+ ==================
133
+
134
+ * Fixed colors after `url()` call regression. Closes #270
135
+
136
+ 0.13.1 / 2011-05-30
137
+ ==================
138
+
139
+ * Fixed colors in `url()`. Closes #267
140
+ * Fixed selector without trailing comma containing selector token. Closes #260
141
+
142
+ 0.13.0 / 2011-05-17
143
+ ==================
144
+
145
+ * Added `-u, --use PATH` flag for utilizing plugins
146
+ * Fixed `hsla.clampDegrees()` with negative values [Bruno Héridet]
147
+
148
+ 0.12.4 / 2011-05-12
149
+ ==================
150
+
151
+ * Added support for underscore in identifiers. Closes #247
152
+ * Fixed `@keyframe` block evaluation. Closes #252
153
+
154
+ 0.12.3 / 2011-05-08
155
+ ==================
156
+
157
+ * Fixed `0%` in `@keyframes` from becoming `0` when compressed. Closes #248
158
+
159
+ 0.12.2 / 2011-05-03
160
+ ==================
161
+
162
+ * Fixed issue with `^=` attr selector causing infinite loop. Closes #244
163
+ * Fixed multiple occurrences of `&` in selectors. Closes #243
164
+
165
+ 0.12.1 / 2011-04-29
166
+ ==================
167
+
168
+ * Fixed spaces around line-height shorthand. Closes #228
169
+ * Fixed `-{foo}` interpolation support. Closes #235
170
+
171
+ 0.12.0 / 2011-04-29
172
+ ==================
173
+
174
+ * Added `*prop: val` hack support (blueprint / html boilerplate etc parse fine now)
175
+ * Added selector interpolation support
176
+ * Fixed "-" within interpolation. Closes #220
177
+
178
+ 0.11.12 / 2011-04-27
179
+ ==================
180
+
181
+ * Added `SyntaxError` and `ParseError`
182
+ * Removed `stylus.parse()`
183
+ * Fixed error reporting. Closes #44
184
+
185
+ 0.11.11 / 2011-04-24
186
+ ==================
187
+
188
+ * Fixed mutation of units when using unary ops. Closes #233
189
+
190
+ 0.11.10 / 2011-04-17
191
+ ==================
192
+
193
+ * Fixed regression. Closes #229
194
+
195
+ 0.11.9 / 2011-04-15
196
+ ==================
197
+
198
+ * Fixed issue with large selectors spanning several lines
199
+
200
+ 0.11.8 / 2011-04-15
201
+ ==================
202
+
203
+ * Added support for `Renderer#define(name, node)` to define a global
204
+
205
+ 0.11.7 / 2011-04-12
206
+ ==================
207
+
208
+ * Added `Renderer#use(fn)`. Closes #224
209
+ * Improved `utils.assertType()` error message; include param name
210
+
211
+ 0.11.6 / 2011-04-12
212
+ ==================
213
+
214
+ * Fixed: node.source and node.filename are writable
215
+
216
+ 0.11.5 / 2011-04-12
217
+ ==================
218
+
219
+ * Added / employed `Null#isNull`
220
+ * Added / employed `Boolean#is{True,False}`
221
+ * Removed all uses of `instanceof`
222
+ * Removed all equality checks between singleton nodes
223
+
224
+ 0.11.4 / 2011-04-10
225
+ ==================
226
+
227
+ * Added `Arguments#clone()`
228
+ * Added `push()` / `append()`
229
+ * Added `unshift()` / `prepend()` BIFs
230
+
231
+ 0.11.3 / 2011-04-08
232
+ ==================
233
+
234
+ * Fixed: keyword args previously not evaluated
235
+ * Fixed: subpixel support
236
+ * Fixed bug preventing combinators (and other ops) in `@media` blocks. Closes #216 [reported by jsteenkamp]
237
+
238
+ 0.11.2 / 2011-04-06
239
+ ==================
240
+
241
+ * Added `Renderer#include(path)`. Closes #214
242
+ * Fixed `@import` path resolution bug. Closes #215
243
+ * Fixed optional keyword arg bug. Closes #212
244
+
245
+ 0.11.1 / 2011-04-01
246
+ ==================
247
+
248
+ * Fixed regression preventing commas from outputting
249
+
250
+ 0.11.0 / 2011-04-01
251
+ ==================
252
+
253
+ * Added `HSLA#add(h,s,l,a)`
254
+ * Added `HSLA#sub(h,s,l,a)`
255
+ * Added `RGBA#add(r,g,b,a)`
256
+ * Added `RGBA#sub(r,g,b,a)`
257
+ * Added `RGBA#multiply(n)`
258
+ * Added `RGBA#divide(n)`
259
+ * Added `HSLA#adjustHue(deg)`
260
+ * Added `HSLA#adjustLightness(percent)`
261
+ * Added `HSLA#adjustSaturation(percent)`
262
+ * Added `linear-gradient()` example
263
+ * Added `s(fmt, ...)` built-in; sprintf-like
264
+ * Added `%` sprintf-like string operator, ex: `'%s %s' % (1 2)`
265
+ * Added `current-property` local variable
266
+ * Added `add-property(name, val)`
267
+ * Added the ability for functions to duplicate the property they are invoked within
268
+ * Added `[]=` operator support. Ex: `fonts[1] = arial`, `nums[1..3] = 2`
269
+ * Added `-I, --include <path>` to stylus(1). Closes #206
270
+ * Added support for `50 + 25% == 75`
271
+ * Added support for `rgba + 25%` to lighten
272
+ * Added support for `rgba - 25%` to darken
273
+ * Added support for `rgba - 25` to adjust rgb values
274
+ * Changed: null now outputs "null" instead of "[Null]"
275
+ * Fixed hsl operation support, all operations are equivalent on rgba/hsla nodes
276
+ * Fixed degree rotation
277
+
278
+ 0.10.0 / 2011-03-29
279
+ ==================
280
+
281
+ * Added keyword argument support
282
+ * Added `Arguments` node, acts like `Expression`
283
+ * Added `utils.params()`
284
+ * Added `debug` option to stylus middleware
285
+ * Added support for `hsl + 15deg` etc to adjust hue
286
+ * Added special-case for percentage based `RGBA` operations (`#eee - 20%`)
287
+ * Changed: right-hand colors in operations are not clamped (`#eee * 0.2`)
288
+ * Added support for `unit * color` (swaps operands)
289
+ * Fixed color component requests on the opposite node type (ex red on hsla node)
290
+ * Fixed `Expression#clone()` to support `Arguments`
291
+ * Fixed issue with middleware where imports are improperly mapped
292
+ * Fixed mutation of color when adjusting values
293
+ * Fixed: coerce string to literal
294
+ * Removed {`darken`,`lighten`}`-by()` BIFs
295
+
296
+ 0.9.2 / 2011-03-21
297
+ ==================
298
+
299
+ * Removed a `console.log()` call
300
+
301
+ 0.9.1 / 2011-03-18
302
+ ==================
303
+
304
+ * Fixed connect middleware `@import` support. Closes #168
305
+ The middleware is now smart enough to know when imports
306
+ change, and will re-compile the target file.
307
+
308
+ * Changed middleware `compile` function to return the `Renderer` (API change)
309
+
310
+ 0.9.0 / 2011-03-18
311
+ ==================
312
+
313
+ * Added `-i, --interactive` for the Stylus REPL (eval stylus expressions, tab-completion etc)
314
+ * Added link to vim syntax
315
+ * Changed `p()` built-in to display parens
316
+ * Changed `--compress -C` to `-c`, and `-css -c` is now `-C`
317
+ * Fixed: preserve rest-arg expressions. Closes #194
318
+ * Fixed `*=` in selector, ex `[class*="foo"]`
319
+ * Fixed `--watch` issue with growl, updated to 1.1.0. Closes #188
320
+ * Fixed negative floats when compressed. Closes #193 [reported by ludicco]
321
+
322
+ 0.8.0 / 2011-03-14
323
+ ==================
324
+
325
+ * Added postfix `for`-loop support.
326
+ Ex: `return n if n % 2 == 0 for n in nums`
327
+ * Added support for several postfix operators
328
+ Ex: `border-radius: 5px if true unless false;`
329
+ * Added `last(expr)` built-in function
330
+ * Added `sum(nums)` built-in function
331
+ * Added `avg(nums)` built-in function
332
+ * Added `join(delim, vals)` built-in function
333
+ * Added `Evaluator#{currentScope,currentBlock}`
334
+ * Added multi-line function paramter definition support
335
+ * Changed: `0` is falsey, `0%`, `0em`, `0px` etc truthy. Closes #160
336
+ * Fixed `for` implicit __return__ value
337
+ * Fixed `for` explicit __return__ value
338
+ * Fixed mixin property ordering
339
+
340
+ 0.7.4 / 2011-03-10
341
+ ==================
342
+
343
+ * Added `RGBA` node
344
+ * Added `is a "color"` special-case, true for `HSLA` and `RGBA` nodes.
345
+ Closes #180
346
+ * Performance; 2.5× faster compiles due to removing use of getters in `Parser` and `Lexer` (yes, they are really slow).
347
+ * Removed `Color` node
348
+ * Fixed stylus(1) `--watch` support due to dynamic `@import` support. Closes #176
349
+
350
+ 0.7.3 / 2011-03-09
351
+ ==================
352
+
353
+ * Fixed: allow semi-colons for non-css syntax for one-liners
354
+
355
+ 0.7.2 / 2011-03-08
356
+ ==================
357
+
358
+ * Added `isnt` operator (same as `is not` and `!=`)
359
+ * Added support for dynamic `@import` expressions
360
+ * Added `@import` index resolution support
361
+ * Added `light()` / `dark()` BIFs
362
+ * Added `compress` option for Connect middleware [disfated]
363
+ * Changed: most built-in functions defined in stylus (`./lib/functions/index.styl`)
364
+ * Fixed dynamic expressions in `url()`. Closes #105
365
+
366
+ 0.7.1 / 2011-03-07
367
+ ==================
368
+
369
+ * Fixed connect middleware for 0.4.x
370
+
371
+ 0.7.0 / 2011-03-02
372
+ ==================
373
+
374
+ * Added `is` and `is not` aliases for `==` and `!=`
375
+ * Added `@keyframes` dynamic name support
376
+ * Fixed units in interpolation
377
+ * Fixed clamping of HSLA degrees / percentages
378
+
379
+ 0.6.7 / 2011-03-01
380
+ ==================
381
+
382
+ * Fixed __RGBA__ -> __HSLA__ conversion due to typo
383
+
384
+ 0.6.6 / 2011-03-01
385
+ ==================
386
+
387
+ * Added string -> unit type coercion support aka `5px + "10"` will give `15px`
388
+ * Added `warn` option Closes #152
389
+ Currently this only reports on re-definition of functions
390
+ * Added `$` as a valid identifier character
391
+ * Added `mixin` local variable for function introspection capabilities. Closes #162
392
+ * Fixed typo: `Unit#toBoolean()` is now correct
393
+ * Fixed interpolation function calls. Closes #156
394
+ * Fixed mixins within Media node. Closes #153
395
+ * Fixed function call in ret val. Closes #154
396
+
397
+ 0.6.5 / 2011-02-24
398
+ ==================
399
+
400
+ * Fixed parent ref `&` mid-selector bug. Closes #148 [reported by visnu]
401
+
402
+ 0.6.4 / 2011-02-24
403
+ ==================
404
+
405
+ * Fixed `for` within brackets. Closes #146
406
+
407
+ 0.6.3 / 2011-02-22
408
+ ==================
409
+
410
+ * Fixed single-ident selectors. Closes #142
411
+ * Fixed cyclic `@import` with file of the same name. Closes #143
412
+
413
+ 0.6.2 / 2011-02-21
414
+ ==================
415
+
416
+ * Added stylus(1) growl support when using `--watch`
417
+ * Added `@import` watching support to stylus(1). Closes #134
418
+ * Changed: stylus(1) only throws when `--watch` is not used
419
+ * Fixed `darken-by()` BIF
420
+ * Fixed `@import` literal semi-colon. Closes #140
421
+
422
+ 0.6.1 / 2011-02-18
423
+ ==================
424
+
425
+ * Fixed evaluation of nodes after a return. Closes #139
426
+
427
+ 0.6.0 / 2011-02-18
428
+ ==================
429
+
430
+ * Added `stylus(1)` direct css to stylus file conversion [Mario]
431
+ For example instead of `$ stylus --css < foo.css > foo.styl`
432
+ you may now either `$ stylus --css foo.css` or provide
433
+ a destination path `$ stylus --css foo.css /tmp/out.styl`.
434
+
435
+ * Added postfix conditionals. Closes #74
436
+ Expressive ruby-ish syntax, ex: `padding 5px if allow-padding`.
437
+
438
+ 0.5.3 / 2011-02-17
439
+ ==================
440
+
441
+ * Added `in` operator. `3 in nums`, `padding in props` etc
442
+ * Added `Expression#hash`, hashing all of the nodes in order
443
+ * Added tests for conditionals with braces. Closes #136
444
+ * Fixed ids that are also valid colors. Closes #137
445
+
446
+ 0.5.2 / 2011-02-15
447
+ ==================
448
+
449
+ * Fixed spaces after `}` with css-style. Closes #131
450
+ * Fixed single-line css-style support. Closes #130
451
+
452
+ 0.5.1 / 2011-02-11
453
+ ==================
454
+
455
+ * Fixed mixin property ordering. Closes #125
456
+
457
+ 0.5.0 / 2011-02-09
458
+ ==================
459
+
460
+ * Added `lighten-by()` BIF
461
+ * Added `darken-by()` BIF
462
+
463
+ 0.4.1 / 2011-02-09
464
+ ==================
465
+
466
+ * Added support for function definition braces
467
+ * Fixed issue with invalid color output. Closes #127
468
+
469
+ 0.4.0 / 2011-02-07
470
+ ==================
471
+
472
+ * Added css-style syntax support
473
+ * Fixed support for `*` selector within `@media` blocks
474
+
475
+ 0.3.1 / 2011-02-04
476
+ ==================
477
+
478
+ * Fixed property disambiguation logic. Closes #117
479
+ You no longer need to add a trailing comma when
480
+ chaining selectors such as `td:nth-child(2)\ntd:nth-child(3)`
481
+
482
+ 0.3.0 / 2011-02-04
483
+ ==================
484
+
485
+ * Added more assignment operators. Closes #77
486
+ `+=`, `-=`, `*=`, `/=`, and `%=`
487
+
488
+ 0.2.1 / 2011-02-02
489
+ ==================
490
+
491
+ * Fixed `--compress` when passing files for stylus(1). Closes #115
492
+ * Fixed bug preventing absolute paths from being passed to `@import`
493
+ * Fixed `opposite-position()` with nested expressions, unwrapping
494
+ * Fixed a couple global var leaks [aheckmann]
495
+
496
+ 0.2.0 / 2011-02-01
497
+ ==================
498
+
499
+ * Added: `url()` utilizing general lookup paths.
500
+ This means that `{ paths: [] }` is optional now, as lookups
501
+ will be relative to the file being rendered by default.
502
+
503
+ * Added `-w, --watch` support to stylus(1). Closes #113
504
+
505
+ 0.1.0 / 2011-02-01
506
+ ==================
507
+
508
+ * Added `opposite-position(positions)` built-in function
509
+ * Added `image-lookup(path)` built-in function
510
+ * Added `-o, --out <dir>` support to stylus(1)
511
+ * Added `stylus [file|dir ...]` support
512
+ * Added: defaulting paths to `[CWD]` for stylus(1)
513
+ * Changed: `unquote()` using `Literal` node
514
+ * Changed: utilizing `Literal` in place of some `Ident`s
515
+
516
+ 0.0.2 / 2011-01-31
517
+ ==================
518
+
519
+ * Added optional property colon support. Closes #110
520
+ * Added `--version` to stylus(1)
521
+
522
+ 0.0.1 / 2011-01-31
523
+ ==================
524
+
525
+ * Initial release
data/vendor/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2010 LearnBoost <dev@learnboost.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/vendor/Makefile ADDED
@@ -0,0 +1,20 @@
1
+
2
+ SRC = $(shell find lib -name "*.js")
3
+ TM_BUNDLE = editors/Stylus.tmbundle
4
+ TM_BUNDLE_DEST = ~/Library/Application\ Support/TextMate/Bundles
5
+
6
+ test: test-integration
7
+
8
+ test-integration:
9
+ @node test/run.js
10
+
11
+ install-bundle:
12
+ cp -fr $(TM_BUNDLE) $(TM_BUNDLE_DEST)
13
+
14
+ update-bundle:
15
+ cp -fr $(TM_BUNDLE_DEST)/Stylus.tmbundle editors
16
+
17
+ benchmark:
18
+ @node bm.js
19
+
20
+ .PHONY: test test-integration install-bundle update-bundle benchmark