jedfoster / SassMeister

The Sass playground
http://sassmeister.com
199 stars 25 forks source link

new extensions #64

Closed jedfoster closed 10 years ago

jedfoster commented 10 years ago

Add these new extensions:

https://gist.github.com/chriseppstein/34cd45c98e5c1e461e32

jedfoster commented 10 years ago

ceaser-easing and compass-yiq-color-contrast are in; but typecsset and Sassifaction are not gems. Need a method for including non-gem libraries. Perhaps a grab bag gem of my own?

jedfoster commented 10 years ago

Yup, definitely need a way to pull in non-gem libraries. Want to add https://github.com/HugoGiraudel/SassyMatrix, but not a gem.

jedfoster commented 10 years ago

Here's another non-gem library: https://github.com/fffunction/sassaparilla

KittyGiraudel commented 10 years ago

Yup, definitely need a way to pull in non-gem libraries. Want to add https://github.com/HugoGiraudel/SassyMatrix, but not a gem.

Will be anytime soon. We just need to run some more tests before releasing it. I'll keep you updated Jed. ;)

Snugug commented 10 years ago

How about adding https://github.com/team-sass/singularity-extras?

jedfoster commented 10 years ago

@Snugug I'd love to have Singularity Extras available on the 3.3 compiler (it's available on the 3.2 compiler) but Sassy Math is pinned to Compass ~> 0.11. The 3.3 compiler is using 1.0.0.alpha.17. (Extras depends on Modular Scale, which depends on Sassy Math.)

Change that ~> 0.11 to >= 0.11 and we should be good to go.

Snugug commented 10 years ago

New version of Extras shouldn't be tied to that

On Feb 6, 2014, at 11:47 AM, Jed Foster notifications@github.com wrote:

@Snugug I'd love to have Singularity Extras available on the 3.3 compiler (it's available on the 3.2 compiler) but Sassy Math is pinned to Compass ~> 0.11. The 3.3 compiler is using 1.0.0.alpha.17. (Extras depends on Modular Scale, which depends on Sassy Math.)

Change that ~> 0.11 to >= 0.11 and we should be good to go.

— Reply to this email directly or view it on GitHub.

jedfoster commented 10 years ago

http://rubygems.org/gems/singularity-extras -> http://rubygems.org/gems/sassy-math

Snugug commented 10 years ago

--pre (1.0.0.alpha.1) requires Singularity 1.2.x (Breakpoint only dependency, which has no dependencies) and Modular Scale 2.x.x, which only has Compass >= 0.12 as dependencies

jedfoster commented 10 years ago

Ahh! I did not see the --pre version. My bad. Pushing an update now.

jamiebuilds commented 10 years ago

This would be nice https://github.com/Team-Sass/Sassy-Strings

Just to put my half-assed two cents in, it would be awesome if http://www.sache.in/ could be used as a registry for libraries here

jedfoster commented 10 years ago

I'll get this added to app.

Not every library listed on sache.in is compatible with SassMeister. But I do monitor it for new libraries.

jedfoster commented 10 years ago

Added Garnish as LibSass-only for now.

jamiebuilds commented 10 years ago

@jedfoster do you think if sache.json had a main field it would help integrate more of them?

jedfoster commented 10 years ago

@thejameskyle no, the problem is that the app is currently very dependent on Bundler and the Compass extension mechanism, while many libraries on sache.in are built as Bower packages.

We're at an inflection point, a transitional period between old school Ruby-dependent package management and the new Node/npm/Bower/Grunt/Gulp. hotness. And honestly, I'm not thrilled with the way Bower et al. work, I much prefer the gem model—packages kept in a central location, outside of the project, with proper versioning—I think it's DRY'er and more efficient. But, I don't have as much experience with the new tools as I do with the old ones, so....

jamiebuilds commented 10 years ago

@jedfoster What would help ease that transition? Rather, what specifically is blocking you from using something like NPM or Bower?

jedfoster commented 10 years ago

@thejameskyle I don't know. Still investigating.

KittyGiraudel commented 10 years ago

Yup, definitely need a way to pull in non-gem libraries. Want to add https://github.com/HugoGiraudel/SassyMatrix, but not a gem.

You can include SassyMatrix if you feel so Jed: http://rubygems.org/gems/SassyMatrix. :)

KittyGiraudel commented 10 years ago

Aaaaand you can include SassySort if you feel so Jed: http://rubygems.org/gems/SassySort. ;)

KittyGiraudel commented 10 years ago

Aaaaaaand you can include SassyStrings if you want as well: http://rubygems.org/gems/SassyStrings. :P

jedfoster commented 10 years ago

@HugoGiraudel do you have usage examples for SassyMatrix and SassySort? I just need need a very small snippet of Sass for each to add to the pre-deploy tests.

KittyGiraudel commented 10 years ago

Well, SassySort is no more than a sorting function for Sass, so you only have to instanciate a list of alphanumeric values and sort it.

$list: orange, strawberry, pear, banana, mango;
$sort: sort($list);
// banana, mango, orange, pear, strawberry

You can also specify the $algorithm parameter to one of those: quick, bubble, comb, insertion, selection or shell to force a specific algo. Default is quick.

KittyGiraudel commented 10 years ago

SassyMatrix provides a collection of functions to deal with matrices in Sass using nested lists. I'm not sure I have a usecase for this though.

$matrix: matrix(3, 3);
// 0 0 0
// 0 0 0
// 0 0 0
$matrix: set-entry($matrix, 2 2, 1);
// 0 0 0 
// 0 0 0
// 0 0 1

Update: you could ask @thebabydino for a usecase. ;)

KittyGiraudel commented 10 years ago

Hey, any news? :)

jedfoster commented 10 years ago

@HugoGiraudel, I just opened a PR on SassyMatrix. That extension was failing my tests because it was registering with the name "SassyJSON".

KittyGiraudel commented 10 years ago

Done. I feel so dumb.

jedfoster commented 10 years ago

@HugoGiraudel Could you please push a new version of the SassyMatrix gem?

KittyGiraudel commented 10 years ago

Done: 1.0.1.

KittyGiraudel commented 10 years ago

Thanks a lot for adding both Jed! Anything about SassyStrings?

jedfoster commented 10 years ago

@HugoGiraudel New PR against SassyStrings. The gemspec pins Compass at 1.0.0 or greater, but Compass 1.0.0 hasn't been released yet, so gem install fails.

KittyGiraudel commented 10 years ago

Bumped to version 1.0.0.

KittyGiraudel commented 10 years ago

SassyMatrix seems to be registered as matrix in SassMeister:

@import "matrix";

Any chance it could be registered as SassyMatrix perhaps?

Same goes for SassyStrings which is registered as SassyString. Missing trailing s.

jedfoster commented 10 years ago

@HugoGiraudel looks like the main SCSS file in SassyMatrix is matrix.scss https://github.com/HugoGiraudel/SassyMatrix/tree/master/stylesheets. I can hack that for the app, but then it won't be consistent with the library.

Re: SassyStrings: I surprised my tests passed with a typo like that; I'll push a fix for that shortly.

KittyGiraudel commented 10 years ago

New lib: https://github.com/HugoGiraudel/SassyBitwise

$value: bitwise(42 '&' 48); // 32
$value: bitwise(42 '|' 48); // 58
$value: bitwise(42 '^' 48); // 26
$value: bitwise(42 '<<' 2); // 168
$value: bitwise(42 '>>' 2); // 10
$value: bitwise('~' 42); // -43
jedfoster commented 10 years ago

For anyone who's interested, I'm closing this issue in favor of individual issues per extension/library.