ohm-contrib 0.0.22 → 0.0.23
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/VERSION +1 -1
- data/lib/ohm/contrib/typecast.rb +2 -2
- data/lib/ohm/contrib.rb +1 -1
- data/ohm-contrib.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.23
|
data/lib/ohm/contrib/typecast.rb
CHANGED
|
@@ -35,7 +35,7 @@ module Ohm
|
|
|
35
35
|
]
|
|
36
36
|
|
|
37
37
|
def self.[](value)
|
|
38
|
-
return self::EMPTY if value.to_s.empty?
|
|
38
|
+
return (self::EMPTY.nil? ? nil : self::EMPTY.dup) if value.to_s.empty?
|
|
39
39
|
|
|
40
40
|
new(value)
|
|
41
41
|
end
|
|
@@ -300,4 +300,4 @@ module Ohm
|
|
|
300
300
|
end
|
|
301
301
|
end
|
|
302
302
|
end
|
|
303
|
-
end
|
|
303
|
+
end
|
data/lib/ohm/contrib.rb
CHANGED
data/ohm-contrib.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{ohm-contrib}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.23"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Cyril David"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-06-01}
|
|
13
13
|
s.description = %q{Highly decoupled drop-in functionality for Ohm models}
|
|
14
14
|
s.email = %q{cyx.ucron@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 23
|
|
9
|
+
version: 0.0.23
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Cyril David
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-06-01 00:00:00 +08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|