universe_compiler 0.4.2 → 0.4.3

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: d09b8d02e98418aef483a480fb61437a50598419
4
- data.tar.gz: 64ce9d0d55cd3d993f41dfbf38035506e259fe7c
3
+ metadata.gz: d3ec4856a55e676294a38c02533d2107b7e315f6
4
+ data.tar.gz: 5aeb5dc2d1f22314b636f65e9a7b412d84bd3415
5
5
  SHA512:
6
- metadata.gz: dce3601fef115bc74a0b395a90a9e7946c667b5a7a09afb77ed8246bf9381111ebe31c8256375ec9a159dff1ef4c28f7342dc3a1b26dd12c23b1ab40d3bcac64
7
- data.tar.gz: f25e06b4e0236c55b19c801b65331049e27a5a946f1eecaac60a9603b49426cf83b9abc58e28ffb57ee06f69bf4647ca15c88498ecd352fd1c36fa57390a0668
6
+ metadata.gz: 07c5b9132b70584508c268827e9744c0b3fca36ac8bb0892401f4e797bcf58b7130fe6f5ee15d034cc442713331b171b52dc471e558d0f4583e0c3b846343812
7
+ data.tar.gz: aadd6b0fa6a59864896b1dcd94dbd4c9329d1f68c374b29a1325bcb49b2509042dcf2b131cfd1c42381f89c3afc38b776e8526d6f666e1c07ef02e57c5406539
@@ -16,6 +16,7 @@ module UniverseCompiler
16
16
  end
17
17
 
18
18
  def entity_type=(value)
19
+ return if value == @entity_type
19
20
  raise UniverseCompiler::Error, "You cannot change an entity type for class '#{self.name}'" unless @entity_type.nil?
20
21
  raise UniverseCompiler::Error, 'Only Symbol is supported for entity_type !' unless value.is_a? Symbol
21
22
  mapping = UniverseCompiler::Entity::TypeManagement.types_classes_mapping
@@ -1,3 +1,3 @@
1
1
  module UniverseCompiler
2
- VERSION = '0.4.2'.freeze
2
+ VERSION = '0.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: universe_compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B.