fanforce 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fanforce/utils.rb +3 -3
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/utils.rb
CHANGED
@@ -42,7 +42,7 @@ module Fanforce::Utils
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def remove_nil_values(hash)
|
45
|
-
hash.delete_if {|k,v| v.nil? }
|
45
|
+
hash.clone.delete_if {|k,v| v.nil? }
|
46
46
|
end
|
47
47
|
|
48
48
|
def collect_known_params(params)
|
@@ -63,11 +63,11 @@ module Fanforce::Utils
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def remove_internal_params(params)
|
66
|
-
params.delete_if { |k,v| [:app_id, :behavior_id, :module_id, :widget_id, :plugin_type, :plugin_id, :fanforce_id, :fanforce_slug, :api_key].include? k }
|
66
|
+
params.clone.delete_if { |k,v| [:app_id, :behavior_id, :module_id, :widget_id, :plugin_type, :plugin_id, :fanforce_id, :fanforce_slug, :api_key].include? k }
|
67
67
|
end
|
68
68
|
|
69
69
|
def remove_sensitive_params(params)
|
70
|
-
params.delete_if { |k,v| [:api_key].include? k }
|
70
|
+
params.clone.delete_if { |k,v| [:api_key].include? k }
|
71
71
|
end
|
72
72
|
|
73
73
|
def parse_url(raw_url)
|
data/lib/fanforce/version.rb
CHANGED