tramway-news 1.0.4.2 → 1.0.4.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: e1bebd2edf6162b88a2963b8252ca0f59076b4705b627f09f27477db6cde5c3b
4
- data.tar.gz: ccbb377780c04cbb980b2d53b7091b843e15954d70c30273cd1ed8da01b88723
3
+ metadata.gz: da630e003d950523521b196b83d65c29da3b13207f888753d1662b5ec74a8350
4
+ data.tar.gz: 326cb3b638f1759c505071c2177db70b5242923d851d0b537fe9198aed946415
5
5
  SHA512:
6
- metadata.gz: bc9e4996d81eaf26a4ceb9ecfa60cfc73d3ff48032630837834a9a044bb6e36584a9524a9942ff22b689f4f42b7655703079f355db381c8b57a5cc3b0dff34e8
7
- data.tar.gz: 8a91256cf11769cd6e75923cde499ebaeccafb7a81e9079a44b0ae3e1dbfef640c1ebd330def80b234f36830dbe4115447e8a46984015b6bf5ee3601af3dfc3e
6
+ metadata.gz: 4fc5768e2883d54572f20574128098565f04ccf19d380f4ad5f84f90a7a6146ba7520f5bbadb304f176d833ac17b6809beb77886f818ff8b2d25d641b9e6fc9f
7
+ data.tar.gz: 4a149bc3550988000fca3869a6979a3f078126554ae5c9ec98074126a3c10cbab9ef190d9596bdba9e4577a76bedabf5464ea0357d7372621daaad987bbc5401
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::News::NewsDecorator < ::Tramway::Core::ApplicationDecorator
3
+ class Tramway::News::NewsDecorator < ::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 ::Tramway::News::UserDecorator < ::Tramway::Core::ApplicationDecorator
3
+ class ::Tramway::News::UserDecorator < ::Tramway::ApplicationDecorator
4
4
  def short_name
5
5
  "#{object.first_name} #{object.last_name}"
6
6
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Tramway::News::NewsForm < ::Tramway::Core::ApplicationForm
3
+ class Admin::Tramway::News::NewsForm < ::Tramway::ApplicationForm
4
4
  properties :title, :body, :published_at, :photo
5
5
 
6
6
  def initialize(object)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ::Tramway::News::News < ::Tramway::Core::ApplicationRecord
3
+ class ::Tramway::News::News < ::Tramway::ApplicationRecord
4
4
  mount_uploader :photo, PhotoUploader
5
5
 
6
6
  def author
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::Tramway::Admin.set_available_models(::Tramway::News::News, project: :news)
3
+ ::Tramway.set_available_models(::Tramway::News::News, project: :news)
4
4
  ::Tramway::Landing.head_content = lambda do
5
5
  stylesheet_link_tag 'tramway/news/application'
6
6
  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::News::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 News
5
- VERSION = '1.0.4.2'
5
+ VERSION = '1.0.4.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-news
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4.2
4
+ version: 1.0.4.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: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for news
14
14
  email:
@@ -28,7 +28,7 @@ files:
28
28
  - app/decorators/tramway/landing/cards/news_decorator.rb
29
29
  - app/decorators/tramway/news/news_decorator.rb
30
30
  - app/decorators/tramway/news/user_decorator.rb
31
- - app/forms/tramway/news/news_form.rb
31
+ - app/forms/admin/tramway/news/news_form.rb
32
32
  - app/helpers/tramway/news/application_helper.rb
33
33
  - app/jobs/tramway/news/application_job.rb
34
34
  - app/mailers/tramway/news/application_mailer.rb
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.0.3
67
+ rubygems_version: 3.4.1
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Rails engine for news