shuber-hattr_accessor 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/lib/hattr_accessor.rb +1 -1
- data/test/hattr_accessor_test.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
2009-01-18 - Sean Huber (shuber@huberry.com)
|
|
2
|
+
* Boolean type casted empty strings should return false
|
|
3
|
+
|
|
1
4
|
2009-01-12 - Sean Huber (shuber@huberry.com)
|
|
2
5
|
* Check for existing reader and writer methods separately before creating default ones for options[:attribute]
|
|
3
6
|
* Remove alias_method_chain - unnecessary
|
data/lib/hattr_accessor.rb
CHANGED
data/test/hattr_accessor_test.rb
CHANGED
|
@@ -136,7 +136,7 @@ class HattrAccessorTest < Test::Unit::TestCase
|
|
|
136
136
|
assert_equal true, @custom_field.required
|
|
137
137
|
|
|
138
138
|
@custom_field.required = ''
|
|
139
|
-
assert_equal
|
|
139
|
+
assert_equal false, @custom_field.required
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
def test_should_raise_exception_if_attribute_option_is_not_passed
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shuber-hattr_accessor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Huber
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-01-
|
|
12
|
+
date: 2009-01-18 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|