From 5c432c3d0f1ba7f1e4c2827d63fdaa4e76b97bd9 Mon Sep 17 00:00:00 2001 From: uu59 Date: Fri, 4 Jul 2014 18:28:41 +0900 Subject: [PATCH] Don't record fluentd-ui gem update --- app/models/plugin.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/plugin.rb b/app/models/plugin.rb index 0d257ad..9da967c 100644 --- a/app/models/plugin.rb +++ b/app/models/plugin.rb @@ -22,6 +22,8 @@ class Plugin self.version ||= latest_version if valid? && gem_install + # NOTE: also updating fluentd-ui gem is used this method, that shouldn't be recorded + return true unless gem_name.start_with?("fluent-plugin-") File.open(gemfile_path, "a") do |f| f.puts format_gemfile end