michelson 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: c38fcb8b1914f1dd67e97fcbefa894c09988d19b
4
- data.tar.gz: aaefda11aab976e8683faee197f783c53c7da8f5
3
+ metadata.gz: a937ba2f5f939e2bb71a2b114d2706290bf92855
4
+ data.tar.gz: 0d74c1ebac63a4f2254181ee6fb590baf4b232a9
5
5
  SHA512:
6
- metadata.gz: c1f77fc464cf095c83896265a4071566a50e3fd3ec0b60535d965ed0d62c4fb3e16aa84426e1db505cd275f44ee8fc209f0252383960da503edf184403b5a074
7
- data.tar.gz: a979354201a30ad6e5c2bcf46675883d39e9c3e0457a1929a5a875aa3513fd1e79111734adec5a108342b09c68f13dc9ea0606d0007bc478c31bedbd25349831
6
+ metadata.gz: 22e24ecd0075deeb60156d2eadf81c43ee5ae6cd85a45efbb7b5659d24f09eb04cefb7e2ba3ff62b1e7693e871c1788145e87630e53de9e35b09f3de102dd3ee
7
+ data.tar.gz: 03fa19bd5b4982a16ae5313e74fd64740206181b69c22f4e85b5e504bfc48a362184747770293db46dd284dbca77da5980f9d220d34f50b3d2e111883424db5d
@@ -6,7 +6,7 @@ def type( class_name, *args )
6
6
  puts "define type #{class_name}:"
7
7
  pp args
8
8
 
9
- if args.size == 1 && args[0].is_a?( Class )
9
+ if args.size == 1 && (args[0].is_a?( Class ) || args[0].is_a?( Module ))
10
10
  klass = args[0]
11
11
  Kernel.const_set( class_name, klass )
12
12
  elsif args.size == 1 && args[0].is_a?( Hash )
@@ -14,7 +14,7 @@ def type( class_name, *args )
14
14
  klass = Struct.new( *keys )
15
15
  Kernel.const_set( class_name, klass )
16
16
  else
17
- raise ArgumentError.new( "Class or Hash expected")
17
+ raise ArgumentError.new( "Class|Module or Hash expected")
18
18
  end
19
19
  end
20
20
 
@@ -5,7 +5,7 @@ module Michelson
5
5
 
6
6
  MAJOR = 0
7
7
  MINOR = 1
8
- PATCH = 1
8
+ PATCH = 2
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: michelson
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
  - Gerald Bauer