phcdevworks_tutorials 6.6.0 → 6.6.1

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: 0f1a86d03b35ad318aec0f081fdd46c337c01efcb37a635f10545068a1a9cd1c
4
- data.tar.gz: 3cd6fc518c06ac86daaa7305ac381d4ba8fd311700fd3bea33093dd32c38b099
3
+ metadata.gz: 3c9ffdb0d4ca81822bbbbc410e43fb4b4b803ef7b051790ae1b779e0ccc691d6
4
+ data.tar.gz: e62380c3340f2121756982e1fd902fb8f1de6cb30bcc35d8f2623b614b750fcc
5
5
  SHA512:
6
- metadata.gz: 988d8b80d1f608c1a1fa165a4a52518a2ff0c18c3ffcff4605c7194ffd0934bd9193d616aa8318b86efda7b014611a50814c2b07078e1dec7a0fde350f8229d9
7
- data.tar.gz: 859c7a5ba1eff8a14dc1b63f8f47c8af1175d35cf359c5b495b0c4102c086aecd2753ed3119ae59c214d9fec531926596e47f1fb268e1120dc0e09f96470418c
6
+ metadata.gz: df9bb10d82f0c81ddef421d3f4a653053450be5d6e25f69ab5a6739dc1ada98a5d2dc18bd71d3ded3da05435c722fdd048460d5652b72d6f179f308063797a0d
7
+ data.tar.gz: b7a06a0eda1012a9497a31e74462dbebab27cb3ea80d3c73adac72edb6c29a824b259cc698d382a368adf73a9d3b6373d3e008b0446316a65789af819cd22b7b
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the blog/commands controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: https://sass-lang.com/
@@ -0,0 +1,21 @@
1
+ require_dependency "phcdevworks_tutorials/application_controller"
2
+
3
+ module PhcdevworksTutorials
4
+ class Blog::CommandsController < ApplicationController
5
+
6
+ # Layout
7
+ layout 'phcdevworks_tutorials/frontend'
8
+
9
+ # INDEX
10
+ def index
11
+ @phcdevworks_commands_index = Command::Post.where(post_status: "published").order("created_at DESC")
12
+ @phcdevworks_commands_photo_randomizer = Command::Post.order('RANDOM()').limit(1)
13
+ end
14
+
15
+ # SHOW
16
+ def show
17
+ @phcdevworks_commands_single = Command::Post.friendly.find(params[:id])
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,4 @@
1
+ module PhcdevworksTutorials
2
+ module Blog::CommandsHelper
3
+ end
4
+ end
data/config/routes.rb CHANGED
@@ -18,6 +18,7 @@ PhcdevworksTutorials::Engine.routes.draw do
18
18
  # Frontend Routes
19
19
  namespace :blog do
20
20
  resources :tutorials, only: [:index, :show]
21
+ resources :commands, only: [:index, :show]
21
22
  end
22
23
 
23
24
  # API Routes
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksTutorials
2
- VERSION = "6.6.0"
2
+ VERSION = "6.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_tutorials
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.6.0
4
+ version: 6.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
@@ -266,11 +266,13 @@ files:
266
266
  - Rakefile
267
267
  - app/assets/config/phcdevworks_tutorials_manifest.js
268
268
  - app/assets/javascripts/phcdevworks_tutorials/application.js
269
+ - app/assets/javascripts/phcdevworks_tutorials/blog/commands.coffee
269
270
  - app/assets/javascripts/phcdevworks_tutorials/blog/tutorials.coffee
270
271
  - app/assets/javascripts/phcdevworks_tutorials/command/items.coffee
271
272
  - app/assets/javascripts/phcdevworks_tutorials/command/posts.coffee
272
273
  - app/assets/javascripts/phcdevworks_tutorials/tutorial/categories.coffee
273
274
  - app/assets/stylesheets/phcdevworks_tutorials/application.scss
275
+ - app/assets/stylesheets/phcdevworks_tutorials/blog/commands.scss
274
276
  - app/assets/stylesheets/phcdevworks_tutorials/blog/tutorials.scss
275
277
  - app/assets/stylesheets/phcdevworks_tutorials/category/posts.css
276
278
  - app/assets/stylesheets/phcdevworks_tutorials/command/items.scss
@@ -280,6 +282,7 @@ files:
280
282
  - app/assets/stylesheets/phcdevworks_tutorials/tutorial/steps.css
281
283
  - app/assets/stylesheets/scaffolds.scss
282
284
  - app/controllers/phcdevworks_tutorials/application_controller.rb
285
+ - app/controllers/phcdevworks_tutorials/blog/commands_controller.rb
283
286
  - app/controllers/phcdevworks_tutorials/blog/tutorials_controller.rb
284
287
  - app/controllers/phcdevworks_tutorials/command/items_controller.rb
285
288
  - app/controllers/phcdevworks_tutorials/command/posts_controller.rb
@@ -287,6 +290,7 @@ files:
287
290
  - app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb
288
291
  - app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb
289
292
  - app/helpers/phcdevworks_tutorials/application_helper.rb
293
+ - app/helpers/phcdevworks_tutorials/blog/commands_helper.rb
290
294
  - app/helpers/phcdevworks_tutorials/blog/tutorials_helper.rb
291
295
  - app/helpers/phcdevworks_tutorials/command/items_helper.rb
292
296
  - app/helpers/phcdevworks_tutorials/command/posts_helper.rb