From dad465b592ff4cb7eb5f77abeec1bddbf498ad5e Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 13 Nov 2022 10:56:54 +0800 Subject: [PATCH 1/2] Fix bug. --- app/controllers/seminars_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/seminars_controller.rb b/app/controllers/seminars_controller.rb index cbe5d65..7e0b634 100644 --- a/app/controllers/seminars_controller.rb +++ b/app/controllers/seminars_controller.rb @@ -4,7 +4,7 @@ class SeminarsController < ApplicationController include MemberHelper include ActionView::Context #vary important (only add this can access @@session from view) include Admin::SeminarsHelper - FrontendMethods = ["show_privacy", "show_data", "check_email", "check_availability", "signup_ok", "edit_file", "con_login", "con_upload", "con_logout"] + FrontendMethods = ["show_privacy", "show_data", "check_email", "check_availability", "signup_ok", "add_file", "edit_file", "con_login", "con_upload", "con_logout"] # include SimpleCaptcha::ControllerHelpers def index From ccbe87bb111506a20e60598a752f6cf9f7529817 Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 13 Nov 2022 11:05:41 +0800 Subject: [PATCH 2/2] Change gemspec. --- seminar.gemspec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/seminar.gemspec b/seminar.gemspec index c68cb5a..ad6ef40 100644 --- a/seminar.gemspec +++ b/seminar.gemspec @@ -83,17 +83,14 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["Rulingcom"] - s.date = "2019-11-19" + s.date = "2022-11-13" s.description = "Seminar plugin." s.email = ["orbit@rulingcom.com"] - s.files = ["MIT-LICENSE", "README.rdoc", "Rakefile", "app/assets/javascripts/check_seminar_set_items.js.erb", "app/assets/javascripts/field-forms.js", "app/assets/javascripts/seminar.js.coffee", "app/assets/javascripts/seminar_sets.js", "app/assets/stylesheets/seminar.css.scss", "app/assets/stylesheets/seminar_sets.css", "app/controllers/admin/seminar_agreements_controller.rb", "app/controllers/admin/seminar_item_contents_controller.rb", "app/controllers/admin/seminar_items_controller.rb", "app/controllers/admin/seminar_signups_controller.rb", "app/controllers/admin/seminars_controller.rb", "app/controllers/seminars_controller.rb", "app/helpers/admin/seminars_field_helper.rb", "app/helpers/admin/seminars_helper.rb", "app/helpers/admin/seminars_values_helper.rb", "app/models/seminar_agreement.rb", "app/models/seminar_file.rb", "app/models/seminar_item.rb", "app/models/seminar_item_content.rb", "app/models/seminar_link.rb", "app/models/seminar_main.rb", "app/models/seminar_review.rb", "app/models/seminar_signup.rb", "app/models/seminar_signup_contribute.rb", "app/models/seminar_signup_field.rb", "app/models/seminar_signup_value.rb", "app/views/admin/seminar_agreements", "app/views/admin/seminar_agreements/index.html.erb", "app/views/admin/seminar_item_contents", "app/views/admin/seminar_item_contents/_form.html.erb", "app/views/admin/seminar_item_contents/edit.html.erb", "app/views/admin/seminar_item_contents/index.html.erb", "app/views/admin/seminar_item_contents/new.html.erb", "app/views/admin/seminar_items", "app/views/admin/seminar_items/_delete_modal.html.erb", "app/views/admin/seminar_items/_form.html.erb", "app/views/admin/seminar_items/_index.html.erb", "app/views/admin/seminar_items/_item.html.erb", "app/views/admin/seminar_items/index.html.erb", "app/views/admin/seminar_items/index.js.erb", "app/views/admin/seminar_signups", "app/views/admin/seminar_signups/edit.html.erb", "app/views/admin/seminars", "app/views/admin/seminars/_attribute_field.html.erb", "app/views/admin/seminars/_form.html.erb", "app/views/admin/seminars/_form_file.html.erb", "app/views/admin/seminars/_form_link.html.erb", "app/views/admin/seminars/_index.html.erb", "app/views/admin/seminars/_support_member_form_js.erb", "app/views/admin/seminars/edit.html.erb", "app/views/admin/seminars/export.xlsx.axlsx", "app/views/admin/seminars/index.html.erb", "app/views/admin/seminars/new.html.erb", "app/views/admin/seminars/seminar_item_content.html.erb", "app/views/admin/seminars/seminar_signup.html.erb", "app/views/admin/seminars/seminar_signup_field.html.erb", "app/views/seminars", "app/views/seminars/add_file.html.erb", "app/views/seminars/check_availability.html.erb", "app/views/seminars/check_email.html.erb", "app/views/seminars/con_login.html.erb", "app/views/seminars/con_logout.html.erb", "app/views/seminars/con_upload.html.erb", "app/views/seminars/edit_file.html.erb", "app/views/seminars/index.html.erb", "app/views/seminars/show.html.erb", "app/views/seminars/show_data.html.erb", "app/views/seminars/show_privacy.html.erb", "app/views/seminars/signup_ok.html.erb", "app/views/simple_captcha", "app/views/simple_captcha/_simple_captcha.erb", "config/locales/en.yml", "config/locales/zh_tw.yml", "config/routes.rb", "lib/seminar", "lib/seminar.rb", "lib/seminar/engine.rb", "lib/seminar/version.rb", "lib/tasks/seminar_tasks.rake", "test/controllers/seminar_controller_test.rb", "test/dummy", "test/dummy/README.rdoc", "test/dummy/Rakefile", "test/dummy/app", "test/dummy/app/assets", "test/dummy/app/assets/images", "test/dummy/app/assets/javascripts", "test/dummy/app/assets/javascripts/application.js", "test/dummy/app/assets/stylesheets", "test/dummy/app/assets/stylesheets/application.css", "test/dummy/app/controllers", "test/dummy/app/controllers/application_controller.rb", "test/dummy/app/controllers/concerns", "test/dummy/app/helpers", "test/dummy/app/helpers/application_helper.rb", "test/dummy/app/mailers", "test/dummy/app/models", "test/dummy/app/models/concerns", "test/dummy/app/views", "test/dummy/app/views/layouts", "test/dummy/app/views/layouts/application.html.erb", "test/dummy/bin", "test/dummy/bin/bundle", "test/dummy/bin/rails", "test/dummy/bin/rake", "test/dummy/config", "test/dummy/config.ru", "test/dummy/config/application.rb", "test/dummy/config/boot.rb", "test/dummy/config/database.yml", "test/dummy/config/environment.rb", "test/dummy/config/environments", "test/dummy/config/environments/development.rb", "test/dummy/config/environments/production.rb", "test/dummy/config/environments/test.rb", "test/dummy/config/initializers", "test/dummy/config/initializers/assets.rb", "test/dummy/config/initializers/backtrace_silencers.rb", "test/dummy/config/initializers/cookies_serializer.rb", "test/dummy/config/initializers/filter_parameter_logging.rb", "test/dummy/config/initializers/inflections.rb", "test/dummy/config/initializers/mime_types.rb", "test/dummy/config/initializers/session_store.rb", "test/dummy/config/initializers/wrap_parameters.rb", "test/dummy/config/locales", "test/dummy/config/locales/en.yml", "test/dummy/config/routes.rb", "test/dummy/config/secrets.yml", "test/dummy/lib", "test/dummy/lib/assets", "test/dummy/log", "test/dummy/public", "test/dummy/public/404.html", "test/dummy/public/422.html", "test/dummy/public/500.html", "test/dummy/public/favicon.ico", "test/helpers/seminar_helper_test.rb", "test/seminar_test.rb", "test/test_helper.rb"] + s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.homepage = "http://www.rulingcom.com" s.licenses = ["MIT"] - s.rubygems_version = "2.2.2" s.summary = "Seminar plugin." - s.test_files = ["test/dummy", "test/dummy/app", "test/dummy/app/assets", "test/dummy/app/assets/javascripts", "test/dummy/app/assets/javascripts/application.js", "test/dummy/app/assets/images", "test/dummy/app/assets/stylesheets", "test/dummy/app/assets/stylesheets/application.css", "test/dummy/app/models", "test/dummy/app/models/concerns", "test/dummy/app/helpers", "test/dummy/app/helpers/application_helper.rb", "test/dummy/app/mailers", "test/dummy/app/views", "test/dummy/app/views/layouts", "test/dummy/app/views/layouts/application.html.erb", "test/dummy/app/controllers", "test/dummy/app/controllers/concerns", "test/dummy/app/controllers/application_controller.rb", "test/dummy/config", "test/dummy/config/routes.rb", "test/dummy/config/environments", "test/dummy/config/environments/test.rb", "test/dummy/config/environments/development.rb", "test/dummy/config/environments/production.rb", "test/dummy/config/initializers", "test/dummy/config/initializers/assets.rb", "test/dummy/config/initializers/session_store.rb", "test/dummy/config/initializers/wrap_parameters.rb", "test/dummy/config/initializers/filter_parameter_logging.rb", "test/dummy/config/initializers/inflections.rb", "test/dummy/config/initializers/mime_types.rb", "test/dummy/config/initializers/backtrace_silencers.rb", "test/dummy/config/initializers/cookies_serializer.rb", "test/dummy/config/secrets.yml", "test/dummy/config/boot.rb", "test/dummy/config/environment.rb", "test/dummy/config/database.yml", "test/dummy/config/application.rb", "test/dummy/config/locales", "test/dummy/config/locales/en.yml", "test/dummy/public", "test/dummy/public/500.html", "test/dummy/public/422.html", "test/dummy/public/404.html", "test/dummy/public/favicon.ico", "test/dummy/bin", "test/dummy/bin/rake", "test/dummy/bin/rails", "test/dummy/bin/bundle", "test/dummy/lib", "test/dummy/lib/assets", "test/dummy/config.ru", "test/dummy/Rakefile", "test/dummy/README.rdoc", "test/dummy/log", "test/seminar_test.rb", "test/helpers/seminar_helper_test.rb", "test/test_helper.rb", "test/controllers/seminar_controller_test.rb"] - - s.installed_by_version = "2.2.2" if s.respond_to? :installed_by_version + s.test_files = Dir["test/**/*"] s.add_dependency "custom_announcement" s.add_dependency "custom_gallery" end