Sha256: 6f2d982c272c225e59b54280ee7243a78655f9e3488dc179c26eada07bf45f85

Contents?: true

Size: 495 Bytes

Versions: 7

Compression:

Stored size: 495 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).chop.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() [MAJOR, MINOR, TINY] end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sparql-0.3.3 lib/sparql/version.rb
sparql-0.3.2 lib/sparql/version.rb
sparql-0.3.1 lib/sparql/version.rb
sparql-0.3.0 lib/sparql/version.rb
sparql-0.1.1 lib/sparql/version.rb
sparql-0.1.0 lib/sparql/version.rb
sparql-0.0.2 lib/sparql/version.rb