attribute_normalizer 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -3
- data/install.txt +5 -3
- data/lib/attribute_normalizer.rb +4 -1
- data/spec/attribute_normalizer_spec.rb +3 -4
- metadata +5 -5
data/Rakefile
CHANGED
@@ -22,9 +22,11 @@ begin
|
|
22
22
|
-----------------------------------------------------------------------
|
23
23
|
Attribute Normalizer News:
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
New with the 0.3.X release is the ability to change the default
|
26
|
+
normalization and also the ability to chain normalizers together.
|
27
|
+
|
28
|
+
After the flow of patches slows down on this release I will likely
|
29
|
+
freeze the feature set and API for a 1.0 release of the gem.
|
28
30
|
|
29
31
|
Cheers,
|
30
32
|
Michael Deering http://mdeering.com
|
data/install.txt
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
-----------------------------------------------------------------------
|
2
2
|
Attribute Normalizer News:
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
New with the 0.3.X release is the ability to change the default
|
5
|
+
normalization and also the ability to chain normalizers together.
|
6
|
+
|
7
|
+
After the flow of patches slows down on this release I will likely
|
8
|
+
freeze the feature set and API for a 1.0 release of the gem.
|
7
9
|
|
8
10
|
Cheers,
|
9
11
|
Michael Deering http://mdeering.com
|
data/lib/attribute_normalizer.rb
CHANGED
@@ -9,9 +9,12 @@ module AttributeNormalizer
|
|
9
9
|
class << self
|
10
10
|
attr_accessor :configuration
|
11
11
|
end
|
12
|
+
|
13
|
+
def self.configuration
|
14
|
+
@configuration ||= Configuration.new
|
15
|
+
end
|
12
16
|
|
13
17
|
def self.configure
|
14
|
-
self.configuration ||= Configuration.new
|
15
18
|
yield(configuration)
|
16
19
|
end
|
17
20
|
|
@@ -3,13 +3,12 @@ require File.dirname(__FILE__) + '/test_helper'
|
|
3
3
|
describe AttributeNormalizer do
|
4
4
|
|
5
5
|
it 'should add the class method Class#normalize_attributes and Class#normalize_attribute when included' do
|
6
|
-
|
7
6
|
klass = Class.new do
|
8
7
|
include AttributeNormalizer
|
9
8
|
end
|
10
9
|
|
11
|
-
klass.respond_to
|
12
|
-
klass.respond_to
|
10
|
+
klass.should respond_to(:normalize_attributes)
|
11
|
+
klass.should respond_to(:normalize_attribute)
|
13
12
|
end
|
14
13
|
|
15
|
-
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attribute_normalizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Deering
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-19 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -52,7 +52,7 @@ homepage: http://github.com/mdeering/attribute_normalizer
|
|
52
52
|
licenses: []
|
53
53
|
|
54
54
|
post_install_message: "\n\
|
55
|
-
-----------------------------------------------------------------------\n Attribute Normalizer News:\n\n
|
55
|
+
-----------------------------------------------------------------------\n Attribute Normalizer News:\n\n New with the 0.3.X release is the ability to change the default\n normalization and also the ability to chain normalizers together.\n\n After the flow of patches slows down on this release I will likely\n freeze the feature set and API for a 1.0 release of the gem.\n\n Cheers,\n Michael Deering http://mdeering.com\n\
|
56
56
|
-----------------------------------------------------------------------\n "
|
57
57
|
rdoc_options:
|
58
58
|
- --charset=UTF-8
|