tramway-page 0.1.0 → 1.0.0

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: f73786abc851a2fa3567ed40f9ea0668b1bd6a1e985c4b72095f6781f02d6159
4
- data.tar.gz: 88e71dd7bc8b2178a69c2539ab238722ffcb4b483df9e3a32845381bbf96ec58
3
+ metadata.gz: b1da6db0d40ead5b01b1cc97f0eebfeafd1efd713442eb8b7de584a5bbd6a0fa
4
+ data.tar.gz: 9130473305cc8e46cc6ce169c445dcf828beb237f8b6a65237ca9188394a447a
5
5
  SHA512:
6
- metadata.gz: 879f9ba13eba01bf3d4a1728a53fa12d3740ae912a846c110b7bb96843e787b5003d7a5d7c3fdf08284a2577c62aad2817f2a61ff90ea2266e0e95f52cf66136
7
- data.tar.gz: 7df3a86924cf1b545234301f7bd08835a11c847420534db0a9d828d88585983ddb0d833b270b097922138f62e688d54c11c5582a5279779e74551fd5e54169a6
6
+ metadata.gz: 25d88d10bb314b04b98d19e8804fbd00612620771aa58a7fe44d749b3d078ec070a6d9e0b400592b7742fb29f793c3f5e468897a3cabfe5037b8e08eb8a8059a
7
+ data.tar.gz: d30fb426f661a9316cb56320c0fc72ee386b47e51257342fdd085b408807efbb7789869490cad35b2a9df5195d37283f163c6775c8955c118343bd28d71049d8
@@ -0,0 +1,7 @@
1
+ class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController
2
+ layout 'tramway/landing/application'
3
+
4
+ def show
5
+ @page = ::Tramway::Page::Page.find_by slug: params[:slug]
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ class Tramway::Page::Page < ::Tramway::Core::ApplicationRecord
2
+ end
@@ -0,0 +1 @@
1
+ != @page.body
data/config/routes.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  Tramway::Page::Engine.routes.draw do
2
+ get '/:slug' => 'pages#show'
2
3
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Page
3
- VERSION = '0.1.0'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
data/lib/tramway/page.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "tramway/page/engine"
2
+ require 'tramway/page/generators/install_generator'
2
3
 
3
4
  module Tramway
4
5
  module Page
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
@@ -24,11 +24,12 @@ files:
24
24
  - app/assets/javascripts/tramway/page/application.js
25
25
  - app/assets/stylesheets/tramway/page/application.css
26
26
  - app/controllers/tramway/page/application_controller.rb
27
+ - app/controllers/tramway/page/pages_controller.rb
27
28
  - app/helpers/tramway/page/application_helper.rb
28
29
  - app/jobs/tramway/page/application_job.rb
29
30
  - app/mailers/tramway/page/application_mailer.rb
30
- - app/models/tramway/page/application_record.rb
31
- - app/views/layouts/tramway/page/application.html.erb
31
+ - app/models/tramway/page/page.rb
32
+ - app/views/tramway/page/pages/show.html.haml
32
33
  - config/routes.rb
33
34
  - lib/tasks/tramway/page_tasks.rake
34
35
  - lib/tramway/page.rb
@@ -1,7 +0,0 @@
1
- module Tramway
2
- module Page
3
- class ApplicationRecord < ActiveRecord::Base
4
- self.abstract_class = true
5
- end
6
- end
7
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Tramway page</title>
5
- <%= stylesheet_link_tag "tramway/page/application", media: "all" %>
6
- <%= javascript_include_tag "tramway/page/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>