lib/conf/default.rb in rsence-2.0.0.5.pre vs lib/conf/default.rb in rsence-2.0.0.6.pre

- old
+ new

@@ -1,7 +1,7 @@ #-- -## Riassence Framework +## RSence # Copyright 2008 Riassence Inc. # http://riassence.com/ # # You should have received a copy of the GNU General Public License along # with this software package. If not, contact licensing@riassence.com @@ -11,11 +11,17 @@ require 'rubygems' require 'rack' require 'yaml' if RUBY_VERSION.to_f >= 1.9 - Encoding.default_external = Encoding::ASCII_8BIT + # Encoding.default_external = Encoding::BINARY + # Encoding.default_internal = Encoding::BINARY + class String + def each + self.split($/).each { |e| yield e } + end + end end # Legacy: LIB_PATHS = [] PIDPATH = File.join(SERVER_PATH,'var','run') @@ -191,14 +197,19 @@ ].each do |broker_key, default_uri| unless config[:broker_urls].has_key?( broker_key ) config[:broker_urls][broker_key] = default_uri end end - + # if RUBY_VERSION.to_f >= 1.9 + # config[:no_gzip] = true + # end # The default address of the index_html plugin unless config[:index_html].has_key?(:respond_address) config[:index_html][:respond_address] = File.join(config[:base_url]) end + + config[:client_pkg][:no_obfuscation] = true if args[:client_pkg_no_obfuscation] + config[:client_pkg][:no_whitespace_removal] = true if args[:client_pkg_no_whitespace_removal] ## Uses the lib paths as search paths lib_paths.each do |lib_path| $LOAD_PATH << lib_path end