cpee-model-management 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cpee-model-management.gemspec +1 -1
- data/tools/cpee-moma +24 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c7144bdbca2c93817e6acdbac14bc06df366017a3ba5546c50d39ff6d42d6b9
|
|
4
|
+
data.tar.gz: 287318a851e666f4442d88b75b87bc13cfd5983a2aa2bdb2fe1c8a980d24cacc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db79d873a4ba7466a855b9271d0f08089d691ad5486d682ce852bbca7454d2d494c5d11cd2c9567295acffc90b2fb8cbabbbd31f97e80a55ec8bc232ee54f8aa
|
|
7
|
+
data.tar.gz: 2a7317f8fd20c26558b515937a42f4770c8d0d6c2be19e5e798865bec455ff1e3adcf3df9525690e6be50b4a0d9a628f1109be4c0a630483fbe1cd5fcb2dfa01
|
data/tools/cpee-moma
CHANGED
|
@@ -5,6 +5,7 @@ require 'optparse'
|
|
|
5
5
|
require 'fileutils'
|
|
6
6
|
require 'xml/smart'
|
|
7
7
|
require 'zip'
|
|
8
|
+
require 'typhoeus'
|
|
8
9
|
|
|
9
10
|
def wrap(s, width=78, indent=18)
|
|
10
11
|
lines = []
|
|
@@ -24,6 +25,29 @@ def wrap(s, width=78, indent=18)
|
|
|
24
25
|
return lines.join "\n"
|
|
25
26
|
end
|
|
26
27
|
|
|
28
|
+
def js_libs(cockpit)
|
|
29
|
+
res = Typhoeus.get('https://cpee.org/js_libs/js_libs.zip')
|
|
30
|
+
if res.success?
|
|
31
|
+
File.write(File.join(cockpit,'js_libs.zip'),res.response_body)
|
|
32
|
+
Zip::File.open(File.join(cockpit,'js_libs.zip')) do |zip_file|
|
|
33
|
+
zip_file.each do |entry|
|
|
34
|
+
case entry.ftype
|
|
35
|
+
when :directory
|
|
36
|
+
Dir.mkdir(File.join(cockpit,entry.name)) rescue nil
|
|
37
|
+
when :file
|
|
38
|
+
File.write(File.join(cockpit,entry.name),entry.get_input_stream.read)
|
|
39
|
+
when :symlink
|
|
40
|
+
FileUtils.ln_s(File.join('.',entry.get_input_stream.read),File.join(cockpit,entry.name), force: true)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
true
|
|
45
|
+
else
|
|
46
|
+
puts 'Internet access required to download javascript libs from "http://cpee.org/js_libs/js_libs.zip".'
|
|
47
|
+
false
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
27
51
|
ARGV.options { |opt|
|
|
28
52
|
opt.summary_indent = ' ' * 2
|
|
29
53
|
opt.summary_width = 15
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cpee-model-management
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen eTM Mangler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: tools
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-05-
|
|
11
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: riddl
|
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
|
-
rubygems_version: 3.1.
|
|
82
|
+
rubygems_version: 3.1.6
|
|
83
83
|
signing_key:
|
|
84
84
|
specification_version: 4
|
|
85
85
|
summary: "(Lifecycle) manage your process models in a directory or git repo."
|