ruby-rdf / rdf-rdfa

Ruby RDFa reader/writer for RDF.rb.
http://ruby-rdf.github.com/rdf-rdfa
The Unlicense
35 stars 11 forks source link

Use the HAML `ugly: false` argument only when version is *less than* 5 #28

Closed mjgiarlo closed 5 years ago

mjgiarlo commented 5 years ago

The code currently appears to get this exactly backwards; ugly: false was made the default behavior in HAML 5.0, so the current behavior causes lots of noise about :ugly being an invalid attribute. This patch fixes that behavior and preserves behavior for HAML < 5.0.

Would love to see this in a 1.99.3 release!

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 90.849% when pulling e0a289ff17b6d4c30b2d85e208d82c47221bb31f on mjgiarlo:use_haml_ugly_arg_only_when_version_lt_5 into 47d2455817bce15db8e42148a40b9d7177483ce7 on ruby-rdf:1.99-support.