has_normalized_attributes 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/has_normalized_attributes.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +99 -96
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a6a7f6f74fc451ae5a1d880c4966a4d40039bf60
|
4
|
+
data.tar.gz: 0e89858e4c99fe4446016ff8fa27743f738c0754
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7ad2da0addd35ebd7ae1f520cfc7beedad1a2fdf8518f4b3d9a1f643c74d41afcae15dc66d517a28b76fb03423dc225da90f9dcc49a0bce02408c60f18b527e0
|
7
|
+
data.tar.gz: cf9014e32504f17383d43451e2cb46fd4188ff64c0c48556715c569d068376e9274aaf7c1cdc9ab09db0b5136ed3fdaf6a907ae910ded7b5881da0b27a6c6187
|
@@ -49,8 +49,8 @@ module HasNormalizedAttributes
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
#extend these classes
|
53
|
-
[String,
|
52
|
+
#extend these classes - Numeric is a parent class for all of Ruby's numeric types.
|
53
|
+
[String, Numeric, NilClass].each do |klass|
|
54
54
|
klass.send(:include, HasNormalizedAttributes)
|
55
55
|
end
|
56
56
|
#include activerecord
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,116 +1,119 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_normalized_attributes
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
6
|
+
authors:
|
7
|
+
- Kyle Ginavan
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
11
|
+
date: 2010-05-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.1.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: database_cleaner
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
59
69
|
description: |-
|
60
70
|
has_normalized_attributes is a Ruby on Rails gem that lets you normalize user data for an improved user experience.
|
61
71
|
It takes the messy user inputed data and normalizes it into a nice clean standard format.
|
62
72
|
email: kylejginavan@gmail.com
|
63
73
|
executables: []
|
64
|
-
|
65
74
|
extensions: []
|
66
|
-
|
67
75
|
extra_rdoc_files: []
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
- spec/spec_helper.rb
|
76
|
+
files:
|
77
|
+
- .gitignore
|
78
|
+
- .rspec
|
79
|
+
- .travis.yml
|
80
|
+
- Gemfile
|
81
|
+
- README.rdoc
|
82
|
+
- Rakefile
|
83
|
+
- has_normalized_attributes.gemspec
|
84
|
+
- lib/has_normalized_attributes.rb
|
85
|
+
- lib/version.rb
|
86
|
+
- spec/db/database.yml
|
87
|
+
- spec/db/schema.rb
|
88
|
+
- spec/db/test.sqlite3
|
89
|
+
- spec/has_normalized_fields_spec.rb
|
90
|
+
- spec/spec_helper.rb
|
84
91
|
homepage: https://github.com/kylejginavan/has_normalized_attributes
|
85
92
|
licenses: []
|
86
|
-
|
93
|
+
metadata: {}
|
87
94
|
post_install_message:
|
88
95
|
rdoc_options: []
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: "0"
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
104
108
|
requirements: []
|
105
|
-
|
106
109
|
rubyforge_project: has_normalized_attributes
|
107
|
-
rubygems_version:
|
110
|
+
rubygems_version: 2.0.14
|
108
111
|
signing_key:
|
109
|
-
specification_version:
|
112
|
+
specification_version: 4
|
110
113
|
summary: Ruby on Rails gem for normalize data prior to save
|
111
|
-
test_files:
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
test_files:
|
115
|
+
- spec/db/database.yml
|
116
|
+
- spec/db/schema.rb
|
117
|
+
- spec/db/test.sqlite3
|
118
|
+
- spec/has_normalized_fields_spec.rb
|
119
|
+
- spec/spec_helper.rb
|