tramway-conference 1.8.13.1 → 1.8.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -5
- data/app/controllers/tramway/conference/application_controller.rb +3 -1
- data/app/controllers/tramway/conference/web/welcome_controller.rb +3 -1
- data/app/decorators/tramway/conference/unity_decorator.rb +3 -1
- data/app/forms/tramway/conference/unity_form.rb +9 -7
- data/app/helpers/tramway/conference/application_helper.rb +2 -0
- data/app/helpers/tramway/conference/web/welcome_helper.rb +2 -0
- data/app/jobs/tramway/conference/application_job.rb +2 -0
- data/app/mailers/tramway/conference/application_mailer.rb +2 -0
- data/app/models/tramway/conference/application_record.rb +2 -0
- data/app/models/tramway/conference/unity.rb +2 -0
- data/config/initializers/simple_form.rb +1 -0
- data/config/initializers/tramway.rb +3 -1
- data/config/routes.rb +3 -1
- data/lib/tasks/tramway/conference_tasks.rake +2 -0
- data/lib/tramway/conference.rb +3 -1
- data/lib/tramway/conference/engine.rb +2 -0
- data/lib/tramway/conference/generates/install_generator.rb +7 -5
- data/lib/tramway/conference/generates/templates/add_found_date_to_tramway_conference_unities.rb +2 -0
- data/lib/tramway/conference/generates/templates/add_url_to_tramway_conference_unities.rb +2 -0
- data/lib/tramway/conference/generates/templates/create_tramway_conference_unities.rb +2 -0
- data/lib/tramway/conference/version.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938038b1b03b1c6d0a1234bd586d4fb58f0e8aee29a2efd3c3dd080d6b512493
|
4
|
+
data.tar.gz: 3fbb5d2897266af7f2ecde75ba4ff5fe296b93fa2f69ccefedf7fc22801f2183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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.
|
11
|
+
@application = ::Tramway::Core.application_object
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
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,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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,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 = [
|
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: [
|
13
|
+
resource :session, only: %i[new create destroy]
|
12
14
|
end
|
13
15
|
end
|
data/lib/tramway/conference.rb
CHANGED
@@ -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
|
-
[
|
11
|
+
%i[landing event profiles page partner]
|
10
12
|
end
|
11
13
|
|
12
14
|
def application
|
@@ -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('
|
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
|
-
|
25
|
-
|
26
|
-
|
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"
|
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.
|
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:
|
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
|
-
|
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
|