tramway-profiles 1.2.0.1 → 1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7870f5919629c8b3cf982c35bda57296b2abc463e322e4d3c6dfbde5254078db
|
4
|
+
data.tar.gz: 797a4098f31eba235618fc79b226169c6223270fe977a514c8e0c7570a1e84c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edced41bbaa4b336eddf53e2d01554e1450412f183ab6b0a17e82db2116abaa5846664bff9c0e917933a7394ca5c3895c870e4beba213650e5b106d81deda62f
|
7
|
+
data.tar.gz: 49f644a904ca1f10e80eb9f12a67462663bca64863cd902ac0e0d4dc10c989955d612cdeda9a1c22edb746513c2563dc0f5d46d0fc1b23c646048dbe31015188
|
@@ -22,7 +22,11 @@ module Tramway::Profiles::LinksHelper
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def telegram(uid, title)
|
25
|
-
profile_link_template title, "https://
|
25
|
+
profile_link_template title, "https://intg.me/#{uid}", :telegram
|
26
|
+
end
|
27
|
+
|
28
|
+
def patreon(uid, title)
|
29
|
+
profile_link_template title, "https://patreon.com/#{uid}", :patreon
|
26
30
|
end
|
27
31
|
|
28
32
|
def profile_link_template(title, link, 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, :telegram ]
|
4
|
+
enumerize :network_name, in: [ :vk, :facebook, :twitter, :instagram, :telegram, :patreon ]
|
5
5
|
#enumerize :record_type, in: ::Tramway::Profiles.records
|
6
6
|
#
|
7
7
|
# HACK
|
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.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for social networks profiles
|
14
14
|
email:
|