Sha256: cfc812fc6cd98dde2bb4d40072bfc0640d722ebaf0ee14f3184aaa6f84394541
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true module TidyJson class JtidyInfo # :nodoc: NOTICE = [ '#', '# jtidy is in no way affiliated with, nor based on, ', '# the HTML parser and pretty printer of the same name.', '#', '# More information is available here:', '# https://github.com/rdipardo/tidy_json#command-line-usage', '#' ].join("\n").freeze attr_reader :meta def initialize gem = Gem::Specification.find_by_name('tidy_json') @meta = { name: "# jtidy #{gem.version}", license: "# License: #{gem.license}", bugs: "# Bugs: #{gem.metadata['bug_tracker_uri']}", notice: NOTICE } end def to_s (@meta.values.join "\n").freeze end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tidy_json-0.5.2 | bin/jtidy_info.rb |
tidy_json-0.5.1 | bin/jtidy_info.rb |