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: ebb6b589b8cf91df4b3cc23963b10fa3694e08b81f3de92d33c820d3d9697432
4
- data.tar.gz: 7876751299a933bc379f2ba40f59828280def0c7ddd7b496cd62257e69e6495c
3
+ metadata.gz: 7870f5919629c8b3cf982c35bda57296b2abc463e322e4d3c6dfbde5254078db
4
+ data.tar.gz: 797a4098f31eba235618fc79b226169c6223270fe977a514c8e0c7570a1e84c7
5
5
  SHA512:
6
- metadata.gz: 016ef954b577a061685ca0d0345b24fe4c011a752d092270fe37c48aa00b528cfd9efce8879943328b84f2bc33429c58f2aacb45aa8e9966c59620b1246a3eb7
7
- data.tar.gz: bdf6a5fa0d263b5bf6894264025b388f9dda7b7d36253b1e25187304dc5ab974722684a51740ec8abb860e6a7fb88cebbdb9ac544e46e7b018924b63a471be33
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://teleg.run/#{uid}", :telegram
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
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Profiles
3
- VERSION = '1.2.0.1'
3
+ VERSION = '1.3'
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.2.0.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-06 00:00:00.000000000 Z
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: