workarea-youtube_playlists 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +21 -0
  3. data/Gemfile +17 -0
  4. data/LICENSE +52 -0
  5. data/README.md +40 -0
  6. data/Rakefile +56 -0
  7. data/app/assets/images/workarea/admin/youtube_playlists/.keep +0 -0
  8. data/app/assets/images/workarea/admin/youtube_playlists/content_block_types/youtube_playlists.svg +1 -0
  9. data/app/assets/images/workarea/storefront/youtube_playlists/.keep +0 -0
  10. data/app/assets/javascripts/workarea/admin/youtube_playlists/.keep +0 -0
  11. data/app/assets/javascripts/workarea/storefront/youtube_playlists/.keep +0 -0
  12. data/app/assets/stylesheets/workarea/admin/youtube_playlists/.keep +0 -0
  13. data/app/assets/stylesheets/workarea/storefront/youtube_playlists/.keep +0 -0
  14. data/app/assets/stylesheets/workarea/storefront/youtube_playlists/_list.scss +22 -0
  15. data/app/controllers/.keep +0 -0
  16. data/app/controllers/workarea/admin/youtube_videos_controller.rb +10 -0
  17. data/app/controllers/workarea/storefront/youtube_videos.rb +55 -0
  18. data/app/helpers/.keep +0 -0
  19. data/app/mailers/.keep +0 -0
  20. data/app/models/.keep +0 -0
  21. data/app/models/workarea/content/fields/playlist.rb +11 -0
  22. data/app/view_models/workarea/storefront/content_blocks/youtube_playlists_view_model.rb +34 -0
  23. data/app/views/.keep +0 -0
  24. data/app/views/workarea/admin/content_blocks/_playlist.html.haml +4 -0
  25. data/app/views/workarea/admin/youtube_videos/index.html.haml +3 -0
  26. data/app/views/workarea/admin/youtube_videos/index.json.jbuilder +4 -0
  27. data/app/views/workarea/storefront/content_blocks/_youtube_playlists.html.haml +18 -0
  28. data/app/views/workarea/storefront/youtube_videos/_pagination.html.haml +7 -0
  29. data/app/views/workarea/storefront/youtube_videos/_summary.html.haml +5 -0
  30. data/app/views/workarea/storefront/youtube_videos/index.html.haml +36 -0
  31. data/app/views/workarea/storefront/youtube_videos/show.haml +26 -0
  32. data/bin/rails +25 -0
  33. data/config/initializers/appends.rb +7 -0
  34. data/config/initializers/workarea.rb +7 -0
  35. data/config/initializers/youtube_configurations.rb +16 -0
  36. data/config/initializers/youtube_content_block_types.rb +11 -0
  37. data/config/locales/en.yml +13 -0
  38. data/config/routes.rb +10 -0
  39. data/lib/workarea/youtube_playlists.rb +33 -0
  40. data/lib/workarea/youtube_playlists/engine.rb +10 -0
  41. data/lib/workarea/youtube_playlists/version.rb +5 -0
  42. data/test/dummy/.ruby-version +1 -0
  43. data/test/dummy/Rakefile +6 -0
  44. data/test/dummy/app/assets/config/manifest.js +2 -0
  45. data/test/dummy/app/assets/images/.keep +0 -0
  46. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  47. data/test/dummy/app/controllers/application_controller.rb +2 -0
  48. data/test/dummy/app/controllers/concerns/.keep +0 -0
  49. data/test/dummy/app/helpers/application_helper.rb +2 -0
  50. data/test/dummy/app/javascript/packs/application.js +14 -0
  51. data/test/dummy/app/jobs/application_job.rb +7 -0
  52. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  53. data/test/dummy/app/models/concerns/.keep +0 -0
  54. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  55. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  56. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  57. data/test/dummy/bin/rails +4 -0
  58. data/test/dummy/bin/rake +4 -0
  59. data/test/dummy/bin/setup +25 -0
  60. data/test/dummy/config.ru +5 -0
  61. data/test/dummy/config/application.rb +33 -0
  62. data/test/dummy/config/boot.rb +5 -0
  63. data/test/dummy/config/environment.rb +5 -0
  64. data/test/dummy/config/environments/development.rb +53 -0
  65. data/test/dummy/config/environments/production.rb +101 -0
  66. data/test/dummy/config/environments/test.rb +47 -0
  67. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  68. data/test/dummy/config/initializers/assets.rb +12 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/content_security_policy.rb +28 -0
  71. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  72. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  73. data/test/dummy/config/initializers/inflections.rb +16 -0
  74. data/test/dummy/config/initializers/mime_types.rb +4 -0
  75. data/test/dummy/config/initializers/workarea.rb +5 -0
  76. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  77. data/test/dummy/config/locales/en.yml +33 -0
  78. data/test/dummy/config/puma.rb +38 -0
  79. data/test/dummy/config/routes.rb +5 -0
  80. data/test/dummy/config/spring.rb +6 -0
  81. data/test/dummy/db/seeds.rb +2 -0
  82. data/test/dummy/lib/assets/.keep +0 -0
  83. data/test/dummy/log/.keep +0 -0
  84. data/test/teaspoon_env.rb +6 -0
  85. data/test/test_helper.rb +10 -0
  86. data/workarea-youtube_playlists-0.1.0.gem +0 -0
  87. data/workarea-youtube_playlists.gemspec +19 -0
  88. metadata +89 -3
@@ -0,0 +1,47 @@
1
+ # The test environment is used exclusively to run your application's
2
+ # test suite. You never need to work with it otherwise. Remember that
3
+ # your test database is "scratch space" for the test suite and is wiped
4
+ # and recreated between test runs. Don't rely on the data there!
5
+
6
+ Rails.application.configure do
7
+ # Settings specified here will take precedence over those in config/application.rb.
8
+
9
+ config.cache_classes = false
10
+
11
+ # Do not eager load code on boot. This avoids loading your whole application
12
+ # just for the purpose of running a single test. If you are using a tool that
13
+ # preloads Rails for running tests, you may have to set it to true.
14
+ config.eager_load = false
15
+
16
+ # Configure public file server for tests with Cache-Control for performance.
17
+ config.public_file_server.enabled = true
18
+ config.public_file_server.headers = {
19
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
20
+ }
21
+
22
+ # Show full error reports and disable caching.
23
+ config.consider_all_requests_local = true
24
+ config.action_controller.perform_caching = false
25
+ config.cache_store = :null_store
26
+
27
+ # Raise exceptions instead of rendering exception templates.
28
+ config.action_dispatch.show_exceptions = false
29
+
30
+ # Disable request forgery protection in test environment.
31
+ config.action_controller.allow_forgery_protection = false
32
+
33
+ config.action_mailer.perform_caching = false
34
+
35
+ # Tell Action Mailer not to deliver emails to the real world.
36
+ # The :test delivery method accumulates sent emails in the
37
+ # ActionMailer::Base.deliveries array.
38
+ config.action_mailer.delivery_method = :test
39
+
40
+ # Print deprecation notices to the stderr.
41
+ config.active_support.deprecation = :stderr
42
+
43
+ # Raises error for missing translations.
44
+ # config.action_view.raise_on_missing_translations = true
45
+
46
+ config.cache_store = :null_store
47
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in the app/assets
11
+ # folder are already added.
12
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,28 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy
4
+ # For further information see the following documentation
5
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
+
7
+ # Rails.application.config.content_security_policy do |policy|
8
+ # policy.default_src :self, :https
9
+ # policy.font_src :self, :https, :data
10
+ # policy.img_src :self, :https, :data
11
+ # policy.object_src :none
12
+ # policy.script_src :self, :https
13
+ # policy.style_src :self, :https
14
+
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+
19
+ # If you are using UJS then enable automatic nonce generation
20
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21
+
22
+ # Set the nonce only to specific directives
23
+ # Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
24
+
25
+ # Report CSP violations to a specified URI
26
+ # For further information see the following documentation:
27
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
28
+ # Rails.application.config.content_security_policy_report_only = true
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,5 @@
1
+ Workarea.configure do |config|
2
+ # Basic site info
3
+ config.site_name = 'Workarea Youtube Playlists'
4
+ config.host = 'www.example.com'
5
+ end
@@ -0,0 +1,9 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at https://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,38 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
9
+ threads min_threads_count, max_threads_count
10
+
11
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
12
+ #
13
+ port ENV.fetch("PORT") { 3000 }
14
+
15
+ # Specifies the `environment` that Puma will run in.
16
+ #
17
+ environment ENV.fetch("RAILS_ENV") { "development" }
18
+
19
+ # Specifies the `pidfile` that Puma will use.
20
+ pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
21
+
22
+ # Specifies the number of `workers` to boot in clustered mode.
23
+ # Workers are forked web server processes. If using threads and workers together
24
+ # the concurrency of the application would be max `threads` * `workers`.
25
+ # Workers do not work on JRuby or Windows (both of which do not support
26
+ # processes).
27
+ #
28
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
29
+
30
+ # Use the `preload_app!` method when specifying a `workers` number.
31
+ # This directive tells Puma to first boot the application and load code
32
+ # before forking the application. This takes advantage of Copy On Write
33
+ # process behavior so workers use less memory.
34
+ #
35
+ # preload_app!
36
+
37
+ # Allow puma to be restarted by `rails restart` command.
38
+ plugin :tmp_restart
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ mount Workarea::Core::Engine => '/'
3
+ mount Workarea::Admin::Engine => '/admin', as: 'admin'
4
+ mount Workarea::Storefront::Engine => '/', as: 'storefront'
5
+ end
@@ -0,0 +1,6 @@
1
+ Spring.watch(
2
+ ".ruby-version",
3
+ ".rbenv-vars",
4
+ "tmp/restart.txt",
5
+ "tmp/caching-dev.txt"
6
+ )
@@ -0,0 +1,2 @@
1
+ require 'workarea/seeds'
2
+ Workarea::Seeds.run
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ require 'workarea/testing/teaspoon'
2
+
3
+ Teaspoon.configure do |config|
4
+ config.root = Workarea::YoutubePlaylists::Engine.root
5
+ Workarea::Teaspoon.apply(config)
6
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV['RAILS_ENV'] = 'test'
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ require 'rails/test_help'
6
+ require 'workarea/test_help'
7
+
8
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
9
+ # to be shown.
10
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
@@ -0,0 +1,19 @@
1
+ $:.push File.expand_path("lib", __dir__)
2
+
3
+ # Maintain your gem's version:
4
+ require "workarea/youtube_playlists/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "workarea-youtube_playlists"
9
+ spec.version = Workarea::YoutubePlaylists::VERSION
10
+ spec.authors = ["Gunasekaran.Raja"]
11
+ spec.email = ["guna.r@trikatechnologies.com"]
12
+ spec.summary = "Summary of YoutubePlaylists."
13
+ spec.description = "Description of YoutubePlaylists."
14
+ spec.license = "Business Software License"
15
+
16
+ spec.files = `git ls-files`.split("\n")
17
+
18
+ spec.add_dependency 'workarea', '~> 3.x'
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-youtube_playlists
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gunasekaran.Raja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -30,7 +30,93 @@ email:
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
- files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - LICENSE
37
+ - README.md
38
+ - Rakefile
39
+ - app/assets/images/workarea/admin/youtube_playlists/.keep
40
+ - app/assets/images/workarea/admin/youtube_playlists/content_block_types/youtube_playlists.svg
41
+ - app/assets/images/workarea/storefront/youtube_playlists/.keep
42
+ - app/assets/javascripts/workarea/admin/youtube_playlists/.keep
43
+ - app/assets/javascripts/workarea/storefront/youtube_playlists/.keep
44
+ - app/assets/stylesheets/workarea/admin/youtube_playlists/.keep
45
+ - app/assets/stylesheets/workarea/storefront/youtube_playlists/.keep
46
+ - app/assets/stylesheets/workarea/storefront/youtube_playlists/_list.scss
47
+ - app/controllers/.keep
48
+ - app/controllers/workarea/admin/youtube_videos_controller.rb
49
+ - app/controllers/workarea/storefront/youtube_videos.rb
50
+ - app/helpers/.keep
51
+ - app/mailers/.keep
52
+ - app/models/.keep
53
+ - app/models/workarea/content/fields/playlist.rb
54
+ - app/view_models/workarea/storefront/content_blocks/youtube_playlists_view_model.rb
55
+ - app/views/.keep
56
+ - app/views/workarea/admin/content_blocks/_playlist.html.haml
57
+ - app/views/workarea/admin/youtube_videos/index.html.haml
58
+ - app/views/workarea/admin/youtube_videos/index.json.jbuilder
59
+ - app/views/workarea/storefront/content_blocks/_youtube_playlists.html.haml
60
+ - app/views/workarea/storefront/youtube_videos/_pagination.html.haml
61
+ - app/views/workarea/storefront/youtube_videos/_summary.html.haml
62
+ - app/views/workarea/storefront/youtube_videos/index.html.haml
63
+ - app/views/workarea/storefront/youtube_videos/show.haml
64
+ - bin/rails
65
+ - config/initializers/appends.rb
66
+ - config/initializers/workarea.rb
67
+ - config/initializers/youtube_configurations.rb
68
+ - config/initializers/youtube_content_block_types.rb
69
+ - config/locales/en.yml
70
+ - config/routes.rb
71
+ - lib/workarea/youtube_playlists.rb
72
+ - lib/workarea/youtube_playlists/engine.rb
73
+ - lib/workarea/youtube_playlists/version.rb
74
+ - test/dummy/.ruby-version
75
+ - test/dummy/Rakefile
76
+ - test/dummy/app/assets/config/manifest.js
77
+ - test/dummy/app/assets/images/.keep
78
+ - test/dummy/app/assets/stylesheets/application.css
79
+ - test/dummy/app/controllers/application_controller.rb
80
+ - test/dummy/app/controllers/concerns/.keep
81
+ - test/dummy/app/helpers/application_helper.rb
82
+ - test/dummy/app/javascript/packs/application.js
83
+ - test/dummy/app/jobs/application_job.rb
84
+ - test/dummy/app/mailers/application_mailer.rb
85
+ - test/dummy/app/models/concerns/.keep
86
+ - test/dummy/app/views/layouts/application.html.erb
87
+ - test/dummy/app/views/layouts/mailer.html.erb
88
+ - test/dummy/app/views/layouts/mailer.text.erb
89
+ - test/dummy/bin/rails
90
+ - test/dummy/bin/rake
91
+ - test/dummy/bin/setup
92
+ - test/dummy/config.ru
93
+ - test/dummy/config/application.rb
94
+ - test/dummy/config/boot.rb
95
+ - test/dummy/config/environment.rb
96
+ - test/dummy/config/environments/development.rb
97
+ - test/dummy/config/environments/production.rb
98
+ - test/dummy/config/environments/test.rb
99
+ - test/dummy/config/initializers/application_controller_renderer.rb
100
+ - test/dummy/config/initializers/assets.rb
101
+ - test/dummy/config/initializers/backtrace_silencers.rb
102
+ - test/dummy/config/initializers/content_security_policy.rb
103
+ - test/dummy/config/initializers/cookies_serializer.rb
104
+ - test/dummy/config/initializers/filter_parameter_logging.rb
105
+ - test/dummy/config/initializers/inflections.rb
106
+ - test/dummy/config/initializers/mime_types.rb
107
+ - test/dummy/config/initializers/workarea.rb
108
+ - test/dummy/config/initializers/wrap_parameters.rb
109
+ - test/dummy/config/locales/en.yml
110
+ - test/dummy/config/puma.rb
111
+ - test/dummy/config/routes.rb
112
+ - test/dummy/config/spring.rb
113
+ - test/dummy/db/seeds.rb
114
+ - test/dummy/lib/assets/.keep
115
+ - test/dummy/log/.keep
116
+ - test/teaspoon_env.rb
117
+ - test/test_helper.rb
118
+ - workarea-youtube_playlists-0.1.0.gem
119
+ - workarea-youtube_playlists.gemspec
34
120
  homepage:
35
121
  licenses:
36
122
  - Business Software License