params_cleaner 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,13 +3,12 @@ require "active_support/concern"
3
3
  require "active_support/core_ext/hash/deep_merge"
4
4
  require "active_support/core_ext/hash/slice"
5
5
  require "active_support/hash_with_indifferent_access"
6
- require "./lib/params_cleaner/whitelist"
6
+ require "params_cleaner/version"
7
+ require "params_cleaner/whitelist"
7
8
 
8
9
  module ParamsCleaner
9
10
  extend ActiveSupport::Concern
10
11
 
11
- VERSION = "0.4.1"
12
-
13
12
  def clean_params
14
13
  sanitized_params = _applicable_whitelists.map do |whitelist|
15
14
  whitelist.sanitize(params)
@@ -0,0 +1,3 @@
1
+ module ParamsCleaner
2
+ VERSION = "0.4.2"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: params_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -34,6 +34,7 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
+ - lib/params_cleaner/version.rb
37
38
  - lib/params_cleaner/whitelist.rb
38
39
  - lib/params_cleaner.rb
39
40
  homepage: https://github.com/drewolson/params_cleaner
@@ -50,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
51
  version: '0'
51
52
  segments:
52
53
  - 0
53
- hash: -4022608709745824800
54
+ hash: 2059744410745176612
54
55
  required_rubygems_version: !ruby/object:Gem::Requirement
55
56
  none: false
56
57
  requirements:
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  version: '0'
60
61
  segments:
61
62
  - 0
62
- hash: -4022608709745824800
63
+ hash: 2059744410745176612
63
64
  requirements: []
64
65
  rubyforge_project:
65
66
  rubygems_version: 1.8.24