tramway-profiles 1.0.2 → 1.1

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
  SHA256:
3
- metadata.gz: d1c5b65d8c3a9a102de035b61a5ee957d6c14eb780f6e5487163f9e57da4457f
4
- data.tar.gz: 1570708447a4140558a4a99e34729cf491fafbb2fc8ccacc3152017bbd0a517c
3
+ metadata.gz: a40319673d1f169021e57bb1a5592729de18018f30d0e8e92fa5107f74b1aa21
4
+ data.tar.gz: 9b9dbbf3b83127c9d45410461818a3339b2baaaa6ce4f943b1be5573bfde62a2
5
5
  SHA512:
6
- metadata.gz: 34569404cfee8292f9b7b8b7a724ba1dacc1af90c3723a55b8d98944b34785ac2c3439c94b23734bff7ddb548c9050b46546da8b57bc64816c980979ef57a79c
7
- data.tar.gz: 2ab21dd4b388c5b6ea8085d5523db491f2e92156e11436b8ebfe17188764f91d72cd363a9cb0b181930fe8f0605c889e8837976082e29bb9695a8350b994d279
6
+ metadata.gz: 6c71029643363416fcfb295155a0e9cdcac20208b8b89d76d5c4f0a7c58f32f7faca41fc24e0dcecb48392fe7a9d56cced2a3b95b8b3124226370e18139986ad
7
+ data.tar.gz: 637ba40a1a9b8afac6342f6203176d1ce3e98eb7c4d2df207d118de678c28a6f9fadac7588b8dd4d993df53957cfae64579c828b015136438a6ca01406f8c7bb
@@ -17,6 +17,10 @@ module Tramway::Profiles::LinksHelper
17
17
  profile_link_template title, "https://twitter.com/#{uid}", :twitter
18
18
  end
19
19
 
20
+ def instagram(uid, title)
21
+ profile_link_template title, "https://instagram.com/#{uid}", :instagram
22
+ end
23
+
20
24
  def profile_link_template(title, link, icon)
21
25
  link_to link, target: '_blank' do
22
26
  concat fa_icon icon
@@ -1,7 +1,7 @@
1
1
  class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
2
2
  belongs_to :record, polymorphic: true
3
3
 
4
- enumerize :network_name, in: [ :vk, :facebook, :twitter ]
4
+ enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram ]
5
5
  #enumerize :record_type, in: ::Tramway::Profiles.records
6
6
  enumerize :record_type, in: [ 'Tramway::SportSchool::Institution' ], default: 'Tramway::SportSchool::Institution'
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Profiles
3
- VERSION = '1.0.2'
3
+ VERSION = '1.1'
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.2
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov