Sha256: ef1560f32b71a1671b831a93c36c3ef1dcfb2b686fd20217afa45628dfa4690a
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module ApiDocServer VERSION = '1.0.0' 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.0 | lib/api_doc_server/version.rb |