adts 0.1.1 → 0.1.2

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: fa28e2d1509e8a2c7a19e507d9ed235b536361ae
4
- data.tar.gz: 8f7ee9ff5b0a60341d1f8d7dcb51757543737e21
3
+ metadata.gz: 34a7017471ff4ed0a951169b42115f5d18a665d6
4
+ data.tar.gz: 06669dcc84ec131c689a355211447e0238f65789
5
5
  SHA512:
6
- metadata.gz: 57503b9ef4b9fc7ee141cc3f6b88a9be8d39dfa87ed5da79c08d0fcbb14dd5335136d7f4e08f1bcf8880a8b4f55f1e60e2a7565e1df3942bf91168e857b922f2
7
- data.tar.gz: 810adff8d25a8638b2e76e07c81cbb3d9be02330a26bb72b48e197c3c0c7619a170fe9e1f0d511f0d0689c66be7bb39bf0aed84e491675d6c449b2031e24e8c0
6
+ metadata.gz: 923bf056ae9a68f6f35faecdbefaab43a3ee84ad7110e7db12300717978a0a3d36745268e7f34252f271131a4849a2360a0daf2ba304bc70e8331235a594a3f3
7
+ data.tar.gz: ace61d08daa16a1c47b3fe28433cb8a55e20199276680943d195b55a10178c55cb03f2c5f847f352f424c7157a4844da2e538410a3e95fd70e25eac6251b7601
@@ -4,7 +4,7 @@ module ADT
4
4
 
5
5
  def initialize(parent, name, parameters, &block)
6
6
  @name = name
7
- @klass = Class.new(parent, &block)
7
+ @klass = Class.new(parent)
8
8
  keys = parameters.keys
9
9
  types = parameters.values
10
10
  @klass.class_eval """
@@ -27,6 +27,7 @@ module ADT
27
27
  end
28
28
  alias inspect to_s
29
29
  "
30
+ @klass.class_eval(&block) if block
30
31
  @parameters = parameters
31
32
  @others = []
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module ADT
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Bach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec