power_stencil 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/update_plugin_template +0 -0
- data/etc/meta_templates/plugin_seed/psplugin_{entity}.gemspec +2 -2
- data/etc/templates/plugin_definition/.travis.yml +3 -1
- data/etc/templates/plugin_definition/Gemfile +0 -2
- data/etc/templates/plugin_definition/psplugin_{entity}.gemspec +2 -2
- data/lib/power_stencil/system_entity_definitions/entity_project_common.rb +14 -0
- data/lib/power_stencil/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f8a56ff0d7e95fa694edcd60cd8caf19b0ebc8
|
4
|
+
data.tar.gz: c94645bac2dcba4c3e1812c01b4441e534ff9fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69d9c0eab68599fc6e0acc8f2d500eed2cc4035d4c509d7a04f35cfa3cf077702c803d680a855c518947fda96190930c29174cd37de178e3a6a55ebdaf8a215
|
7
|
+
data.tar.gz: 562cb010b2c2cffa7e2d347b05a038511564637a1dba0eb2ff978fe15780ee6796a18766d0cda1e7c2ccdce36bd75c5d08da20d70e7565069f2ce199bd1b54fc
|
data/bin/update_plugin_template
CHANGED
File without changes
|
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_development_dependency 'bundler', '~>
|
32
|
+
spec.add_development_dependency 'bundler', '~> 2.0.2'
|
33
33
|
spec.add_development_dependency 'rake', '~> 10.0'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
-
spec.add_development_dependency 'power_stencil', "~>
|
35
|
+
spec.add_development_dependency 'power_stencil', "~> <%= PowerStencil::VERSION %>"
|
36
36
|
end
|
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_development_dependency 'bundler', '~>
|
32
|
+
spec.add_development_dependency 'bundler', '~> 2.0.2'
|
33
33
|
spec.add_development_dependency 'rake', '~> 10.0'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
-
spec.add_development_dependency 'power_stencil', "~>
|
35
|
+
spec.add_development_dependency 'power_stencil', "~> <%= PowerStencil::VERSION %>"
|
36
36
|
end
|
@@ -27,6 +27,20 @@ module PowerStencil
|
|
27
27
|
self.class.buildable?
|
28
28
|
end
|
29
29
|
|
30
|
+
protected
|
31
|
+
|
32
|
+
def project_engine
|
33
|
+
PowerStencil.project.engine
|
34
|
+
end
|
35
|
+
|
36
|
+
def create_universe_entity(type, fields = {})
|
37
|
+
project_engine.new_entity project_engine.root_universe, type, fields: fields
|
38
|
+
end
|
39
|
+
|
40
|
+
def remove_entity_from_universe(entity)
|
41
|
+
project_engine.root_universe.delete entity
|
42
|
+
end
|
43
|
+
|
30
44
|
end
|
31
45
|
|
32
46
|
end
|
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.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent B.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -264,7 +264,7 @@ homepage: https://gitlab.com/tools4devops/power_stencil
|
|
264
264
|
licenses:
|
265
265
|
- MIT
|
266
266
|
metadata: {}
|
267
|
-
post_install_message: "\nThank you for installing PowerStencil 0.3.
|
267
|
+
post_install_message: "\nThank you for installing PowerStencil 0.3.7 !\nFrom the command
|
268
268
|
line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
|
269
269
|
\ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nFull documentation
|
270
270
|
here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel
|