[前][次][番号順一覧][スレッド一覧]

ruby-changes:56673

From: Hiroshi <ko1@a...>
Date: Sat, 27 Jul 2019 16:47:55 +0900 (JST)
Subject: [ruby-changes:56673] Hiroshi SHIBATA: 012d39c4e6 (master): Added ignore files to sync_default_gems_with_commits and make constant them.

https://git.ruby-lang.org/ruby.git/commit/?id=012d39c4e6

From 012d39c4e658f251f691c8a1dba462c937dbac67 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 27 Jul 2019 10:23:47 +0800
Subject: Added ignore files to sync_default_gems_with_commits and make
 constant them.


diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index cb9492f..408614f 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -228,6 +228,8 @@ def sync_default_gems(gem) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L228
   end
 end
 
+IGNORE_FILE_PATTERN = /(\.travis.yml|appveyor\.yml|azure\-pipelines\.yml|\.gitignore|Gemfile|README\.md|History\.txt|Rakefile|CODE_OF_CONDUCT\.md)/
+
 def sync_default_gems_with_commits(gem, range)
   puts "Sync #{$repositories[gem.to_sym]} with commit history."
 
@@ -250,7 +252,7 @@ def sync_default_gems_with_commits(gem, range) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L252
     IO.popen(%W"git diff-tree --no-commit-id --name-only -r #{sha}") do |f|
       files = f.read.split("\n")
     end
-    subject =~ /^Merge/ || files.all?{|file| file =~ /(\.travis.yml|appveyor\.yml|azure\-pipelines\.yml|\.gitignore|Gemfile|README\.md)/}
+    subject =~ /^Merge/ || files.all?{|file| file =~ IGNORE_FILE_PATTERN}
   end
 
   puts "Try to pick these commits:"
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]