Default devmode to false, requiring it to be explicitly enabled.

Additionally, leave devmode behavior(s) separated from $DEBUG output.
2 files changed, 2 insertions(+), 15 deletions(-)

M lib/strelka/app.rb
M spec/strelka/app_spec.rb
M lib/strelka/app.rb +2 -3
@@ 32,7 32,7 @@ class Strelka::App < Mongrel2::Handler
 
 		##
 		# 'Developer mode' flag.
-		setting :devmode, default: true
+		setting :devmode, default: false
 
 	end
 

          
@@ 40,7 40,6 @@ class Strelka::App < Mongrel2::Handler
 	# Class instance variables
 	@devmode          = false
 	@default_type     = nil
-	@loading_file     = nil
 	@subclasses       = Hash.new {|h,k| h[k] = [] }
 
 

          
@@ 54,7 53,7 @@ class Strelka::App < Mongrel2::Handler
 	### Developer mode is mostly informational by default (it just makes logging more
 	### verbose), but plugins and such might alter their behavior based on this setting.
 	def self::devmode?
-		return @devmode || $DEBUG
+		return @devmode
 	end
 	singleton_method_alias :in_devmode?, :devmode?
 

          
M spec/strelka/app_spec.rb +0 -12
@@ 245,18 245,6 @@ RSpec.describe Strelka::App do
 		expect( @app ).to be_in_devmode()
 	end
 
-	it "configures itself to be in 'developer mode' if debugging is enabled" do
-		debugsetting = $DEBUG
-
-		begin
-			$DEBUG = true
-			@app.configure
-			expect( @app ).to be_in_devmode()
-		ensure
-			$DEBUG = debugsetting
-		end
-	end
-
 	it "closes async uploads with a 413 Request Entity Too Large by default" do
 		@req.headers.x_mongrel2_upload_start = 'an/uploaded/file/path'