ixtlan-babel 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ixtlan/babel/context.rb +5 -1
- data/lib/ixtlan/babel/factory.rb +1 -1
- metadata +2 -2
data/lib/ixtlan/babel/context.rb
CHANGED
@@ -55,7 +55,11 @@ module Ixtlan
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def []( key )
|
58
|
-
|
58
|
+
if @include.include?( key )
|
59
|
+
self.class.new( @include.is_a?( Array ) ? {} : @include[ key ] )
|
60
|
+
else
|
61
|
+
self.class.new( @methods.is_a?( Array ) ? {} : @methods[ key ] )
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
end
|
data/lib/ixtlan/babel/factory.rb
CHANGED
@@ -30,7 +30,7 @@ module Ixtlan
|
|
30
30
|
end
|
31
31
|
|
32
32
|
DATE_TIME_TO_S = Proc.new do |dt|
|
33
|
-
dt.strftime('%Y-%m-%dT%H:%M:%S.') + ("%06d" % (dt.sec_fraction * NANOSECONDS_IN_DAY ) ) + dt.strftime('%z')
|
33
|
+
dt.strftime('%Y-%m-%dT%H:%M:%S.') + ("%06d" % (dt.sec_fraction * NANOSECONDS_IN_DAY ) )[0..6] + dt.strftime('%z')
|
34
34
|
end
|
35
35
|
|
36
36
|
DEFAULT_MAP = {
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: ixtlan-babel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Christian Meier
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|