Sha256: bd9eec43f88d8444d31821d41ed265e08cee7ac999afc14c59368eb50074217f

Contents?: true

Size: 493 Bytes

Versions: 11

Compression:

Stored size: 493 Bytes

Contents

module SPARQL
  module VERSION
    VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "VERSION")
    MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chomp.split(".")

    STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')

    ##
    # @return [String]
    def self.to_s() STRING end

    ##
    # @return [String]
    def self.to_str() STRING end

    ##
    # @return [Array(Integer, Integer, Integer)]
    def self.to_a() STRING.split(".") end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sparql-3.1.0 lib/sparql/version.rb
sparql-3.0.2 lib/sparql/version.rb
sparql-3.0.1 lib/sparql/version.rb
sparql-3.0.0 lib/sparql/version.rb
sparql-2.2.2 lib/sparql/version.rb
sparql-2.2.1 lib/sparql/version.rb
sparql-2.2.0 lib/sparql/version.rb
sparql-2.1.0 lib/sparql/version.rb
sparql-2.0.0 lib/sparql/version.rb
sparql-2.0.0.beta2 lib/sparql/version.rb
sparql-2.0.0.beta1 lib/sparql/version.rb