lib/rack/dev-mark.rb in rack-dev-mark-0.4.5 vs lib/rack/dev-mark.rb in rack-dev-mark-0.4.6
- old
+ new
@@ -9,11 +9,19 @@
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)