raygun4ruby 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 880e6dc1a2610cd344816502b0ff0b9c8025a48c
4
- data.tar.gz: 4c5be5b014cbbf39a9433a43a2cb36af56262832
3
+ metadata.gz: 80ada759d3d4ae7ad92f5228c4d802fe43f77280
4
+ data.tar.gz: eda49a02950403ce1d8db66a379848deb9de014b
5
5
  SHA512:
6
- metadata.gz: a5d1eaba8ca8a31a4e1b66b6444af7d478ac4e64bd3fff3629777ca513de4265ce3f64348c2dc97e27ef6051e960000be0cc295de803e43b067b998d4a320dd6
7
- data.tar.gz: 11a0d8f62960c06dfb43530a23df400f8d976e32ad97325a756acf7eaf6ecda321fd19b2c87b5665f21241e4db1a78a0b61ce18d39ccb854e0b95617b95060c7
6
+ metadata.gz: 8f39b4a45ec2e353cd1520f5dd688a40b7e39fbce62fac93c23b88a96cd8d7ee811c5f596bf0dd78ff31e61be3fc3e2920ca8d24ea7450b290da2d10c9045be7
7
+ data.tar.gz: 83576e29d1e5156219fadfa97924fcedb49543a6597ef79f9532c188a0cf45e4653cee43ed9417d9cdfd4c784dffcfdb5f2d7a6261e220b2b33c2c024ca58f26
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.2.1 (09/03/2017)
2
+
3
+ Bugfixes:
4
+ - dup input hashes before applying whitelist filtering, previously this was modifying the contents of `action_dispatch.request.parameters`
5
+
1
6
  ## 1.2.0 (09/03/2017)
2
7
 
3
8
  Features:
@@ -8,13 +8,17 @@ module Raygun
8
8
  private
9
9
 
10
10
  def filter_hash(whitelist, hash)
11
+ # dup the input so each level of the hash is dup'd
12
+ # not just the top as dup isn't deep
13
+ hash = hash.dup
14
+
11
15
  hash.each do |k, v|
12
16
  unless whitelist && (whitelist[k] || whitelist[k.to_sym])
13
17
  hash[k] = '[FILTERED]'
14
18
  end
15
19
 
16
20
  if v.is_a?(Hash) && whitelist[k].is_a?(Hash)
17
- filter_hash(whitelist[k], v)
21
+ hash[k] = filter_hash(whitelist[k], v)
18
22
  end
19
23
  end
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun4ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindscape
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-08 00:00:00.000000000 Z
12
+ date: 2017-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty