From 75f37ac16a0277c1f6830b2140106a79e9afe310 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 21 Aug 2019 14:32:55 +0530 Subject: [PATCH] Rename `lazyYT` plugin directory name to `lazy-yt` --- .gitignore | 2 +- lib/plugin/metadata.rb | 2 +- lib/tasks/plugin.rake | 2 +- plugins/{lazyYT => lazy-yt}/README.md | 0 .../assets/javascripts/initializers/lazyYT.js.es6 | 0 plugins/{lazyYT => lazy-yt}/assets/javascripts/lazyYT.js | 0 plugins/{lazyYT => lazy-yt}/assets/stylesheets/lazyYT.css | 0 .../{lazyYT => lazy-yt}/assets/stylesheets/lazyYT_mobile.scss | 0 plugins/{lazyYT => lazy-yt}/plugin.rb | 2 +- 9 files changed, 4 insertions(+), 4 deletions(-) rename plugins/{lazyYT => lazy-yt}/README.md (100%) rename plugins/{lazyYT => lazy-yt}/assets/javascripts/initializers/lazyYT.js.es6 (100%) rename plugins/{lazyYT => lazy-yt}/assets/javascripts/lazyYT.js (100%) rename plugins/{lazyYT => lazy-yt}/assets/stylesheets/lazyYT.css (100%) rename plugins/{lazyYT => lazy-yt}/assets/stylesheets/lazyYT_mobile.scss (100%) rename plugins/{lazyYT => lazy-yt}/plugin.rb (99%) diff --git a/.gitignore b/.gitignore index bf341e74262..328093d7a09 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,7 @@ bootsnap-compile-cache/ # Ignore plugins except for the bundled ones. /plugins/* -!/plugins/lazyYT/ +!/plugins/lazy-yt/ !/plugins/poll/ !/plugins/discourse-details/ !/plugins/discourse-nginx-performance-report diff --git a/lib/plugin/metadata.rb b/lib/plugin/metadata.rb index 6de1a101ef0..09bf604c906 100644 --- a/lib/plugin/metadata.rb +++ b/lib/plugin/metadata.rb @@ -69,7 +69,7 @@ class Plugin::Metadata "discourse-yearly-review", "discourse-openid-connect", "docker_manager", - "lazyYT", + "lazy-yt", "poll" ]) diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake index 6d8935ddd8a..58b84ccfa04 100644 --- a/lib/tasks/plugin.rake +++ b/lib/tasks/plugin.rake @@ -7,7 +7,7 @@ task 'plugin:install_all_official' do skip = Set.new([ 'customer-flair', 'discourse-nginx-performance-report', - 'lazyYT', + 'lazy-yt', 'poll' ]) diff --git a/plugins/lazyYT/README.md b/plugins/lazy-yt/README.md similarity index 100% rename from plugins/lazyYT/README.md rename to plugins/lazy-yt/README.md diff --git a/plugins/lazyYT/assets/javascripts/initializers/lazyYT.js.es6 b/plugins/lazy-yt/assets/javascripts/initializers/lazyYT.js.es6 similarity index 100% rename from plugins/lazyYT/assets/javascripts/initializers/lazyYT.js.es6 rename to plugins/lazy-yt/assets/javascripts/initializers/lazyYT.js.es6 diff --git a/plugins/lazyYT/assets/javascripts/lazyYT.js b/plugins/lazy-yt/assets/javascripts/lazyYT.js similarity index 100% rename from plugins/lazyYT/assets/javascripts/lazyYT.js rename to plugins/lazy-yt/assets/javascripts/lazyYT.js diff --git a/plugins/lazyYT/assets/stylesheets/lazyYT.css b/plugins/lazy-yt/assets/stylesheets/lazyYT.css similarity index 100% rename from plugins/lazyYT/assets/stylesheets/lazyYT.css rename to plugins/lazy-yt/assets/stylesheets/lazyYT.css diff --git a/plugins/lazyYT/assets/stylesheets/lazyYT_mobile.scss b/plugins/lazy-yt/assets/stylesheets/lazyYT_mobile.scss similarity index 100% rename from plugins/lazyYT/assets/stylesheets/lazyYT_mobile.scss rename to plugins/lazy-yt/assets/stylesheets/lazyYT_mobile.scss diff --git a/plugins/lazyYT/plugin.rb b/plugins/lazy-yt/plugin.rb similarity index 99% rename from plugins/lazyYT/plugin.rb rename to plugins/lazy-yt/plugin.rb index bccee5331c6..3a60b5cb2eb 100644 --- a/plugins/lazyYT/plugin.rb +++ b/plugins/lazy-yt/plugin.rb @@ -4,7 +4,7 @@ # about: Uses the lazyYT plugin to lazy load Youtube videos # version: 1.0.1 # authors: Arpit Jalan -# url: https://github.com/discourse/discourse/tree/master/plugins/lazyYT +# url: https://github.com/discourse/discourse/tree/master/plugins/lazy-yt hide_plugin if self.respond_to?(:hide_plugin)