power_stencil 0.8.5 → 0.8.6

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: 5e85fced3b94ed8e71fa62e9aa7927e3326261c0
4
- data.tar.gz: 45b93aeca4d3fda35ed2041517b78db4d19fe3a7
3
+ metadata.gz: f12907b8b2e2bd5ff7e94f6f1c75241604cfef84
4
+ data.tar.gz: 66f1296b1df2d83e1f52625f8056d5ec46d17114
5
5
  SHA512:
6
- metadata.gz: 58666884718c08bfc17995f9d3056089a8e83c80b43bb47ba980eee2fab43a3c1ad5cfc6898db31cfed75661580066e47dc2ff4365edc159ced210841e1bab77
7
- data.tar.gz: 3336919a1a5f71c37f536cf56e23fd54d24aeff8977be611ff054afde39d70498929009d6adee80a155ef0eb0b5c40584c2882e65a1bd875464029cbb39af2c5
6
+ metadata.gz: 9c9968f5c422ec59ee0c4a33f184bca64b1501d879b7cc085a0b52a23a13afeeac25d487b373b0fb6d0999e958476962278fbb445aaf44834035623962857c93
7
+ data.tar.gz: 03bee415e4a53424a12df0aee9e611eea282fef903a4374b7877bf5befd3fa9b7890429430d22765d1836bfbbbe4ddababe1833d7221699fa2f5242b89d244f9
@@ -24,6 +24,10 @@ module PowerStencil
24
24
 
25
25
  def modifications_valid?(modified_path, original_entity)
26
26
  test_entity = UniverseCompiler::Entity::Persistence.load modified_path
27
+ test_universe = project.engine.root_universe.dup
28
+ duplicated_entity = test_universe.get_entity *(original_entity.to_composite_key)
29
+ test_universe.replace duplicated_entity, test_entity
30
+ test_entity.resolve_fields_references!
27
31
  test_entity.valid?
28
32
  rescue => e
29
33
  logger.debug PowerStencil::Error.report_error(e)
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.8.5'.freeze
2
+ VERSION = '0.8.6'.freeze
3
3
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency 'climatic', '~> 0.2.32'
29
29
  spec.add_dependency 'dir_glob_ignore', '~> 0.3'
30
- spec.add_dependency 'universe_compiler', '~> 0.5.1'
30
+ spec.add_dependency 'universe_compiler', '~> 0.5.3'
31
31
  spec.add_dependency 'pry'
32
32
  spec.add_dependency 'git' , '~> 1.5.0'
33
33
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.1
89
+ version: 0.5.3
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.5.1
96
+ version: 0.5.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -299,7 +299,7 @@ metadata:
299
299
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
300
300
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
301
301
  homepage_uri: https://powerstencil.brizone.org/
302
- post_install_message: "\nThank you for installing PowerStencil 0.8.5 !\nFrom the command
302
+ post_install_message: "\nThank you for installing PowerStencil 0.8.6 !\nFrom the command
303
303
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
304
304
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
305
305
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel