tramway-conference 1.8.13.1 → 1.8.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07ce78b881b3049b44ee102978550482d09fdb12207378d2e56668396a9d1eb7
4
- data.tar.gz: a6761de2b059b171d4dcd1bdb00697554b2b22244cc548baa4341e5648a5e7c5
3
+ metadata.gz: 938038b1b03b1c6d0a1234bd586d4fb58f0e8aee29a2efd3c3dd080d6b512493
4
+ data.tar.gz: 3fbb5d2897266af7f2ecde75ba4ff5fe296b93fa2f69ccefedf7fc22801f2183
5
5
  SHA512:
6
- metadata.gz: f9a059e389f1bfff3fdb0fbcca63f7b632f56675ebfe25ec65df0044c3404be8ec928f20043cad1ab79647dd9fc429cb800fdee4f1beda24508e0656fd71add8
7
- data.tar.gz: 949d2726285d377f959e7e19b3fc712f492cc891ffe5a6ced189df521e29122b9b7f987b11d67d5bf4805284b22cd4ac9174435bb6260a0bbc5c54fbdbaaa8b0
6
+ metadata.gz: f7a55685baae76deb4f5f72b1ee9240e6917e5aef91959b5123c91eb8aff919f37611ae59848c5040611d6f3aef029d619ba349b6f5b3dfbc37b8814796bbae3
7
+ data.tar.gz: ee54680acd2998aa74f1a7dd5f3989d5aefce4b3c65b75290d441248dceba0fb401e3c0aff5c876a812921746dabe32987a9e3f4dde561e17e6817fe493dfd69
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -14,14 +16,11 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
16
  rdoc.rdoc_files.include('lib/**/*.rb')
15
17
  end
16
18
 
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
19
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
18
20
  load 'rails/tasks/engine.rake'
19
21
 
20
-
21
22
  load 'rails/tasks/statistics.rake'
22
23
 
23
-
24
-
25
24
  require 'bundler/gem_tasks'
26
25
 
27
26
  require 'rake/testtask'
@@ -32,5 +31,4 @@ Rake::TestTask.new(:test) do |t|
32
31
  t.verbose = false
33
32
  end
34
33
 
35
-
36
34
  task default: :test
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
5
  class ApplicationController < ::Tramway::Core::ApplicationController
@@ -6,7 +8,7 @@ module Tramway
6
8
  before_action :application
7
9
 
8
10
  def application
9
- @application = ::Tramway::Core.application.model_class.first
11
+ @application = ::Tramway::Core.application_object
10
12
  end
11
13
  end
12
14
  end
@@ -1,4 +1,6 @@
1
- require_dependency "tramway/conference/application_controller"
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'tramway/conference/application_controller'
2
4
 
3
5
  class Tramway::Conference::Web::WelcomeController < ::Tramway::Conference::ApplicationController
4
6
  def index
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Conference::UnityDecorator < ::Tramway::Core::ApplicationDecorator
2
4
  class << self
3
5
  def collections
4
- [ :all ]
6
+ [:all]
5
7
  end
6
8
  end
7
9
 
@@ -1,16 +1,18 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Conference::UnityForm < ::Tramway::Core::ApplicationForm
2
4
  properties :title, :tagline, :logo, :state, :phone, :address, :longtitude, :latitude, :url, :found_date
3
5
 
4
6
  def initialize(object)
5
7
  super(object).tap do
6
8
  form_properties title: :string,
7
- tagline: :string,
8
- phone: :string,
9
- address: :string,
10
- latitude: :string,
11
- longtitude: :string,
12
- url: :string,
13
- found_date: :date_picker
9
+ tagline: :string,
10
+ phone: :string,
11
+ address: :string,
12
+ latitude: :string,
13
+ longtitude: :string,
14
+ url: :string,
15
+ found_date: :date_picker
14
16
  end
15
17
  end
16
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
5
  module ApplicationHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway::Conference
2
4
  module Web::WelcomeHelper
3
5
  include ::Tramway::Landing::ApplicationHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
5
  class ApplicationJob < ActiveJob::Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
5
  class ApplicationMailer < ActionMailer::Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
5
  class ApplicationRecord < ::Tramway::Core::ApplicationRecord
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway::Conference
2
4
  class Unity < ::Tramway::Core::ApplicationRecord
3
5
  has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  SimpleForm.setup do |config|
3
4
  config.wrappers :default, class: :input,
4
5
  hint_class: :field_with_hint, error_class: :field_with_errors do |b|
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ::Tramway::Auth.root_path = '/admin'
2
4
  ::Tramway::Admin.set_singleton_models ::Tramway::Conference::Unity, project: :conference
3
5
  ::Tramway::Admin.set_available_models ::Tramway::User::User, project: :conference
4
- ::Tramway::Profiles.records = [ ::Tramway::Conference::Unity ]
6
+ ::Tramway::Profiles.records = [::Tramway::Conference::Unity]
5
7
  ::Tramway::Core.initialize_application model_class: ::Tramway::Conference::Unity
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Tramway::Conference::Engine.routes.draw do
2
4
  mount Tramway::Auth::Engine, at: '/auth'
3
5
  mount Tramway::Admin::Engine, at: '/admin'
@@ -8,6 +10,6 @@ Tramway::Conference::Engine.routes.draw do
8
10
  root to: 'web/welcome#index'
9
11
 
10
12
  scope module: :web do
11
- resource :session, only: [ :new, :create, :destroy ]
13
+ resource :session, only: %i[new create destroy]
12
14
  end
13
15
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  namespace :tramway do
2
4
  namespace :conference do
3
5
  task :prepare do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'tramway/conference/engine'
2
4
  require 'tramway/conference/generates/install_generator'
3
5
  require 'font-awesome-rails'
@@ -6,7 +8,7 @@ module Tramway
6
8
  module Conference
7
9
  class << self
8
10
  def dependencies
9
- [ :landing, :event, :profiles, :page, :partner ]
11
+ %i[landing event profiles page partner]
10
12
  end
11
13
 
12
14
  def application
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'font-awesome-rails'
2
4
 
3
5
  module Tramway
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails/generators'
2
4
  require 'tramway/core/generators/install_generator'
3
5
 
4
6
  module Tramway::Conference::Generators
5
7
  class InstallGenerator < ::Tramway::Core::Generators::InstallGenerator
6
8
  include Rails::Generators::Migration
7
- source_root File.expand_path('../templates', __FILE__)
9
+ source_root File.expand_path('templates', __dir__)
8
10
 
9
11
  def run_other_generators
10
12
  generate 'tramway:user:install'
@@ -20,10 +22,10 @@ module Tramway::Conference::Generators
20
22
  end
21
23
 
22
24
  def copy_migrations
23
- migrations = [
24
- :create_tramway_conference_unities,
25
- :add_url_to_tramway_conference_unities,
26
- :add_found_date_to_tramway_conference_unities
25
+ migrations = %i[
26
+ create_tramway_conference_unities
27
+ add_url_to_tramway_conference_unities
28
+ add_found_date_to_tramway_conference_unities
27
29
  ]
28
30
  migrations.each do |migration_name|
29
31
  migration_template "#{migration_name}.rb", "db/migrate/#{migration_name}.rb"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AddFoundDateToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
2
4
  def change
3
5
  add_column :tramway_conference_unities, :found_date, :date
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class AddUrlToTramwayConferenceUnities < ActiveRecord::Migration[5.1]
2
4
  def change
3
5
  add_column :tramway_conference_unities, :url, :text
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateTramwayConferenceUnities < ActiveRecord::Migration[5.1]
2
4
  def change
3
5
  create_table :tramway_conference_unities do |t|
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Conference
3
- VERSION = '1.8.13.1'
5
+ VERSION = '1.8.13.2'
4
6
  end
5
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.8.13.1
4
+ version: 1.8.13.2
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: 2019-07-07 00:00:00.000000000 Z
12
+ date: 2020-01-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Engine for Conference web sites
15
15
  email:
@@ -70,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  requirements: []
73
- rubyforge_project:
74
- rubygems_version: 2.7.6
73
+ rubygems_version: 3.1.2
75
74
  signing_key:
76
75
  specification_version: 4
77
76
  summary: Engine for Conference web sites