Fix 0 and 0px to match and resolve as a redundancy#42
Fix 0 and 0px to match and resolve as a redundancy#42mduvall wants to merge 4 commits intozmoazeni:masterfrom
Conversation
|
Nice! Thanks! |
lib/csscss/types.rb
Outdated
There was a problem hiding this comment.
I think this logic is the only thing I don't love about this implementation. This logic could be pushed into the instance methods of the class. Perhaps only in the equality check.
|
@mduvall Let me know if you want to finish this out with my comment above. Otherwise I can take it. I like the rest of the code and especially appreciate the tests. Could you also update the CHANGELOG and the CONTRIBUTORS? You can add a new |
|
@zmoazeni I'll definitely finish this out tonight, thanks for the feedback! 👍 |
|
@zmoazeni I updated the code to make the function an instance method, this had the nice convenience of only doing the normalization for the parser equality in |
lib/csscss/types.rb
Outdated
There was a problem hiding this comment.
Oops, yeah - removed it since the strip is done there
|
Some edgecasey tests here would go a long way too. Thanks for all the work on this! |
CONTRIBUTORS.md
Outdated
There was a problem hiding this comment.
Typo? :)
I should have said, you don't have to put your info in here if you rather not. I just like to have some credit where credit is due.
There was a problem hiding this comment.
Oops x 2, put my Twitter handle here, fixed
There was a problem hiding this comment.
Ah. I don't care either way. It's attributing you, so do what you want :)
Sent from my iPhone
On Apr 12, 2013, at 7:52 PM, Matt DuVall notifications@github.com wrote:
In CONTRIBUTORS.md:
@@ -1,3 +1,4 @@
- Zach Moazeni zach.moazeni@gmail.com @zmoazeni
- Carson McDonald @carsonmcdonald
- Martin Kuckert @MKuckert
+* Matt DuVall @mduvall_
Oops x 2, put my Twitter handle here, fixed—
Reply to this email directly or view it on GitHub.
|
@zmoazeni I added some base case tests in |
There was a problem hiding this comment.
I don't think we should add % here. I was thinking of moving this check in the normalize method.
|
@mduvall This is really close. I'm going to pull this down and make some tweaks then merge it in. Thanks for all the hard work! |
Most of this work was by @mduvall Some stackoverflow discussion: http://stackoverflow.com/a/935113/410759 refs: #42, #32
Fixes #32