Module: Whatsnew

Defined in:
lib/whatsnew.rb,
lib/whatsnew/cli.rb,
lib/whatsnew/project.rb,
lib/whatsnew/version.rb,
lib/whatsnew/constants.rb,
lib/whatsnew/news_file.rb,
lib/whatsnew/local_files.rb,
lib/whatsnew/no_news_file.rb,
lib/whatsnew/release_file.rb,
lib/whatsnew/remote_files.rb,
lib/whatsnew/local_news_file.rb

Defined Under Namespace

Classes: CLI, LocalFiles, LocalNewsFile, NewsFile, NoNewsFile, Project, ReleaseFile, RemoteFiles

Constant Summary collapse

VERSION =
"1.0.1".freeze
DOT =
".".freeze
DOT_GIT =
".git".freeze
EMPTY_STRING =
"".freeze
STAR =
"*".freeze
NOT_FOUND =
"NOT FOUND".freeze
FILES_TO_SEARCH_REGEXP =
%r{(CHANGE|CHANGES|CHANGELOG|NEWS|HISTORY|RELEASE_NOTES)}i.freeze

Class Method Summary collapse

Class Method Details

.about(path_or_repo, access_token = nil) ⇒ Object



16
17
18
# File 'lib/whatsnew.rb', line 16

def self.about(path_or_repo, access_token = nil)
  Project.new(path_or_repo, access_token).news_file
end