tramway-site 0.1.0.3 → 0.1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -1
- data/app/controllers/tramway/site/application_controller.rb +2 -0
- data/app/controllers/tramway/site/web/application_controller.rb +2 -0
- data/app/controllers/tramway/site/web/welcome_controller.rb +2 -0
- data/app/decorators/tramway/site/person_decorator.rb +3 -1
- data/app/forms/tramway/site/person_form.rb +5 -3
- data/app/helpers/tramway/site/application_helper.rb +2 -0
- data/app/jobs/tramway/site/application_job.rb +2 -0
- data/app/mailers/tramway/site/application_mailer.rb +2 -0
- data/app/models/tramway/site/application_record.rb +2 -0
- data/app/models/tramway/site/person.rb +2 -0
- data/config/initializers/tramway.rb +2 -0
- data/config/routes.rb +2 -0
- data/lib/tramway/site.rb +3 -1
- data/lib/tramway/site/engine.rb +2 -0
- data/lib/tramway/site/generates/install_generator.rb +3 -1
- data/lib/tramway/site/generates/templates/create_tramway_site_people.rb +2 -0
- data/lib/tramway/site/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: fd689ba811220281e7250a9ccc8a92efdab359e3de58fd117c8dbbfa7a892bc1
|
4
|
+
data.tar.gz: dd0d07eba9546921cb90815a01393feccca73f12348c2687ebbae9fe90eef737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7058ac6bcd553a2e0c719db5e767c8c8d0016fe24b668ffb04c2dad2dd3b679be5eaa2e44f167359768920c5a85012a046dfd899d0003f1da1866e272e289e0
|
7
|
+
data.tar.gz: 2348cbb0e8a1a876813d9363e1dc305a91dba9329322bbddd3c18ebe6bac76b83d54da68a664f9490866a1f4d37205868f2705d9f4ded28da69942601f03c103
|
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,7 +16,7 @@ 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
22
|
load 'rails/tasks/statistics.rake'
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class Tramway::Site::PersonForm < Tramway::Core::ExtendedApplicationForm
|
2
4
|
properties :full_name, :photo, :short_bio, :bio
|
3
5
|
|
4
6
|
def initialize(object)
|
5
7
|
super(object).tap do
|
6
8
|
form_properties full_name: :string,
|
7
|
-
|
8
|
-
|
9
|
-
|
9
|
+
photo: :file,
|
10
|
+
short_bio: :string,
|
11
|
+
bio: :ckeditor
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
data/config/routes.rb
CHANGED
data/lib/tramway/site.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'tramway/site/engine'
|
2
4
|
require 'tramway/site/generates/install_generator'
|
3
5
|
|
@@ -5,7 +7,7 @@ module Tramway
|
|
5
7
|
module Site
|
6
8
|
class << self
|
7
9
|
def dependencies
|
8
|
-
[
|
10
|
+
%i[landing profiles]
|
9
11
|
end
|
10
12
|
|
11
13
|
def application
|
data/lib/tramway/site/engine.rb
CHANGED
@@ -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::Site::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'
|
data/lib/tramway/site/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-site
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails engine for person site
|
14
14
|
email:
|
@@ -62,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
|
66
|
-
rubygems_version: 2.7.6
|
65
|
+
rubygems_version: 3.0.3
|
67
66
|
signing_key:
|
68
67
|
specification_version: 4
|
69
68
|
summary: Rails engine for person site
|