tramway-profiles 1.1.2 → 1.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
  SHA256:
3
- metadata.gz: 000ea84ea6ded7c615f830ecdd7d184f90a05ff258eec2c51a61ba6fd12f343d
4
- data.tar.gz: 48d2802e66b181807b622b4d4c55471211d820d59b27f7fb75f8e21355bd0c8b
3
+ metadata.gz: 42a4fbf2d7cc918e9b60a233ccb8cfca3d829f6c9e14819472bbf66196c2a7d3
4
+ data.tar.gz: d5354a9fcb15c5cc5db1f9dc541e1a5fa2677b4b1220867bbc2cd0928388e330
5
5
  SHA512:
6
- metadata.gz: 9fbea98c09d2558cc000b56ea7692000298917a5cbbd237c3b3a6f2cfebf3cb785a7800272e3398a36085901c49e0c19774faeaa275295b2fdd64a189efc264d
7
- data.tar.gz: 990a5b31d049de43c94f7a87153d7df995a52a73b766f16f0458f7a6d2d7aac67b56cb94218416b4130248a9bcd2e0ddfd07ebb8d7c00bdc17a2cb9001f59ef0
6
+ metadata.gz: 7626a641a66e554fc8463d93eb0bd6c80f49476a44c4131c725b516573c61fd6e44eadbd99647c11d52e40def65143f24fe3d86b44a0a75bfbd6c0a251d11491
7
+ data.tar.gz: fc2485424de19384a1e710e30175a828f2970043ab98362616cc8399f6d645c5457c7aeccf56c266f371a77155fbd617d571253bb5313fd0c2324347413e1ffe
@@ -21,6 +21,10 @@ module Tramway::Profiles::LinksHelper
21
21
  profile_link_template title, "https://instagram.com/#{uid}", :instagram
22
22
  end
23
23
 
24
+ def telegram(uid, title)
25
+ profile_link_template title, "https://teleg.run/#{uid}", :telegram
26
+ end
27
+
24
28
  def profile_link_template(title, link, icon)
25
29
  link_to link, target: '_blank' do
26
30
  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, :instagram ]
4
+ enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram, :telegram ]
5
5
  #enumerize :record_type, in: ::Tramway::Profiles.records
6
6
  enumerize :record_type, in: [ 'Tramway::SportSchool::Institution', 'Tramway::Conference::Unity' ], default: 'Tramway::SportSchool::Institution'
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Profiles
3
- VERSION = '1.1.2'
3
+ VERSION = '1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-profiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-18 00:00:00.000000000 Z
11
+ date: 2018-10-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for social networks profiles
14
14
  email: