Sha256: 332eff3e1f6f74c08cce17684b9e138ba92dc5bc3b88c0c8648db3855698d67c

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module RailsAdmin
  class Version
    MAJOR = 3
    MINOR = 0
    PATCH = 0
    PRE = 'rc3'.freeze

    class << self
      # @return [String]
      def to_s
        [MAJOR, MINOR, PATCH, PRE].compact.join('.')
      end

      def js
        JSON.parse(File.read("#{__dir__}/../../package.json"))['version']
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_admin-3.0.0.rc3 lib/rails_admin/version.rb