acts_as_sanitizable 0.4.0 → 0.4.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: 5e4317192c5b23b320ebbce26cf6e9ba1962a66e
4
- data.tar.gz: 3b676779bf3852f8a05d9e178396497dd17fb779
3
+ metadata.gz: 039f59a01b60676f42814c7636946e68143ef25c
4
+ data.tar.gz: 74fabf362892b4a3554c1df5e71a13c734295f37
5
5
  SHA512:
6
- metadata.gz: ce11693621154504f735c5ab69cd64fa03954e2bf003a5e9dbfbeb1efda2e55b9bfcccf30851afd3bf3814ce6082da86f7e4dda41f710566fac4576cabdf0289
7
- data.tar.gz: 1f42baef78fa388c8f0925ede8bdeac70b005b2d71856a8318bc22bc16767ab031e45f5588e34574237c4598631a8182638b767738bd7e3bec0732e2db8b1b73
6
+ metadata.gz: 83b7924cd9751da9fb8abc1c1631e451e043c16b8cf93b929bf0887a0cb4c190ba0557191fd663c33238bbbbfb764d312982f7e7159db65183feb3500eeb9d11
7
+ data.tar.gz: 9ba4c00b23a14d3d5a1dd33318618f4c2d341a9edd1bb28356e1f79546b244b0e4e476a0a0e57ff9299cba5f79bae198a3ee27b45d5d6220f155a259bb89937e
data/Gemfile CHANGED
@@ -17,4 +17,5 @@ group :development do
17
17
  gem "simplecov", ">= 0"
18
18
  gem "activerecord", ">= 2.3.5"
19
19
  gem "activemodel", ">= 3.0.0"
20
+ gem 'coveralls', require: false
20
21
  end
data/Gemfile.lock CHANGED
@@ -30,6 +30,12 @@ GEM
30
30
  addressable (2.3.6)
31
31
  arel (5.0.1.20140414130214)
32
32
  builder (3.2.2)
33
+ coveralls (0.7.0)
34
+ multi_json (~> 1.3)
35
+ rest-client
36
+ simplecov (>= 0.7)
37
+ term-ansicolor
38
+ thor
33
39
  descendants_tracker (0.0.4)
34
40
  thread_safe (~> 0.3, >= 0.3.1)
35
41
  diff-lcs (1.2.5)
@@ -101,6 +107,8 @@ GEM
101
107
  rake (10.2.2)
102
108
  rdoc (3.12.2)
103
109
  json (~> 1.4)
110
+ rest-client (1.6.7)
111
+ mime-types (>= 1.16)
104
112
  rspec (2.14.1)
105
113
  rspec-core (~> 2.14.0)
106
114
  rspec-expectations (~> 2.14.0)
@@ -138,9 +146,12 @@ GEM
138
146
  activesupport (>= 3.0)
139
147
  sprockets (~> 2.8)
140
148
  sqlite3 (1.3.9)
149
+ term-ansicolor (1.3.0)
150
+ tins (~> 1.0)
141
151
  thor (0.19.1)
142
152
  thread_safe (0.3.3)
143
153
  tilt (1.4.1)
154
+ tins (1.1.0)
144
155
  treetop (1.4.15)
145
156
  polyglot
146
157
  polyglot (>= 0.3.1)
@@ -154,6 +165,7 @@ DEPENDENCIES
154
165
  activemodel (>= 3.0.0)
155
166
  activerecord (>= 2.3.5)
156
167
  bundler (~> 1.0)
168
+ coveralls
157
169
  jeweler (~> 2.0.1)
158
170
  rails (>= 3.2.0, < 5)
159
171
  rdoc (~> 3.12)
data/README.md CHANGED
@@ -1,7 +1,14 @@
1
- # acts_as_sanitizable [![Gem Version](https://badge.fury.io/rb/acts_as_sanitizable.svg)](http://badge.fury.io/rb/acts_as_sanitizable) [![Build Status](https://travis-ci.org/chilian/acts_as_sanitizable.svg?branch=master)](https://travis-ci.org/chilian/acts_as_sanitizable) [![Code Climate](https://codeclimate.com/github/chilian/acts_as_sanitizable.png)](https://codeclimate.com/github/chilian/acts_as_sanitizable)
1
+ # acts_as_sanitizable
2
+ [![Gem Version](https://badge.fury.io/rb/acts_as_sanitizable.svg)](http://badge.fury.io/rb/acts_as_sanitizable) [![Build Status](https://travis-ci.org/chilian/acts_as_sanitizable.svg?branch=master)](https://travis-ci.org/chilian/acts_as_sanitizable) [![Code Climate](https://codeclimate.com/github/chilian/acts_as_sanitizable.png)](https://codeclimate.com/github/chilian/acts_as_sanitizable) [![Coverage Status](https://coveralls.io/repos/chilian/acts_as_sanitizable/badge.png)](https://coveralls.io/r/chilian/acts_as_sanitizable)
2
3
 
3
4
  Sanitizable concern to sanitize activerecord model attributes the way you like. E.g. very useful if you want to convert empty strings from your form params into `nil`...
4
5
 
6
+ ## Dependencies
7
+
8
+ Ruby >= 1.9.3
9
+
10
+ Rails >= 3.2.0
11
+
5
12
  ## Installation
6
13
 
7
14
  Add `acts_as_sanitizable` to your `Gemfile`:
@@ -60,8 +67,8 @@ If you wish to not sanitize specific attributes on an inherited model you can ca
60
67
 
61
68
  ```ruby
62
69
  class Admin < User
63
- skip_sanitization_on :first_name
64
- skip_sanitization_on :email, on: :create
70
+ skip_sanitization_of :first_name
71
+ skip_sanitization_of :email, on: :create
65
72
  end
66
73
  ```
67
74
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -2,11 +2,11 @@
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.0 ruby lib
5
+ # stub: acts_as_sanitizable 0.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "acts_as_sanitizable"
9
- s.version = "0.4.0"
9
+ s.version = "0.4.1"
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"]
@@ -61,6 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.add_development_dependency(%q<simplecov>, [">= 0"])
62
62
  s.add_development_dependency(%q<activerecord>, [">= 2.3.5"])
63
63
  s.add_development_dependency(%q<activemodel>, [">= 3.0.0"])
64
+ s.add_development_dependency(%q<coveralls>, [">= 0"])
64
65
  else
65
66
  s.add_dependency(%q<rails>, ["< 5", ">= 3.2.0"])
66
67
  s.add_dependency(%q<sqlite3>, [">= 0"])
@@ -73,6 +74,7 @@ Gem::Specification.new do |s|
73
74
  s.add_dependency(%q<simplecov>, [">= 0"])
74
75
  s.add_dependency(%q<activerecord>, [">= 2.3.5"])
75
76
  s.add_dependency(%q<activemodel>, [">= 3.0.0"])
77
+ s.add_dependency(%q<coveralls>, [">= 0"])
76
78
  end
77
79
  else
78
80
  s.add_dependency(%q<rails>, ["< 5", ">= 3.2.0"])
@@ -86,6 +88,7 @@ Gem::Specification.new do |s|
86
88
  s.add_dependency(%q<simplecov>, [">= 0"])
87
89
  s.add_dependency(%q<activerecord>, [">= 2.3.5"])
88
90
  s.add_dependency(%q<activemodel>, [">= 3.0.0"])
91
+ s.add_dependency(%q<coveralls>, [">= 0"])
89
92
  end
90
93
  end
91
94
 
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,9 @@ require 'rubygems'
4
4
  require 'bundler/setup'
5
5
  require 'yaml'
6
6
  require 'rails/all'
7
+ require 'coveralls'
8
+
9
+ Coveralls.wear!
7
10
 
8
11
  # Bundler.setup
9
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_sanitizable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Chilian
@@ -170,6 +170,20 @@ dependencies:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: 3.0.0
173
+ - !ruby/object:Gem::Dependency
174
+ name: coveralls
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
173
187
  description: Sanitizable concern to sanitize attributes the way you like
174
188
  email: christoph@chilian.de
175
189
  executables: []