class LockDiff::Github::Content
Constants
- CHANGE_LOG_CANDIDATES
Public Class Methods
new(content)
click to toggle source
# File lib/lock_diff/github/content.rb, line 18 def initialize(content) @content = content end
Public Instance Methods
change_log?()
click to toggle source
# File lib/lock_diff/github/content.rb, line 22 def change_log? file? && CHANGE_LOG_CANDIDATES.any? do |candidate| normalized_name.start_with?(candidate) end end
Private Instance Methods
file?()
click to toggle source
# File lib/lock_diff/github/content.rb, line 34 def file? @content.type == 'file' end
normalized_name()
click to toggle source
# File lib/lock_diff/github/content.rb, line 30 def normalized_name @normalized_name ||= name.downcase.delete('_') end