Module: Quvi::VERSION

Defined in:
lib/quvi/version.rb,
ext/quvi_ext/quvi_ext.c

Constant Summary collapse

MAJOR =
0
MINOR =
0
PATCH =
1
FULL =
[MAJOR, MINOR, PATCH].join(".").freeze
QUVI_VERSION =
rb_str_freeze(rb_external_str_new_cstr(quvi_version(QUVI_VERSION)))
QUVI_CONFIGURATION =
rb_str_freeze(rb_external_str_new_cstr(quvi_version(QUVI_VERSION_CONFIGURATION)))
QUVI_BUILD_CC_CFLAGS =
rb_str_freeze(rb_external_str_new_cstr(quvi_version(QUVI_VERSION_BUILD_CC_CFLAGS)))
QUVI_BUILD_TARGET =
rb_str_freeze(rb_external_str_new_cstr(quvi_version(QUVI_VERSION_BUILD_TARGET)))
QUVI_BUILD_TIME =
rb_str_freeze(rb_external_str_new_cstr(quvi_version(QUVI_VERSION_BUILD_TIME)))

Class Method Summary collapse

Class Method Details

.inspectObject



30
31
32
# File 'lib/quvi/version.rb', line 30

def self.inspect
  to_s.inspect
end

.to_hashObject Also known as: to_h



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/quvi/version.rb', line 12

def self.to_hash
  @version_hash ||= begin
                      require 'quvi_ext'
                      {
                        version: to_s,
                        quvi_version: QUVI_VERSION,
                        quvi_configuration: QUVI_CONFIGURATION,
                        quvi_build_cc_cflags: QUVI_BUILD_CC_CFLAGS,
                        quvi_build_target: QUVI_BUILD_TARGET,
                        quvi_build_time: QUVI_BUILD_TIME
                      }.freeze
                    end
end

.to_strObject Also known as: to_s



8
9
10
# File 'lib/quvi/version.rb', line 8

def self.to_str
  FULL
end