ecm_youtube_backend 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ecm/youtube/backend/application/dummy.js +0 -0
- data/app/assets/stylesheets/ecm/youtube/backend/application/dummy.css +0 -0
- data/app/controllers/ecm/youtube/backend/categories_controller.rb +3 -3
- data/app/controllers/ecm/youtube/backend/videos_controller.rb +3 -3
- data/app/policies/ecm/youtube/category_policy.rb +1 -1
- data/app/policies/ecm/youtube/video_policy.rb +1 -1
- data/config/initializers/assets.rb +1 -1
- data/lib/ecm/youtube/backend/configuration.rb +3 -3
- data/lib/ecm/youtube/backend/version.rb +1 -1
- data/lib/generators/ecm/youtube/backend/install/install_generator.rb +5 -5
- data/lib/generators/ecm/youtube/backend/install/templates/initializer.rb +14 -11
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ed2efee4e069f4c503c44d2fef3146c93492387
|
4
|
+
data.tar.gz: db3eeb2e83393a9885184bcdcfecef83cc9f2938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b118b6ed7156e83bb08c45e90334a306b7db7821f473e8c3e6a7e0a389e21e0a1a0ec09ae012ffb607f85d02ee313257ce0ee9c1961991565fa6ae1280d87c
|
7
|
+
data.tar.gz: e7fabd5559e90c2cb379ebd07323cc11f658bb9be70324b4131068f1c15f28c3db109bf10a77d0f7667efc56b3f58265169293cc8c1e5abe100c889ae5351665
|
File without changes
|
File without changes
|
@@ -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
|
-
|
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
|
-
|
35
|
+
.permit(:category_id, :identifier, :published)
|
36
36
|
end
|
37
37
|
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 )
|
@@ -3,13 +3,13 @@ module Ecm
|
|
3
3
|
module Backend
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < Rails::Generators::Base
|
6
|
-
desc
|
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
|
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
|
-
|
11
|
-
|
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
|
-
|
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.
|
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
|