Sha256: edf101cad94193f479d2e20c466379787046f0716ce246408aedcb1bcf34d1e6

Contents?: true

Size: 968 Bytes

Versions: 4

Compression:

Stored size: 968 Bytes

Contents

class Yakg
  module Misc
    def self.get_abi
      if RUBY_VERSION.match /^1\.8/
        "1.8"
      elsif RUBY_VERSION.match /^1\.9/
        "1.9.1"
      elsif RUBY_VERSION.match /^2\./
        RUBY_VERSION.sub /\A(\d\.\d).*\z/, '\1.0'
      end
    end

    VENDOR_GEM_DIR =
      File.expand_path(File.join(File.dirname(__FILE__),
                                 "..", "vendor", "gems", "ruby", get_abi))
  end
end

require "yakg/backend"

class Yakg
  @@DEFAULT_SERVICE_NAME = "ruby-yakg-gem"
  def self.DEFAULT_SERVICE_NAME= x; @@DEFAULT_SERVICE_NAME = x; end
  def self.DEFAULT_SERVICE_NAME ; @@DEFAULT_SERVICE_NAME; end

  def self.set acct, value, svc=@@DEFAULT_SERVICE_NAME
    Backend.set acct, value, svc
  end

  def self.get acct, svc=@@DEFAULT_SERVICE_NAME
    Backend.get acct, svc
  end

  def self.unset acct, svc=@@DEFAULT_SERVICE_NAME
    Backend.delete acct, svc
  end

  def self.list svc=@@DEFAULT_SERVICE_NAME
    Backend.list svc
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yakg-0.1.11 lib/yakg.rb
yakg-0.1.10 lib/yakg.rb
yakg-0.1.9 lib/yakg.rb
yakg-0.1.8 lib/yakg.rb