simple_hashtag 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74437104ecf0ee1acfa40e6764e6c802a9eb02fe
|
|
4
|
+
data.tar.gz: 954eee25094360ae8cf157f48919463278817695
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7db642ed1c8c08b5af09157cf4299a9b31bd563069d6b12f75c94d93b0b0da025ab59a332bef330217c90b8305125fb4e4e6835ba1e2e43c3185e692b6738ad
|
|
7
|
+
data.tar.gz: 68edcf1890776324cc59bd2fb4aeeda8e3885132d0fd9f12fb1ca082540a296ea1613e4500520e565f5961653104faa5ae0b2e900bca0095adf57628be0b0f44
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# SimpleHashtag
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/simple_hashtag)
|
|
4
|
+
[](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(
|
|
5
|
+
link_to($&, hashtag_path($2), {class: :hashtag})
|
|
6
6
|
end
|
|
7
7
|
hashtagged_content.html_safe
|
|
8
8
|
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.
|
|
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
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|