myrrha 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/myrrha.rb +1 -0
- data/lib/myrrha/coerce.rb +2 -1
- data/lib/myrrha/version.rb +1 -1
- data/myrrha.noespec +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/lib/myrrha.rb
CHANGED
data/lib/myrrha/coerce.rb
CHANGED
@@ -55,7 +55,8 @@ module Myrrha
|
|
55
55
|
g.coercion Symbol, Module, lambda{|s,t| g.constant_lookup(s.to_s, t) }
|
56
56
|
g.coercion String, Class, lambda{|s,t| g.constant_lookup(s, t) }
|
57
57
|
g.coercion String, Module, lambda{|s,t| g.constant_lookup(s, t) }
|
58
|
-
g.coercion String, Time, lambda{|s,t|
|
58
|
+
g.coercion String, Time, lambda{|s,t| Time.parse(s) }
|
59
|
+
g.coercion Time, DateTime, lambda{|s,t| DateTime.parse(s.iso8601) }
|
59
60
|
|
60
61
|
# By default, we try to invoke :parse on the class
|
61
62
|
g.fallback(String) do |s,t|
|
data/lib/myrrha/version.rb
CHANGED
data/myrrha.noespec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myrrha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -192,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
segments:
|
194
194
|
- 0
|
195
|
-
hash:
|
195
|
+
hash: -1329841827516948830
|
196
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
197
|
none: false
|
198
198
|
requirements:
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 1.8.
|
204
|
+
rubygems_version: 1.8.25
|
205
205
|
signing_key:
|
206
206
|
specification_version: 3
|
207
207
|
summary: Myrrha provides the coercion framework which is missing to Ruby.
|