RubyGems Navigation menu

gr_autolink 1.0.13

This is an adaptation of the extraction of the `auto_link` method from rails that is the rails_autolink gem. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating...and behaves a little differently from the parent gem we forked from: * performs html-escaping of characters such as '&' in strings that are getting linkified if the incoming string is not html_safe? * retains html-safety of incoming string (if input string is unsafe, will return unsafe and vice versa) * fixes at least one bug: (<img src="http://some.u.rl"> => <img src="<a%20href=">http://some.u.rl">) though can't imagine this is intended behavior, also have trouble believing that this was an open bug in rails...

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.0.13 - March 28, 2014 (15.0 KB)
  2. 1.0.11 - April 18, 2012 (13.0 KB)
  3. 1.0.10 - April 02, 2012 (13.0 KB)
  4. 1.0.9 - March 31, 2012 (12.5 KB)
  5. 1.0.8 - March 31, 2012 (12.5 KB)
显示所有版本 (共 6 个)

Runtime 依赖 (1):

rails ~> 3.1

Development 依赖 (3):

arel >= 0
minitest >= 0
rack >= 0

业主:

作者:

  • Aaron Patterson, Juanjo Bazan, Akira Matsuda, Brian Percival, Jonathan Schatz

SHA 256 校验和:

4c251dd9cc79ab65f1dc17c9192f26914c3fc20e6f0cc5c71da107ddfc59ccea

下载总量 21,186

这个版本 3,814

许可:

需要的 Ruby 版本: >= 0

链接: