Closed jedfoster closed 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?
Yup, definitely need a way to pull in non-gem libraries. Want to add https://github.com/HugoGiraudel/SassyMatrix, but not a gem.
Here's another non-gem library: https://github.com/fffunction/sassaparilla
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. ;)
How about adding https://github.com/team-sass/singularity-extras?
@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.
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.
--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
Ahh! I did not see the --pre
version. My bad. Pushing an update now.
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
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.
Added Garnish as LibSass-only for now.
@jedfoster do you think if sache.json
had a main
field it would help integrate more of them?
@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....
@jedfoster What would help ease that transition? Rather, what specifically is blocking you from using something like NPM or Bower?
@thejameskyle I don't know. Still investigating.
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. :)
Aaaaand you can include SassySort if you feel so Jed: http://rubygems.org/gems/SassySort. ;)
Aaaaaaand you can include SassyStrings if you want as well: http://rubygems.org/gems/SassyStrings. :P
@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.
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
.
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. ;)
Hey, any news? :)
@HugoGiraudel, I just opened a PR on SassyMatrix. That extension was failing my tests because it was registering with the name "SassyJSON".
Done. I feel so dumb.
@HugoGiraudel Could you please push a new version of the SassyMatrix gem?
Done: 1.0.1.
Thanks a lot for adding both Jed! Anything about SassyStrings?
@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.
Bumped to version 1.0.0
.
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.
@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.
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
For anyone who's interested, I'm closing this issue in favor of individual issues per extension/library.
Add these new extensions:
https://gist.github.com/chriseppstein/34cd45c98e5c1e461e32