Sha256: 621b614e70d2448f3a7b4602de1aeb19844036f1bf00cbc72ad54266652d6495

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

module Refinery

  class << self
    attr_accessor :is_a_gem, :root, :s3_backend, :base_cache_key
    def is_a_gem
      @is_a_gem ||= false
    end

    def root
      @root ||= Pathname.new(File.dirname(__FILE__).split("vendor").first.to_s)
    end

    def s3_backend
      @s3_backend ||= false
    end

    def base_cache_key
      @base_cache_key ||= "refinery"
    end

    def version
      ::Refinery::Version.to_s
    end
  end

  class Version
    class << self
      attr_reader :major, :minor, :tiny, :build
    end

    @major = 0
    @minor = 9
    @tiny  = 7
    @build = 13

    def self.to_s
      [@major, @minor, @tiny, @build].compact.join('.')
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.7.13 vendor/plugins/refinery/lib/refinery.rb