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 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, Fixnum, Float, NilClass].each do |klass|
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
@@ -1,3 +1,3 @@
1
1
  module HasNormalizedAttributes
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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
- prerelease:
5
- version: 0.0.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
6
5
  platform: ruby
7
- authors:
8
- - Kyle Ginavan
6
+ authors:
7
+ - Kyle Ginavan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2010-05-18 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rspec
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: activerecord
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: 3.1.0
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: sqlite3
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: database_cleaner
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :development
58
- version_requirements: *id004
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
- files:
70
- - .gitignore
71
- - .rspec
72
- - .travis.yml
73
- - Gemfile
74
- - README.rdoc
75
- - Rakefile
76
- - has_normalized_attributes.gemspec
77
- - lib/has_normalized_attributes.rb
78
- - lib/version.rb
79
- - spec/db/database.yml
80
- - spec/db/schema.rb
81
- - spec/db/test.sqlite3
82
- - spec/has_normalized_fields_spec.rb
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
- require_paths:
91
- - lib
92
- required_ruby_version: !ruby/object:Gem::Requirement
93
- none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: "0"
98
- required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
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: 1.8.15
110
+ rubygems_version: 2.0.14
108
111
  signing_key:
109
- specification_version: 3
112
+ specification_version: 4
110
113
  summary: Ruby on Rails gem for normalize data prior to save
111
- test_files:
112
- - spec/db/database.yml
113
- - spec/db/schema.rb
114
- - spec/db/test.sqlite3
115
- - spec/has_normalized_fields_spec.rb
116
- - spec/spec_helper.rb
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