Sha256: 08414a884ee140cb43c2f6dad5f31e60642316992d0f44d232d279da0346289b

Contents?: true

Size: 724 Bytes

Versions: 1

Compression:

Stored size: 724 Bytes

Contents

require 'rbconfig'

module Refinery

  WINDOWS = !!(RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!)

  class << self
    attr_accessor :root, :s3_backend, :base_cache_key

    def root
      @root ||= Pathname.new(File.expand_path(__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
    @major = 0
    @minor = 9
    @tiny  = 8
    @build = 5

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-0.9.8.5 vendor/refinerycms/refinery.rb