Module: Keepachangelog

Defined in:
lib/keepachangelog/cli.rb,
lib/keepachangelog/parser.rb,
lib/keepachangelog/printer.rb,
lib/keepachangelog/version.rb,
lib/keepachangelog/parser/yaml.rb,
lib/keepachangelog/printer/yaml.rb,
lib/keepachangelog/parser/markdown.rb,
lib/keepachangelog/printer/markdown.rb

Defined Under Namespace

Classes: CLI, MarkdownParser, MarkdownPrinter, Parser, Printer, YamlParser, YamlPrinter

Class Method Summary collapse

Class Method Details

.versionObject


4
5
6
7
8
9
# File 'lib/keepachangelog/version.rb', line 4

def self.version
  path = File.expand_path('../../package.json', File.dirname(__FILE__))
  file = File.read path
  json = JSON.parse file
  json['version']
end