Sha256: 2291f6af1660cd42990487cf181ef9b7fa43a63d52055bdbe0641bb45afc74c0

Contents?: true

Size: 613 Bytes

Versions: 9

Compression:

Stored size: 613 Bytes

Contents

# -*- encoding : utf-8 -*-
require File.expand_path( '../../wagn', __FILE__ )

module Wagn
  module Version
    class << self
      
      def release
        @@version ||= File.read( File.expand_path '../../../VERSION', __FILE__ ).strip
      end
    
      def schema type=nil
        File.read( schema_stamp_path type ).strip
      end
    
      def schema_stamp_path type
        suffix = type.to_s =~ /card/ ? '_cards' : ''
        File.join schema_stamp_dir, "/version#{ suffix }.txt"  
      end
    
      def schema_stamp_dir
        File.join Wagn.gem_root, 'config'
      end
      
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wagn-1.13.0.pre2 lib/wagn/version.rb
wagn-1.13.0.pre1 lib/wagn/version.rb
wagn-1.13.0.pre lib/wagn/version.rb
wagn-1.12.13 lib/wagn/version.rb
wagn-1.12.12 lib/wagn/version.rb
wagn-1.12.11 lib/wagn/version.rb
wagn-1.12.10 lib/wagn/version.rb
wagn-1.12.9 lib/wagn/version.rb
wagn-1.12.8 lib/wagn/version.rb