alki-dsl 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 509cf74d2d757a7d980460a7bd63199e0cfabe39
4
- data.tar.gz: 33c3f48bac58f19f73f7469ec42f4357cd2321b6
3
+ metadata.gz: 3049970503a496913ddb6c325f05bb6e5638c21d
4
+ data.tar.gz: 7bff335255be597d9e219dad99789b1e604c80ec
5
5
  SHA512:
6
- metadata.gz: 2ad60f1b2f6c8f012e41c61ff18171ff1fafb65af694c04a96dc15c20ba664c88b60e25d9fc23cf430f7c41396509b7443169ef9f447af2af46e27114255894c
7
- data.tar.gz: 1245f5d5471641f77603f23aac033fd273f9a622f327fb19ce2268616a9a1c6fb968d589e602f1294a28f69596d0a786242e035d8d5cdbe8bfdc9decca40ec40
6
+ metadata.gz: 91efd70a0d47d70481dd0db89c59a4d287710a84aeee5df9fb441e5823fb2083c4bd818376d25fe102b5b313918214d2dfe89c98b12c0606b0465586c2f33dac
7
+ data.tar.gz: 197bb68fa144226dccb6d9a6463570f5a37f64861702d484862f7c67ba561b39a96e6e5dd18e6a54849e1f6430a399e50874f65789f9b74c2ff5a17ddada82ae
@@ -59,8 +59,8 @@ module Alki
59
59
  add_module mod, subclass: 'Helpers'
60
60
  end
61
61
 
62
- def add_initialize_param(name,default=nil,subclass: nil)
63
- (class_builder(subclass)[:initialize_params]||=[]) << [name.to_sym,default]
62
+ def add_initialize_param(name,default=nil,opts={})
63
+ (class_builder(opts[:subclass])[:initialize_params]||=[]) << [name.to_sym,default]
64
64
  end
65
65
 
66
66
  def add_instance_class_proxy(type, name,subclass: nil)
@@ -1,5 +1,5 @@
1
1
  module Alki
2
2
  module Dsl
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -25,6 +25,7 @@ module Alki
25
25
 
26
26
  def finish
27
27
  ctx[:class] = Alki::ClassBuilder.build class_builder
28
+ ctx.delete :class_builder
28
29
  end
29
30
  end
30
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alki-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Edlefsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2016-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alki-support