tramway-conference 1.9.5.4 → 1.9.5.6

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: 12b943edd9bc36fff87d53a2b178a778b7b9b11088b137f62d2a7d294d9f831e
4
- data.tar.gz: a4fd4804b2904759d58a53ede5fac20ab00ecf87729eede7e736d3000b8f20f5
3
+ metadata.gz: 67c9db5456086addd4b356388edd285bdb1a9ad4c8c8da6b7b1695c4ef1160bc
4
+ data.tar.gz: e27e7440ecdd95b168ff2d8a47868faadd6980caec5f04f507166f9892bf1f2d
5
5
  SHA512:
6
- metadata.gz: d8386dd5ab0c0305e2a14e3d2c021902cf99fbe7cc307d8b34a5632bd7606418293e403e18ca032edbbdd649bc73a70fccc366bf910cb6ae6f38af239de89859
7
- data.tar.gz: 1c10b6ee6d374c029516f179a5cefc70be738f27915b9e042ba647380deb23ec03d5abed773cb504a13a81b9526ef4521b8f6bbb66355c26804c55fe32ca81d0
6
+ metadata.gz: 832da9b7328622a9c583c0a971cd21c4f799f3ad10cb089610e7599e1faddd801e290c23144d03360a3d326fe24a37e09c9175e52431c1047ce4ff087aee864e
7
+ data.tar.gz: 31b5a621522d6341ee4d7104b41e713fe26758a96f1f2791244e854e6297a9fc7ba62f40488c89f2fcc71e1c85d708c18dcfcf801c0daca3f0f6a6eedc746c87
@@ -1,5 +1,5 @@
1
1
  //= require jquery
2
2
  //= require jquery_ujs
3
3
  //= require tramway/conference/jquery.scrollTo.min
4
- //= require tramway/core/application
4
+ //= require tramway/application
5
5
  //= require_tree .
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  @import "bootstrap";
7
- @import "tramway/admin/application";
7
+ @import "tramway/application";
8
8
 
9
9
  .row {
10
10
  &.main_event {
@@ -2,13 +2,13 @@
2
2
 
3
3
  module Tramway
4
4
  module Conference
5
- class ApplicationController < ::Tramway::Core::ApplicationController
5
+ class ApplicationController < ActionController::Base
6
6
  layout 'tramway/landing/application'
7
7
  protect_from_forgery with: :exception
8
8
  before_action :application
9
9
 
10
10
  def application
11
- @application = ::Tramway::Core.application_object
11
+ @application = ::Tramway.application_object
12
12
  end
13
13
  end
14
14
  end
@@ -4,6 +4,8 @@ require_dependency 'tramway/conference/application_controller'
4
4
 
5
5
  class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::ApplicationController
6
6
  def index
7
+ return unless ::Tramway::Conference::Unity.any?
8
+
7
9
  @unity = ::Tramway::Conference::Unity.includes(:social_networks).first
8
10
  @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
9
11
  @news = ::Tramway::News::News.first(3).map { |t| ::Tramway::Landing::Cards::NewsDecorator.new t }
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::Conference::UnityDecorator < ::Tramway::Core::ApplicationDecorator
3
+ class Tramway::Conference::UnityDecorator < ::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::Conference::UnityForm < ::Tramway::Core::ApplicationForm
3
+ class Admin::Tramway::Conference::UnityForm < ::Tramway::ApplicationForm
4
4
  properties :title, :tagline, :logo, :state, :phone, :address, :longtitude, :latitude, :url, :found_date, :email,
5
5
  :favicon, :public_name
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Tramway
4
4
  module Conference
5
- class ApplicationRecord < ::Tramway::Core::ApplicationRecord
5
+ class ApplicationRecord < ::Tramway::ApplicationRecord
6
6
  self.abstract_class = true
7
7
  end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tramway::Conference
4
- class Unity < ::Tramway::Core::ApplicationRecord
4
+ class Unity < ::Tramway::ApplicationRecord
5
5
  has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
6
6
 
7
7
  include ::Tramway::Partner::Scopes
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway::Auth.root_path_for Tramway::User::User => '/admin'
4
- ::Tramway::Admin.set_singleton_models ::Tramway::Conference::Unity, project: :conference
5
- ::Tramway::Admin.set_available_models(::Tramway::Event::Event,
3
+ ::Tramway.root_path_for Tramway::User => '/admin'
4
+ ::Tramway.set_singleton_models ::Tramway::Conference::Unity, project: :conference
5
+ ::Tramway.set_available_models(::Tramway::Event::Event,
6
6
  ::Tramway::Event::ParticipantFormField,
7
7
  ::Tramway::Event::Participant,
8
8
  ::Tramway::Event::Section,
@@ -10,10 +10,10 @@
10
10
  ::Tramway::Event::Partaking,
11
11
  ::Tramway::Event::Place,
12
12
  ::Tramway::Event::Action,
13
- ::Tramway::User::User,
13
+ ::Tramway::User,
14
14
  ::Tramway::Profiles::SocialNetwork,
15
15
  project: :conference)
16
- ::Tramway::Core.initialize_application model_class: ::Tramway::Conference::Unity
16
+ ::Tramway.initialize_application model_class: ::Tramway::Conference::Unity
17
17
  ::Tramway::Landing.head_content = lambda do
18
18
  concat stylesheet_link_tag 'tramway/conference/application', media: 'all'
19
19
  concat javascript_include_tag 'tramway/conference/application'
data/config/routes.rb CHANGED
@@ -1,15 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Tramway::Conference::Engine.routes.draw do
4
- mount Tramway::Auth::Engine, at: '/auth'
5
- mount Tramway::Admin::Engine, at: '/admin'
4
+ mount Tramway::Engine, at: '/admin'
6
5
  mount Tramway::News::Engine, at: '/'
7
6
  mount Tramway::Event::Engine, at: '/'
8
7
  mount Tramway::Page::Engine, at: '/page'
9
8
 
10
9
  root to: 'web/welcome#index'
11
-
12
- scope module: :web do
13
- resource :session, only: %i[new create destroy]
14
- end
15
10
  end
@@ -7,7 +7,7 @@ module Tramway
7
7
  module Conference
8
8
  class Engine < ::Rails::Engine
9
9
  isolate_namespace Tramway::Conference
10
- ::Tramway::Profiles.records = ['::Tramway::Conference::Unity', '::Tramway::User::User']
10
+ ::Tramway::Profiles.records = ['::Tramway::Conference::Unity', '::Tramway::User']
11
11
  end
12
12
  end
13
13
  end
@@ -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::Conference::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 Conference
5
- VERSION = '1.9.5.4'
5
+ VERSION = '1.9.5.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-conference
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5.4
4
+ version: 1.9.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Korotin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-19 00:00:00.000000000 Z
12
+ date: 2023-01-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.0.3.1
79
+ rubygems_version: 3.4.1
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Engine for Conference web sites