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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b07abdd0e20d4fbcb3fa6101b2f51b6979dd0004
4
- data.tar.gz: 568e506add9ea1c13cd6edb4a8b6d146d60ac593
3
+ metadata.gz: 97f8a56ff0d7e95fa694edcd60cd8caf19b0ebc8
4
+ data.tar.gz: c94645bac2dcba4c3e1812c01b4441e534ff9fc5
5
5
  SHA512:
6
- metadata.gz: feea8307da3b4cd3c0851f9004aeefba5f20d4130f2da0a9cb1b8fa3c06e988bb936b6e513c15aa6928f7a23f44ff563aab1aa7a08b37d8ff47a9e4ef066abad
7
- data.tar.gz: 87c4358e744a2aa22b96c475461ce996c4a82a2d73fb3b90b4560d12d62a6b5068611d9a4318b6c67891a7f5a322bda59dd5343af32753fdbd7b52f0b5b57a9b
6
+ metadata.gz: f69d9c0eab68599fc6e0acc8f2d500eed2cc4035d4c509d7a04f35cfa3cf077702c803d680a855c518947fda96190930c29174cd37de178e3a6a55ebdaf8a215
7
+ data.tar.gz: 562cb010b2c2cffa7e2d347b05a038511564637a1dba0eb2ff978fe15780ee6796a18766d0cda1e7c2ccdce36bd75c5d08da20d70e7565069f2ce199bd1b54fc
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', '~> 1.16'
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', "~> #{<%= plugin_module_name %>::VERSION}"
35
+ spec.add_development_dependency 'power_stencil', "~> <%= PowerStencil::VERSION %>"
36
36
  end
@@ -1,5 +1,7 @@
1
+ ---
1
2
  sudo: false
2
3
  language: ruby
4
+ cache: bundler
3
5
  rvm:
4
6
  - 2.3.1
5
- before_install: gem install bundler -v 1.16.1
7
+ before_install: gem install bundler -v 2.0.2
@@ -1,6 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
3
  # Specify your gem's dependencies in <%= plugin_module_name %>.gemspec
6
4
  gemspec
@@ -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', '~> 1.16'
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', "~> #{<%= plugin_module_name %>::VERSION}"
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
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.3.6'.freeze
2
+ VERSION = '0.3.7'.freeze
3
3
  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.6
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-09 00:00:00.000000000 Z
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.6 !\nFrom the command
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