simple_hashtag 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 344fc745b47f031ee943d594811c7d355abedb51
4
- data.tar.gz: 733c899ff5504f14513b66410373a7d8522c5814
3
+ metadata.gz: 74437104ecf0ee1acfa40e6764e6c802a9eb02fe
4
+ data.tar.gz: 954eee25094360ae8cf157f48919463278817695
5
5
  SHA512:
6
- metadata.gz: 2f71b90d7ba6d2eac55d2e91d4f6749628a24920815431d88bc699d12386880ddf0d9a52bcb1c3d3e75a6b3ec46262e35e95de71a4d648b2629d603080e02f91
7
- data.tar.gz: 61ea2c6e20b9fb9ddd586e1600bf3c2ed4281f2f48226066a3b87333e283a5d83151f4d9d34a2175f192b21496fc4905c619e4f32ac20b309ca3acaa7cf290f8
6
+ metadata.gz: b7db642ed1c8c08b5af09157cf4299a9b31bd563069d6b12f75c94d93b0b0da025ab59a332bef330217c90b8305125fb4e4e6835ba1e2e43c3185e692b6738ad
7
+ data.tar.gz: 68edcf1890776324cc59bd2fb4aeeda8e3885132d0fd9f12fb1ca082540a296ea1613e4500520e565f5961653104faa5ae0b2e900bca0095adf57628be0b0f44
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # SimpleHashtag
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/simple_hashtag.png)](http://badge.fury.io/rb/simple_hashtag)
4
+ [![Code Climate](https://codeclimate.com/github/ralovely/simple_hashtag.png)](https://codeclimate.com/github/ralovely/simple_hashtag)
4
5
 
5
6
  Ruby gem for Rails that parses, stores, retreives and formats hashtags in your model.
6
7
 
@@ -2,7 +2,7 @@ module HashtagsHelper
2
2
  def linkify_hashtags(hashtaggable_content)
3
3
  regex = SimpleHashtag::Hashtag::HASHTAG_REGEX
4
4
  hashtagged_content = hashtaggable_content.to_s.gsub(regex) do
5
- link_to($1, hashtag_path($2), {class: :hashtag})
5
+ link_to($&, hashtag_path($2), {class: :hashtag})
6
6
  end
7
7
  hashtagged_content.html_safe
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleHashtag
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_hashtag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Campardou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails