lib/httplog/configuration.rb in httplog-1.2.2 vs lib/httplog/configuration.rb in httplog-1.3.0
- old
+ new
@@ -18,11 +18,12 @@
:url_whitelist_pattern,
:url_blacklist_pattern,
:color,
:prefix_data_lines,
:prefix_response_lines,
- :prefix_line_numbers
+ :prefix_line_numbers,
+ :filter_parameters
def initialize
@enabled = true
@compact_log = false
@json_log = false
@@ -40,14 +41,9 @@
@url_blacklist_pattern = nil
@color = false
@prefix_data_lines = false
@prefix_response_lines = false
@prefix_line_numbers = false
- end
-
- # TODO: remove in 1.0.0
- def []=(key, value)
- warn 'DEPRECATION WARNING: Assignment to HttpLog.options will be removed in version 1.0.0. Please use HttpLog.configure block instead as described here: https://github.com/trusche/httplog#configuration'
- send("#{key}=", value)
+ @filter_parameters = []
end
end
end