Sha256: b8521ad5102eae71fb5e052d48b2f7ec825509e0b050ac5e9c3c19145ec674c1

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

module QED

  # Access to project metadata.
  def self.metadata
    @metadata ||= (
      require 'yaml'
      YAML.load(File.new(File.dirname(__FILE__) + '/qed.yml')) rescue {}
    )
  end

  # Access to project metadata as constants.
  def self.const_missing(name)
    key = name.to_s.downcase
    metadata[key] || super(name)
  end

  # TODO: Only b/c of Ruby 1.8.x bug.
  VERSION = metadata['version']

end

require 'qed/session'
require 'qed/document'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
qed-2.9.2 lib/qed.rb
qed-2.9.1 lib/qed.rb
qed-2.9.0 lib/qed.rb
qed-2.8.8 lib/qed.rb
qed-2.8.7 lib/qed.rb
qed-2.8.6 lib/qed.rb
qed-2.8.5 lib/qed.rb
qed-2.8.4 lib/qed.rb
qed-2.8.3 lib/qed.rb
qed-2.8.2 lib/qed.rb
qed-2.8.1 lib/qed.rb
qed-2.8.0 lib/qed.rb
qed-2.7.0 lib/qed.rb