hashtag_url 1.0.1 → 1.0.2
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 +4 -4
- data/lib/hashtag_url.rb +1 -1
- data/lib/hashtag_url/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d811f245f374876431d842a2187d96e5a2b1c88a
|
|
4
|
+
data.tar.gz: f0a487c7db354efb6865c54a6beabb1ece50ff47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82b629d0f94d0375e199ef263f75e31fe70445b3eb6701926398f06f3bc7bf6231a6775283dd9d98412583fba3ddd26c460391aac4d17a05224eff6b54af58fb
|
|
7
|
+
data.tar.gz: 280673ed010aa6f99f77b82a99be4feba1f33b423d4c8e61293877ed8f60223d46385bd22b054039a87b2a8c419e21d5491bd957efae696b8949d7e4f098279c
|
data/lib/hashtag_url.rb
CHANGED
|
@@ -3,7 +3,7 @@ require "hashtag_url/version"
|
|
|
3
3
|
module HashtagUrl
|
|
4
4
|
SUPPORTED_NETWORKS = [ 'vk', 'vkontakte', 'twitter', 'instagram', 'facebook', 'fb' ]
|
|
5
5
|
def hashtag_url(hashtag, social_network)
|
|
6
|
-
if SUPPORTED_NETWORKS.include? social_network.to_s
|
|
6
|
+
if SUPPORTED_NETWORKS.include? social_network.to_s.underscore
|
|
7
7
|
send social_network, hashtag.to_s.gsub('#', '')
|
|
8
8
|
else
|
|
9
9
|
raise "Gem HashtagUrl doesn't support #{social_network} hashtag links. You can update gem on http://github.com/kalashnikovisme/hashtag_url It's easy!"
|
data/lib/hashtag_url/version.rb
CHANGED