power_stencil 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/doc/entities.md +1 -1
- data/doc/faq.md +3 -1
- data/etc/templates/simple_exec/main.sh +3 -0
- data/lib/power_stencil/engine/build_handling.rb +5 -1
- 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: 39ef892e57acf1b138606b8ce494324a76759eac
|
4
|
+
data.tar.gz: 811c9bbb835afa1f137c76d74a5261a01486fd6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7d187f50b36b965576bc4dd538bacd401a8b62df1968c9f7cbc13ccfc3e6027c842dcc6e82be8753cd62e093c7d1c28d4e0f87c8247324cfa99d0e45a3aa70
|
7
|
+
data.tar.gz: 091f7d4bf28c89f292e33a78a1176b72678c8464c1dc0e517b6be47b42908fefd9a4fdabeec3af905871acecb72172b8a0a6395d67973ea3588c426c57acab42
|
data/README.md
CHANGED
@@ -75,10 +75,12 @@ Then you can install the `PowerStencil` gem by issuing the usual:
|
|
75
75
|
|
76
76
|
$ gem install power_stencil
|
77
77
|
|
78
|
-
If you want to create
|
78
|
+
If you want to create [Graphviz] graphs, you probably may want to install it for your system. If you are using an _apt-based_ system like Ubuntu or Debian it may probably be as simple as:
|
79
79
|
|
80
80
|
$ sudo apt install graphviz
|
81
81
|
|
82
|
+
If you use Windows, install [Graphviz] using the stable version for Windows and add the `bin` directory to the `%PATH%`.
|
83
|
+
|
82
84
|
# Usage
|
83
85
|
|
84
86
|
## Help
|
@@ -246,4 +248,5 @@ Everyone interacting in the PowerStencil project’s codebases, issue trackers,
|
|
246
248
|
[Haml]: http://haml.info/ "The templating engine for XML-like documents"
|
247
249
|
[Ruby]: https://www.ruby-lang.org "The powerful Ruby language"
|
248
250
|
[Rails]: https://rubyonrails.org/ "The Ruby on Rails framework"
|
249
|
-
[PowerStencil site]: https://powerstencil.brizone.org "Official PowerStencil website"
|
251
|
+
[PowerStencil site]: https://powerstencil.brizone.org "Official PowerStencil website"
|
252
|
+
[Graphviz]: https://www.graphviz.org/ "Graph Visualization Software"
|
data/doc/entities.md
CHANGED
@@ -984,4 +984,4 @@ Now you know an entity type is just a regular Ruby class. As such you could add
|
|
984
984
|
[Ruby On Rails]: https://rubyonrails.org/ "One of the best Web framework"
|
985
985
|
[universe_compiler]: https://gitlab.com/tools4devops/universe_compiler "The underlying engine to manage entities and compilation !"
|
986
986
|
[`universe_compiler` advanced relations documentation]: https://gitlab.com/tools4devops/universe_compiler#advanced-relations "Advanced relational features"
|
987
|
-
[Graphviz]:
|
987
|
+
[Graphviz]: https://www.graphviz.org/ "Graph Visualization Software"
|
data/doc/faq.md
CHANGED
@@ -65,7 +65,9 @@ So the two main remaining contenders are JSON and YAML. Although there is no rea
|
|
65
65
|
|
66
66
|
As such, even if I never tested, I would expect it to probably work out of the box on MacOS, BSD or other Unices supporting Ruby 2.2+.
|
67
67
|
|
68
|
-
Regarding Windows, I stopped using spywareOS years ago so I can't really tell you. Last time I tried using Ruby on Windows (maybe 10 years ago), I did face a lot of dependency issues. Maybe things are better now, but I have no idea. As far as I understood you can now have an Ubuntu running on top of Windows 10 as a kind of blessed VM. I would probably more go this way
|
68
|
+
~~Regarding Windows, I stopped using spywareOS years ago so I can't really tell you. Last time I tried using Ruby on Windows (maybe 10 years ago), I did face a lot of dependency issues. Maybe things are better now, but I have no idea. As far as I understood you can now have an Ubuntu running on top of Windows 10 as a kind of blessed VM. I would probably more go this way...~~
|
69
|
+
|
70
|
+
I had the opportunity to have access to a Windows VM and tested `PowerStencil`. I had to fix a couple of issues related to the way Windows manages concurrent access to files (:rofl:) , but **since version `0.4.14`, `PowerStencil` should now fully work under Windows**, including generating files using GraphViz if it is installed and correctly set in the `%PATH%`. I used the standard Ruby for Windows with no hack.
|
69
71
|
|
70
72
|
|
71
73
|
# What is the status of `PowerStencil` ?
|
@@ -67,7 +67,11 @@ module PowerStencil
|
|
67
67
|
script_to_execute = File.expand_path File.join(files_path, entity_to_build.post_process.process)
|
68
68
|
exec_options = {message: "Running '#{script_to_execute}'"}
|
69
69
|
exec_options[:show_output] = true if config[:verbose]
|
70
|
-
safely_exec_command script_to_execute, exec_options
|
70
|
+
process_report = safely_exec_command script_to_execute, exec_options
|
71
|
+
unless process_report.exit_status.exitstatus == 0
|
72
|
+
raise PowerStencil::Error, "Process `#{process_report.command}` failed and returned exit code '#{process_report.exit_status.exitstatus}'"
|
73
|
+
end
|
74
|
+
process_report
|
71
75
|
end
|
72
76
|
end
|
73
77
|
|
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.4.
|
4
|
+
version: 0.4.15
|
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-10-
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -259,7 +259,7 @@ metadata:
|
|
259
259
|
documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
|
260
260
|
source_code_uri: https://gitlab.com/tools4devops/power_stencil
|
261
261
|
homepage_uri: https://powerstencil.brizone.org/
|
262
|
-
post_install_message: "\nThank you for installing PowerStencil 0.4.
|
262
|
+
post_install_message: "\nThank you for installing PowerStencil 0.4.15 !\nFrom the
|
263
263
|
command line you can run `power_stencil --help`\nIf your shell is not completing
|
264
264
|
the command:\n If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial
|
265
265
|
Website : https://powerstencil.brizone.org/\nFull documentation here :
|