From 1a289c872dd8172ba71ed760f3b13cf3313df533 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 19 Mar 2016 16:09:34 +0100 Subject: [PATCH] ParserFile: rename private method --- lib/github_changelog_generator/parser_file.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/github_changelog_generator/parser_file.rb b/lib/github_changelog_generator/parser_file.rb index d71a71b..f5097d4 100644 --- a/lib/github_changelog_generator/parser_file.rb +++ b/lib/github_changelog_generator/parser_file.rb @@ -19,7 +19,7 @@ module GitHubChangelogGenerator class ParserFile # @param options [Hash] options to be configured from file contents # @param file [nil,IO] configuration file handle, defaults to opening `.github_changelog_generator` - def initialize(options, file = read_default_file) + def initialize(options, file = open_settings_file) @options = options @file = file end @@ -35,7 +35,7 @@ module GitHubChangelogGenerator FILENAME = ".github_changelog_generator" - def read_default_file + def open_settings_file path = Pathname(File.expand_path(FILENAME)) File.open(path) if path.exist? end