ecm_youtube_backend 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: b8338e26ef726c0f0568514ee88379ef992f66e2
4
- data.tar.gz: 7655c1d49eacd3b329fc7a00ae9aa7b03510706c
3
+ metadata.gz: 8ed2efee4e069f4c503c44d2fef3146c93492387
4
+ data.tar.gz: db3eeb2e83393a9885184bcdcfecef83cc9f2938
5
5
  SHA512:
6
- metadata.gz: a32f745c16e57d2497bec16d9c1f72199e50c5088b6809c873c821e76574dc80f175444db7446fee884ab6f260ed451b16a7ecc4f76423dd967a8522d45c95be
7
- data.tar.gz: 373ddb834b2d2cf97329d44850699b86f2d5e9c7dae2fb5998bdaeda51906ba6c5d79177f90bc3249068eaf5159fc4285b2b5ab38e352e6f9145991dc2cc250b
6
+ metadata.gz: 96b118b6ed7156e83bb08c45e90334a306b7db7821f473e8c3e6a7e0a389e21e0a1a0ec09ae012ffb607f85d02ee313257ce0ee9c1961991565fa6ae1280d87c
7
+ data.tar.gz: e7fabd5559e90c2cb379ebd07323cc11f658bb9be70324b4131068f1c15f28c3db109bf10a77d0f7667efc56b3f58265169293cc8c1e5abe100c889ae5351665
@@ -22,13 +22,13 @@ class Ecm::Youtube::Backend::CategoriesController < Itsf::Backend::Resource::Bas
22
22
 
23
23
  def permitted_params
24
24
  # Set the allowed params, for your create and update methods.
25
- #
25
+ #
26
26
  # Example: params
27
27
  # .require(:category)
28
28
  # .permit(:title, :body)
29
- #
29
+ #
30
30
  params
31
31
  .require(:category)
32
- .permit(:identifier)
32
+ .permit(:identifier)
33
33
  end
34
34
  end
@@ -25,13 +25,13 @@ class Ecm::Youtube::Backend::VideosController < Itsf::Backend::Resource::BaseCon
25
25
 
26
26
  def permitted_params
27
27
  # Set the allowed params, for your create and update methods.
28
- #
28
+ #
29
29
  # Example: params
30
30
  # .require(:video)
31
31
  # .permit(:title, :body)
32
- #
32
+ #
33
33
  params
34
34
  .require(:video)
35
- .permit(:category_id, :identifier, :published)
35
+ .permit(:category_id, :identifier, :published)
36
36
  end
37
37
  end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Youtube
2
2
  class CategoryPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Youtube
2
2
  class VideoPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,2 +1,2 @@
1
1
  Rails.application.config.assets.precompile += %w( ecm_youtube_backend.js )
2
- Rails.application.config.assets.precompile += %w( ecm_youtube_backend.css )
2
+ Rails.application.config.assets.precompile += %w( ecm_youtube_backend.css )
@@ -10,13 +10,13 @@ module Ecm
10
10
  end
11
11
 
12
12
  mattr_accessor :registered_controllers do
13
- -> {[]}
13
+ -> { [] }
14
14
  end
15
15
 
16
16
  mattr_accessor :registered_services do
17
- -> {[]}
17
+ -> { [] }
18
18
  end
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Youtube
3
3
  module Backend
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
6
6
  end
7
7
  end
@@ -3,13 +3,13 @@ module Ecm
3
3
  module Backend
4
4
  module Generators
5
5
  class InstallGenerator < Rails::Generators::Base
6
- desc "Generates the intializer"
6
+ desc 'Generates the intializer'
7
+
8
+ source_root File.expand_path('../templates', __FILE__)
7
9
 
8
- source_root File.expand_path('../templates', __FILE__)
9
-
10
10
  def generate_initializer
11
- copy_file "initializer.rb", "config/initializers/ecm_youtube_backend.rb"
12
- end
11
+ copy_file 'initializer.rb', 'config/initializers/ecm_youtube_backend.rb'
12
+ end
13
13
 
14
14
  def add_to_itsf_backend
15
15
  insert_into_itsf_backend_config(Ecm::Youtube::Backend::Engine)
@@ -1,22 +1,25 @@
1
1
  Ecm::Youtube::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu.
3
- #
3
+ #
4
4
  # Default: config.registered_controllers = -> {[
5
5
  # Ecm::Youtube::Backend::CategoriesController,
6
6
  # Ecm::Youtube::Backend::VideosController
7
7
  # ]}
8
- #
9
- config.registered_controllers = -> {[
10
- Ecm::Youtube::Backend::CategoriesController,
11
- Ecm::Youtube::Backend::VideosController
12
- ]}
13
-
8
+ #
9
+ config.registered_controllers = lambda {
10
+ [
11
+ Ecm::Youtube::Backend::CategoriesController,
12
+ Ecm::Youtube::Backend::VideosController
13
+ ]
14
+ }
14
15
 
15
16
  # Set the services, that will be shown in the backend menu.
16
17
  #
17
18
  # Default: config.registered_services = -> {[
18
19
  # ]}
19
- #
20
- config.registered_services = -> {[
21
- ]}
22
- end
20
+ #
21
+ config.registered_services = lambda {
22
+ [
23
+ ]
24
+ }
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_youtube_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
@@ -217,8 +217,10 @@ files:
217
217
  - README.rdoc
218
218
  - Rakefile
219
219
  - app/assets/javascripts/ecm/youtube/backend/application.js
220
+ - app/assets/javascripts/ecm/youtube/backend/application/dummy.js
220
221
  - app/assets/javascripts/ecm_youtube_backend.js
221
222
  - app/assets/stylesheets/ecm/youtube/backend/application.css
223
+ - app/assets/stylesheets/ecm/youtube/backend/application/dummy.css
222
224
  - app/assets/stylesheets/ecm_youtube_backend.css
223
225
  - app/controllers/ecm/youtube/backend/application_controller.rb
224
226
  - app/controllers/ecm/youtube/backend/categories_controller.rb