Sha256: 22c45ae727b7e4a1e20853629c853dcada46eaca5610f30aed94f66496295c60

Contents?: true

Size: 1.16 KB

Versions: 88

Compression:

Stored size: 1.16 KB

Contents

# Copyright (C) 2015  Ruby-GNOME2 Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

module GLib
  module Version
    MAJOR = GLib::MAJOR_VERSION
    MINOR = GLib::MINOR_VERSION
    MICRO = GLib::MICRO_VERSION
    STRING = "#{MAJOR}.#{MINOR}.#{MICRO}"

    class << self
      def or_later?(major, minor, micro=nil)
        micro ||= 0
        version = [
          MAJOR,
          MINOR,
          MICRO,
        ]
        (version <=> [major, minor, micro]) >= 0
      end
    end

  end
end

Version data entries

88 entries across 80 versions & 2 rubygems

Version Path
glib2-3.3.0 lib/glib2/version.rb
glib2-3.2.9-x64-mingw32 lib/glib2/version.rb
glib2-3.2.9-x86-mingw32 lib/glib2/version.rb
glib2-3.2.9 lib/glib2/version.rb
glib2-3.2.8-x64-mingw32 lib/glib2/version.rb
glib2-3.2.8-x86-mingw32 lib/glib2/version.rb
glib2-3.2.8 lib/glib2/version.rb
glib2-3.2.7-x86-mingw32 lib/glib2/version.rb
glib2-3.2.7-x64-mingw32 lib/glib2/version.rb
glib2-3.2.7 lib/glib2/version.rb
glib2-3.2.6-x64-mingw32 lib/glib2/version.rb
glib2-3.2.6-x86-mingw32 lib/glib2/version.rb
glib2-3.2.6 lib/glib2/version.rb
glib2-3.2.5-x64-mingw32 lib/glib2/version.rb
glib2-3.2.5-x86-mingw32 lib/glib2/version.rb
glib2-3.2.5 lib/glib2/version.rb
glib2-3.2.4-x64-mingw32 lib/glib2/version.rb
glib2-3.2.4 lib/glib2/version.rb
glib2-3.2.4-x86-mingw32 lib/glib2/version.rb
glib2-3.2.3-x64-mingw32 lib/glib2/version.rb