Sha256: 57868ea0f62ddb494dab385941bed734197ce98b995568fb1d7690b7f66407c3

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 KB

Contents

# XDG Base Directory Standard
#
# This provides a conveient library for conforming to the
# XDG Base Directory Standard.
#
#   http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
#
# Some important clarifications, not made clear by the above specification. 
#
# The data directories are for "read-only" files. In other words once
# something is put there, it should only be read, and never written to
# by a program. (Generally speaking only users or package managers should
# be adding, changing or removing files from the data locations.)
#
# The config locations are where you store files that may change,
# and effect your applications depending on their content. This is like
# etc/ in the FHS, but alterable by end users and end user programs,
# not just root and sudo admin scripts.
#
# The cache locations stores files that could just as well be deleted
# and everything would still work fine. This is for variable and
# temporary files. Much like var/ and tmp/ in FHS.
#
# The module returns all paths as String.
#
module XDG
  if RUBY_VERSION > '1.9'
    require_relative 'xdg/version'
    require_relative 'xdg/base_dir'
    require_relative 'xdg/base_dir/extended'
    require_relative 'xdg/base_dir/mixin'
  else
    require 'xdg/version'
    require 'xdg/base_dir'
    require 'xdg/base_dir/extended'
    require 'xdg/base_dir/mixin'
  end

  #
  def self.[](*env_path)
    BaseDir.new(*env_path)
  end
end

# Copyright (c) 2008,2011 Thomas Sawyer
# Distributed under the terms of the APACHE 2.0 license.

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
maid-xdg-2.2.1.2 lib/xdg.rb
xdg-2.2.2 lib/xdg.rb
xdg-2.2.1 lib/xdg.rb
xdg-2.2.0 lib/xdg.rb
xdg-2.1.0 lib/xdg.rb
xdg-2.0.0 lib/xdg.rb