tramway-profiles 1.4.1 → 1.4.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: b4145d261d0aa604bcb7fd66b497dfaef037ab43e5274ee7dc76a12ee1fd9d09
4
- data.tar.gz: d2275491d22eda25c2c21d61f6a7aaa1cdf418626d8565704afbf5b04d7905b1
3
+ metadata.gz: b53990a9f09b69e751c030d8762b333f58a17591bda4813158402b44a3262fbc
4
+ data.tar.gz: 779c9ee8e1cbaa2755e790db4fe4c95ce06787568ca47f2b529c3c4d31349cea
5
5
  SHA512:
6
- metadata.gz: 1b6fe19f14cfbccf69df677e3975ad47088f5a60d78bc26c3c07b17b5bde907b868468f3d1ae0ed7bd52c52bbf47a8bf5903b672e9d2f36a163f41c4a8cb33bc
7
- data.tar.gz: e54ee2db7e2afc18a818c5f3e5b0cab18f7a40b2f57038855e798d04d08671af4bfd908df18667ce0a7dbc7635430baa69c7e2153695cb15dd19584acdda9df6
6
+ metadata.gz: 4961e45e38fd95fb130814dadec7259d276b497be8fc8f6accb9bd6d068b456d767020487f01b91fe4d8f97ed78545877e83712b8d91db05bae5ee922b46b718
7
+ data.tar.gz: 940fbfa98b66aaf84e6b055ef2a6d908c3bae98a2c8d5cf901e6b998ce7b1aac2ba098c5728381850eaa80c667af80f54eb42b238ae3bd852f2478ce829249c4
data/README.md CHANGED
@@ -24,10 +24,10 @@ rails db:migrate
24
24
  *app/initializers/tramway.rb*
25
25
 
26
26
  ```ruby
27
- ::Tramway::Admin.set_available_models(::Tramway::Profiles::SocialNetwork, project: :your_project_name)
27
+ ::Tramway.set_available_models(::Tramway::Profiles::SocialNetwork, project: :your_project_name)
28
28
  ```
29
29
 
30
- #### 5. Now you have SocialNetwork objects in your project, that associated with [Tramway::Core.application](https://github.com/ulmic/tramway-dev/tree/develop/tramway-core#how-to-create-model-that-will-be-an-application-model-for-the-tramway) by default
30
+ #### 5. Now you have SocialNetwork objects in your project, that associated with [Tramway.application](https://github.com/ulmic/tramway-dev/tree/develop/tramway#how-to-create-model-that-will-be-an-application-model-for-the-tramway) by default
31
31
 
32
32
  ## Usage. English
33
33
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ::Tramway::Profiles::SocialNetworkDecorator < ::Tramway::Core::ApplicationDecorator
3
+ class ::Tramway::Profiles::SocialNetworkDecorator < ::Tramway::ApplicationDecorator
4
4
  class << self
5
5
  def collections
6
6
  [:all]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::Core::ApplicationForm
3
+ class Admin::Tramway::Profiles::SocialNetworkForm < ::Tramway::ApplicationForm
4
4
  properties :title, :network_name, :uid, :record_id, :record_type
5
5
 
6
6
  association :record
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::Profiles::SocialNetwork < ::Tramway::Core::ApplicationRecord
3
+ class Tramway::Profiles::SocialNetwork < ::Tramway::ApplicationRecord
4
4
  belongs_to :record, polymorphic: true, required: false
5
5
 
6
6
  enumerize :network_name, in: %i[vk facebook twitter instagram telegram patreon]
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway::Admin.set_available_models(::Tramway::Profiles::SocialNetwork, project: :profiles)
3
+ ::Tramway.set_available_models(::Tramway::Profiles::SocialNetwork, project: :profiles)
@@ -6,9 +6,10 @@ ru:
6
6
  tramway/profiles/social_network:
7
7
  title: Название ссылки
8
8
  network_name: Социальная сеть
9
+ record: Пользователь
9
10
  record_id: ID записи
10
11
  record_type: Тип записи
11
- uid: Username в социальной сети
12
+ uid: Имя пользователя в социальной сети
12
13
  cases:
13
14
  tramway/profiles/social_network:
14
15
  plural: социальные сети
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'rails/generators'
4
- require 'tramway/core/generators/install_generator'
4
+ require 'tramway/generators/install_generator'
5
5
 
6
6
  module Tramway::Profiles::Generators
7
- class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator
7
+ class InstallGenerator < ::Tramway::Generators::InstallGenerator
8
8
  include Rails::Generators::Migration
9
9
  source_root File.expand_path('templates', __dir__)
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Profiles
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.1.2'
6
6
  end
7
7
  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.4.1
4
+ version: 1.4.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: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for social networks profiles
14
14
  email:
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
62
- rubygems_version: 3.1.2
62
+ rubygems_version: 3.4.1
63
63
  signing_key:
64
64
  specification_version: 4
65
65
  summary: Rails engine for social networks profiles