acts_as_sanitizable 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 039f59a01b60676f42814c7636946e68143ef25c
4
- data.tar.gz: 74fabf362892b4a3554c1df5e71a13c734295f37
3
+ metadata.gz: afcaa339fb8223c02c4d2adb0cd01b79d98c740f
4
+ data.tar.gz: 0eb4bde3f8e6f1f61c48dac81b4af151db549ce2
5
5
  SHA512:
6
- metadata.gz: 83b7924cd9751da9fb8abc1c1631e451e043c16b8cf93b929bf0887a0cb4c190ba0557191fd663c33238bbbbfb764d312982f7e7159db65183feb3500eeb9d11
7
- data.tar.gz: 9ba4c00b23a14d3d5a1dd33318618f4c2d341a9edd1bb28356e1f79546b244b0e4e476a0a0e57ff9299cba5f79bae198a3ee27b45d5d6220f155a259bb89937e
6
+ metadata.gz: df5ae955376ccec15052d2ac59d9a5264bc80606c20d6e78a6db33c375d3cd3e7dd101208477ad4f2ae76da48b14775511b8880d808b8db536ca292a5f13b106
7
+ data.tar.gz: 3a4e23d60ee77a0df51c6ea96f0306716523a9c2401bc1e9e510e253504e637afa44d4750ad7f5ee16eeec81a80a50238b82c30832b5cbb3f1e942935ff4a823
data/README.md CHANGED
@@ -63,7 +63,7 @@ class User < ActiveRecord::Base
63
63
  end
64
64
  ```
65
65
 
66
- If you wish to not sanitize specific attributes on an inherited model you can call `skip_sanitization_on`. When you have been using a context in the sanitizer definition be sure to specify the same one when using `skip_sanitization_on`.
66
+ If you wish to not sanitize specific attributes on an inherited model you can call `skip_sanitization_of`. When you have been using a context in the sanitizer definition be sure to specify the same one when using `skip_sanitization_of`.
67
67
 
68
68
  ```ruby
69
69
  class Admin < User
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: acts_as_sanitizable 0.4.1 ruby lib
5
+ # stub: acts_as_sanitizable 0.4.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "acts_as_sanitizable"
9
- s.version = "0.4.1"
9
+ s.version = "0.4.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Christoph Chilian"]
14
- s.date = "2014-04-22"
14
+ s.date = "2014-05-07"
15
15
  s.description = "Sanitizable concern to sanitize attributes the way you like"
16
16
  s.email = "christoph@chilian.de"
17
17
  s.extra_rdoc_files = [
@@ -41,8 +41,8 @@ module Sanitizable
41
41
  end
42
42
 
43
43
  def skip_sanitization_of(*attribute_names)
44
+ options = attribute_names.extract_options!.assert_valid_keys(:on)
44
45
  if self.include?(Model)
45
- options = attribute_names.extract_options!.assert_valid_keys(:on)
46
46
  attribute_names = attribute_names.map(&:to_s)
47
47
  context = options[:on]
48
48
  sanitizable_attributes.delete_if do |attribute|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_sanitizable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Chilian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails