Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
pajapro committed Nov 16, 2018
1 parent db532eb commit 67dc199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/fastlane/plugin/changelog/actions/update_changelog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.run(params)
file.each_line do |line|
# 3. Ignore placeholder line (if provided) within the updated section
if found_identifying_section && !excluded_placeholder_line.nil?
if isSectionLine(line)
if is_section_line(line)
found_identifying_section = false # Reached the end of section, hence stop reading
else
if line =~ /^#{excluded_placeholder_line}/
Expand Down Expand Up @@ -75,7 +75,7 @@ def self.run(params)
UI.success("Successfuly updated #{changelog_path}")
end

def self.isSectionLine(line)
def self.is_section_line(line)
line =~ /\#{2}\s?\[.*\]/
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/changelog/helper/changelog_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Helper
### Added
- Your awesome new feature'

# TODO: ❗️ Add unit tests for methods in this class
# TODO: Add unit tests for methods in this class
class ChangelogHelper
# Ensures CHANGELOG.md exists at given path. If not, offers to create a default one.
# Returns path to CHANGELOG.md to be used
Expand Down

0 comments on commit 67dc199

Please sign in to comment.