Sha256: fbe9f576ee86a2f532e86037169ee37c9eb608dcc48d0112b3a595c425f4ed86

Contents?: true

Size: 700 Bytes

Versions: 2

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  # This module holds the RuboCop version information.
  module Version
    STRING = '0.85.0'

    MSG = '%<version>s (using Parser %<parser_version>s, '\
          'rubocop-ast %<rubocop_ast_version>s, ' \
          'running on %<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'

    def self.version(debug = false)
      if debug
        format(MSG, version: STRING, parser_version: Parser::VERSION,
                    rubocop_ast_version: RuboCop::AST::Version::STRING,
                    ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
                    ruby_platform: RUBY_PLATFORM)
      else
        STRING
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
rbhint-0.8.5.rc1 lib/rubocop/version.rb
rubocop-0.85.0 lib/rubocop/version.rb