Sha256: 86b026253af9788f8c9a6e2e0648895762d9d4034b96d287f4a70a1a7892cd13

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 = 8

    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.8 vendor/refinerycms/refinery.rb