strip_attributes 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/strip_attributes/version.rb +1 -1
- data/test/test_helper.rb +4 -1
- metadata +16 -10
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# StripAttributes [![Gem Version](https://badge.fury.io/rb/strip_attributes.png)](http://badge.fury.io/rb/strip_attributes) [![Build Status](https://secure.travis-ci.org/rmm5t/strip_attributes.png)](http://travis-ci.org/rmm5t/strip_attributes)
|
1
|
+
# StripAttributes [![Gem Version](https://badge.fury.io/rb/strip_attributes.png)](http://badge.fury.io/rb/strip_attributes) [![Build Status](https://secure.travis-ci.org/rmm5t/strip_attributes.png)](http://travis-ci.org/rmm5t/strip_attributes) [![Code Climate](https://codeclimate.com/github/rmm5t/strip_attributes.png)](https://codeclimate.com/github/rmm5t/strip_attributes)
|
2
2
|
|
3
3
|
StripAttributes is an ActiveModel extension that automatically strips all
|
4
4
|
attributes of leading and trailing whitespace before validation. If the
|
data/test/test_helper.rb
CHANGED
@@ -4,6 +4,9 @@ require "active_attr"
|
|
4
4
|
require "strip_attributes"
|
5
5
|
|
6
6
|
class Tableless
|
7
|
-
include ActiveAttr::
|
7
|
+
include ActiveAttr::BasicModel
|
8
|
+
include ActiveAttr::TypecastedAttributes
|
9
|
+
include ActiveAttr::Serialization
|
10
|
+
|
8
11
|
include ActiveModel::Validations::Callbacks
|
9
12
|
end
|
metadata
CHANGED
@@ -2,34 +2,40 @@
|
|
2
2
|
name: strip_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.4.
|
5
|
+
version: 1.4.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ryan McGeary
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
type: :runtime
|
16
15
|
name: activemodel
|
16
|
+
type: :runtime
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '3.0'
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '5.0'
|
22
25
|
none: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- -
|
28
|
+
- - ! '>='
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '3.0'
|
31
|
+
- - <
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
28
34
|
none: false
|
29
35
|
prerelease: false
|
30
36
|
- !ruby/object:Gem::Dependency
|
31
|
-
type: :development
|
32
37
|
name: active_attr
|
38
|
+
type: :development
|
33
39
|
requirement: !ruby/object:Gem::Requirement
|
34
40
|
requirements:
|
35
41
|
- - ~>
|
@@ -44,8 +50,8 @@ dependencies:
|
|
44
50
|
none: false
|
45
51
|
prerelease: false
|
46
52
|
- !ruby/object:Gem::Dependency
|
47
|
-
type: :development
|
48
53
|
name: minitest-matchers
|
54
|
+
type: :development
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - ~>
|
@@ -60,8 +66,8 @@ dependencies:
|
|
60
66
|
none: false
|
61
67
|
prerelease: false
|
62
68
|
- !ruby/object:Gem::Dependency
|
63
|
-
type: :development
|
64
69
|
name: rake
|
70
|
+
type: :development
|
65
71
|
requirement: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - ~>
|
@@ -104,18 +110,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
110
|
requirements:
|
105
111
|
- - ! '>='
|
106
112
|
- !ruby/object:Gem::Version
|
107
|
-
hash: -830091072879827042
|
108
113
|
segments:
|
109
114
|
- 0
|
115
|
+
hash: 4359305486142774400
|
110
116
|
version: '0'
|
111
117
|
none: false
|
112
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
120
|
- - ! '>='
|
115
121
|
- !ruby/object:Gem::Version
|
116
|
-
hash: -830091072879827042
|
117
122
|
segments:
|
118
123
|
- 0
|
124
|
+
hash: 4359305486142774400
|
119
125
|
version: '0'
|
120
126
|
none: false
|
121
127
|
requirements: []
|