Sha256: 05c819ade8fb5310f8bf44acb17de8efe88f37b5f6784059c1e0ffe60537d8bc
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module ApiDocServer VERSION = '1.0.1' unless const_defined?(:VERSION) def self.version VERSION end def self.redoc_version @redoc_version ||= begin require 'json' lib = File.expand_path('..', __FILE__) root = File.expand_path File.join(lib, '..', '..') file = File.join(root, 'package.json') JSON.parse(File.read(file)) .fetch("dependencies") .fetch("redoc") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_doc_server-1.0.1 | lib/api_doc_server/version.rb |