Sha256: fdcf42a7deafdb1ebc9d08042e7a2ea9f89509e56cfaf54166af72d65b1416be

Contents?: true

Size: 995 Bytes

Versions: 34

Compression:

Stored size: 995 Bytes

Contents

#--
# Copyright (c) 2008 Jeremy Hinegardner
# All rights reserved.  See LICENSE and/or COPYING for details.
#++
require 'amalgalite3'
module Amalgalite 
  module SQLite3
    module Version
      # Sqlite3 version number is equal to 
      # MAJOR * 1_000_000 + MINOR * 1_000 + RELEASE

      # major version number of the SQLite C library
      MAJOR   = (to_i / 1_000_000).freeze
      
      # minor version number of the SQLite C library
      MINOR   = ((to_i % 1_000_000) / 1_000).freeze
      
      # release version number of the SQLite C library
      RELEASE = (to_i % 1_000).freeze
   
      #
      # call-seq:
      #   Amalgalite::SQLite3::Version.to_a -> [ MAJOR, MINOR, RELEASE ]
      #
      # Return the SQLite C library version number as an array of MAJOR, MINOR,
      # RELEASE
      # 
      def self.to_a
        [ MAJOR, MINOR, RELEASE ]
      end

    end

    # Version of SQLite that ships with Amalgalite
    VERSION = Version.to_s.freeze
  end
  Version.freeze
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
amalgalite-0.2.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.1.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.2.2 lib/amalgalite/sqlite3/version.rb
amalgalite-0.2.3 lib/amalgalite/sqlite3/version.rb
amalgalite-0.2.1 lib/amalgalite/sqlite3/version.rb
amalgalite-0.2.4 lib/amalgalite/sqlite3/version.rb
amalgalite-0.4.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.4.1 lib/amalgalite/sqlite3/version.rb
amalgalite-0.5.0-x86-mswin32-60 lib/amalgalite/sqlite3/version.rb
amalgalite-0.4.2 lib/amalgalite/sqlite3/version.rb
amalgalite-0.4.2-x86-mswin32-60 lib/amalgalite/sqlite3/version.rb
amalgalite-0.5.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.5.1 lib/amalgalite/sqlite3/version.rb
amalgalite-0.5.1-x86-mswin32-60 lib/amalgalite/sqlite3/version.rb
amalgalite-0.7.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.6.0-x86-mswin32-60 lib/amalgalite/sqlite3/version.rb
amalgalite-0.7.0-x86-mswin32-60 lib/amalgalite/sqlite3/version.rb
amalgalite-0.6.0 lib/amalgalite/sqlite3/version.rb
amalgalite-0.7.3 lib/amalgalite/sqlite3/version.rb
amalgalite-0.7.1 lib/amalgalite/sqlite3/version.rb