rubypants

0.7.1last stable release 5 years ago
Complexity Score
Low
Open Issues
0
Dependent Projects
14
Weekly Downloadsglobal
2,598

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

= RubyPants: SmartyPants for Ruby

{}[https://rubygems.org/gems/rubypants] {}[https://travis-ci.org/jmcnevin/rubypants] {}[https://codecov.io/gh/jmcnevin/rubypants]

== Synopsis

RubyPants is a Ruby port of the smart-quotes library SmartyPants.

The original “SmartyPants” is a free web publishing plug-in for Movable Type, Blosxom, and BBEdit that easily translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities.

== Description

RubyPants can perform the following transformations:

  • Straight quotes (“ and ‘) into “curly” quote HTML entities
  • Backticks-style quotes (``like this’’) into “curly” quote HTML entities
  • Dashes (– and —) into en- and em-dash entities
  • Three consecutive dots (… or . . .) into an ellipsis entity

This means you can write, edit, and save your posts using plain old ASCII straight quotes, plain dashes, and plain dots, but your published posts (and final HTML output) will appear with smart quotes, em-dashes, and proper ellipses.

RubyPants does not modify characters within

,
, , , 

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
3.50
Test Coverage
99.00%
Follows Semver
Yes
Github Stars
29
Dependenciestotal
1
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute rubypants in your own private RubyGems registry

gem install rubypants
Processing...
Done

7 Releases

RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.