Sha256: dffb63fa0802ae4f1c5b22927b28d649558c71bf9e68dfb408d3809893d5f6a2
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
require 'rack' require 'rack/dev-mark/error' require 'rack/dev-mark/utils' require 'rack/dev-mark/theme' require 'rack/dev-mark/middleware' require 'rack/dev-mark/version' module Rack module DevMark def self.env @env ||= ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development' end def self.env=(env) @env = env end def self.revision @revision ||= (::File.open('REVISION') { |f| f.read.strip } rescue nil) end def self.revision=(revision) @revision = revision end end end require 'rack/dev-mark/railtie' if defined?(Rails)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-dev-mark-0.5.1 | lib/rack/dev-mark.rb |
rack-dev-mark-0.5.0 | lib/rack/dev-mark.rb |
rack-dev-mark-0.4.6 | lib/rack/dev-mark.rb |