hashtag_url 1.0.1 → 1.0.2

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: e66eeba0772de80749e7f43c3e27887fe33bad0a
4
- data.tar.gz: 0aaf255125692d88219f5b7374306328895ca2cf
3
+ metadata.gz: d811f245f374876431d842a2187d96e5a2b1c88a
4
+ data.tar.gz: f0a487c7db354efb6865c54a6beabb1ece50ff47
5
5
  SHA512:
6
- metadata.gz: b025a923d1aac4e111825971c5e576e78ef7c163b98617afa6318a4e74a7366c809a69ea19cf4afb0fc891483e3c8c4bcb7dc69997e9ae56ec3ec25d61e78ac6
7
- data.tar.gz: 4c937421eca9adb1b02e457437d167f370adbef16ede1d053298db77045829ac32b804a14f2b713826bbda116b238ce6f45bfe585cff0ef20a44959fc51e5b9f
6
+ metadata.gz: 82b629d0f94d0375e199ef263f75e31fe70445b3eb6701926398f06f3bc7bf6231a6775283dd9d98412583fba3ddd26c460391aac4d17a05224eff6b54af58fb
7
+ data.tar.gz: 280673ed010aa6f99f77b82a99be4feba1f33b423d4c8e61293877ed8f60223d46385bd22b054039a87b2a8c419e21d5491bd957efae696b8949d7e4f098279c
@@ -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!"
@@ -1,3 +1,3 @@
1
1
  module HashtagUrl
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashtag_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov