lib/avm/git/auto_commit_path.rb in avm-tools-0.75.1 vs lib/avm/git/auto_commit_path.rb in avm-tools-0.76.0

- old
+ new

@@ -3,10 +3,11 @@ require 'eac_ruby_utils/core_ext' module Avm module Git class AutoCommitPath + require_sub __FILE__, include_modules: true enable_console_speaker common_constructor :git, :path do self.path = path.to_pathname end @@ -29,13 +30,10 @@ git.system!('add', '--', relative_path.to_path) git.system!('commit', '-m', commit_message, '--', relative_path.to_path) end def class_name - CLASS_NAME_PATTERNS.each do |pattern| - pattern.if_match(relative_path.to_path, false) { |m| return m[1].camelize } - end - raise "No pattern matched \"#{relative_path}\"" + ruby_class_name || relative_path.to_path end def commit_message r = class_name r += ': remove' unless path.file?