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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b2d44e6fd4d4363e372db9ef3c3e7741346d0ceb32f7658291ca29eca85a382
4
- data.tar.gz: 9a63b6b1dc759057f60cce23602477b162625a6a94c75ea67937dd95aa53711e
3
+ metadata.gz: fd689ba811220281e7250a9ccc8a92efdab359e3de58fd117c8dbbfa7a892bc1
4
+ data.tar.gz: dd0d07eba9546921cb90815a01393feccca73f12348c2687ebbae9fe90eef737
5
5
  SHA512:
6
- metadata.gz: a6a51f239e27fe7d4f91a8a8aef8eecfe1347d80b4bdb0c6971f18580e3cf06064c7cf9ad2fee61ccef4d6a758bae953c7745f55cc14f7094ba7fb52748b93a1
7
- data.tar.gz: ba073279522b7d9cebf23effc45530189176d3bd402e306706feea1ab79f74e38827030d458572f625de85bb1692a8164caac8da73724d1d2f1a078c5c7ec7d1
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("test/dummy/Rakefile", __dir__)
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,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  class ApplicationController < Tramway::Core::ApplicationController
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Site::Web::ApplicationController < Tramway::Site::ApplicationController
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Site::Web::WelcomeController < Tramway::Site::Web::ApplicationController
2
4
  def index
3
5
  @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Site::PersonDecorator < Tramway::Core::ApplicationDecorator
2
4
  class << self
3
5
  def show_attributes
4
- [:full_name, :short_bio, :bio, :photo]
6
+ %i[full_name short_bio bio photo]
5
7
  end
6
8
  end
7
9
 
@@ -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
- photo: :file,
8
- short_bio: :string,
9
- bio: :ckeditor
9
+ photo: :file,
10
+ short_bio: :string,
11
+ bio: :ckeditor
10
12
  end
11
13
  end
12
14
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  module ApplicationHelper
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  class ApplicationJob < ActiveJob::Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  class ApplicationMailer < ActionMailer::Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  class ApplicationRecord < Tramway::Core::ApplicationRecord
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Tramway::Site::Person < Tramway::Site::ApplicationRecord
2
4
  mount_uploader :photo, PhotoUploader
3
5
 
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ::Tramway::Admin.set_singleton_models ::Tramway::Site::Person, project: :site
2
4
  ::Tramway::Core.initialize_application model_class: ::Tramway::Site::Person
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Tramway::Site::Engine.routes.draw do
2
4
  mount Tramway::Auth::Engine, at: '/auth'
3
5
  mount Tramway::Admin::Engine, at: '/admin'
@@ -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
- [ :landing, :profiles ]
10
+ %i[landing profiles]
9
11
  end
10
12
 
11
13
  def application
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
5
  class Engine < ::Rails::Engine
@@ -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('../templates', __FILE__)
9
+ source_root File.expand_path('templates', __dir__)
8
10
 
9
11
  def run_other_generators
10
12
  generate 'tramway:user:install'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateTramwaySitePeople < ActiveRecord::Migration[5.1]
2
4
  def change
3
5
  create_table :tramway_site_people do |t|
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Tramway
2
4
  module Site
3
- VERSION = '0.1.0.3'
5
+ VERSION = '0.1.0.4'
4
6
  end
5
7
  end
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.3
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: 2019-07-08 00:00:00.000000000 Z
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
- rubyforge_project:
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