ixtlan-babel 0.3.4 → 0.3.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.
@@ -55,7 +55,11 @@ module Ixtlan
55
55
  end
56
56
 
57
57
  def []( key )
58
- self.class.new( @include.is_a?( Array ) ? {} : @include[ key ] )
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
@@ -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.4
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-03-10 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake