tramway-profiles 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 272578136687eb0ce386a0917b48a2301fc5e03c7f7b44200297f944bc39c8ae
4
- data.tar.gz: c9814153a955b937745979c5495eaaaa2b024377579306934102f24e187eee13
3
+ metadata.gz: d1c5b65d8c3a9a102de035b61a5ee957d6c14eb780f6e5487163f9e57da4457f
4
+ data.tar.gz: 1570708447a4140558a4a99e34729cf491fafbb2fc8ccacc3152017bbd0a517c
5
5
  SHA512:
6
- metadata.gz: 8e40176d95db8803b6a281ac9e265ea05ca220c9d25a1ff1ee19ba144499d7b90c2a1abf4dace2c9ab16739d4fa17d9ce6a2b980e7f3a01b260ab661d57b9677
7
- data.tar.gz: adcff8e7ceea96f8818c45e6c67583e287546b2174000905517e15da7303d64303cda8b3f5263b02afbe99696ec70d2743c852368f30fa99b483481e8ddac6c0
6
+ metadata.gz: 34569404cfee8292f9b7b8b7a724ba1dacc1af90c3723a55b8d98944b34785ac2c3439c94b23734bff7ddb548c9050b46546da8b57bc64816c980979ef57a79c
7
+ data.tar.gz: 2ab21dd4b388c5b6ea8085d5523db491f2e92156e11436b8ebfe17188764f91d72cd363a9cb0b181930fe8f0605c889e8837976082e29bb9695a8350b994d279
@@ -1,27 +1,27 @@
1
1
  module Tramway::Profiles::LinksHelper
2
2
  def profile_link(profile)
3
- send profile.network_name, profile.uid
3
+ send profile.network_name, profile.uid, profile.title
4
4
  end
5
5
 
6
6
  private
7
7
 
8
- def vk(uid)
9
- profile_link_template uid, "https://vk.com/#{uid}", :vk
8
+ def vk(uid, title)
9
+ profile_link_template title, "https://vk.com/#{uid}", :vk
10
10
  end
11
11
 
12
- def facebook(uid)
13
- profile_link_template uid, "https://facebook.com/#{uid}", :facebook
12
+ def facebook(uid, title)
13
+ profile_link_template title, "https://facebook.com/#{uid}", :facebook
14
14
  end
15
15
 
16
- def twitter(uid)
17
- profile_link_template uid, "https://twitter.com/#{uid}", :twitter
16
+ def twitter(uid, title)
17
+ profile_link_template title, "https://twitter.com/#{uid}", :twitter
18
18
  end
19
19
 
20
- def profile_link_template(uid, link, icon)
20
+ def profile_link_template(title, link, icon)
21
21
  link_to link, target: '_blank' do
22
22
  concat fa_icon icon
23
23
  concat ' '
24
- concat uid
24
+ concat title
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Profiles
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-profiles
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