cloudwalk 1.5.0 → 1.6.0
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/exe/i386-apple-darwin14 +0 -0
- data/exe/i686-pc-linux-gnu +0 -0
- data/exe/i686-w64-mingw32.exe +0 -0
- data/exe/x86_64-apple-darwin14 +0 -0
- data/exe/x86_64-pc-linux-gnu +0 -0
- data/exe/x86_64-w64-mingw32.exe +0 -0
- data/lib/cloudwalk/manager_helper.rb +4 -0
- data/lib/cloudwalk/posxml/rake_task.rb +20 -0
- data/lib/cloudwalk/ruby/rake_task.rb +19 -0
- data/lib/cloudwalk/ruby/ruby_application.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8090ed8628cafe558569a7497206ffe35775ea20
|
4
|
+
data.tar.gz: 8d14541307e0868ce923b33bd2841b320575dd64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b2daf0d8ec51a40da8f41f349e77164d63eb8ea8e90064dcf9ca24a1d6400c5c81fa694186dfed1844b3c50bcf3fbfae11d9d68b986a7463389eb2ddefaee4
|
7
|
+
data.tar.gz: bf7b9f1afb95cda87abfdb06a413316cdd3ec6578843464c130b66eafc8facc9162c2a8ecccceded332ff174ca3a1a593df5863d9cceed13083aa999c31c830c
|
data/exe/i386-apple-darwin14
CHANGED
Binary file
|
data/exe/i686-pc-linux-gnu
CHANGED
Binary file
|
data/exe/i686-w64-mingw32.exe
CHANGED
Binary file
|
data/exe/x86_64-apple-darwin14
CHANGED
Binary file
|
data/exe/x86_64-pc-linux-gnu
CHANGED
Binary file
|
data/exe/x86_64-w64-mingw32.exe
CHANGED
Binary file
|
@@ -82,9 +82,29 @@ module Cloudwalk
|
|
82
82
|
Cloudwalk::CwFileJson.setup(true)
|
83
83
|
Cloudwalk::CwFileJson.persist_lock!
|
84
84
|
end
|
85
|
+
|
86
|
+
desc "Translate from .xml to .rb, OUT_PATH expected"
|
87
|
+
task :translate do
|
88
|
+
raise "OUT_PATH not send" unless out = ENV["OUT_PATH"]
|
89
|
+
|
90
|
+
if path = ARGV[1..-1].first
|
91
|
+
xmls = [self.libs.find { |file| file == path }]
|
92
|
+
xmls.zip([File.join(out, File.basename(xml2rb(xml)))])
|
93
|
+
else
|
94
|
+
xmls = self.libs.inject([]) do |array, lib|
|
95
|
+
array << [lib, File.join(out, File.basename(xml2rb(xml)))]
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
xmls.each do |xml, out|
|
100
|
+
sh "cloudwalk compile -txml -o #{out} #{xml}"
|
101
|
+
end
|
102
|
+
end
|
85
103
|
end
|
104
|
+
|
86
105
|
task :default => "cloudwalk:build"
|
87
106
|
end
|
88
107
|
end
|
89
108
|
end
|
90
109
|
end
|
110
|
+
|
@@ -47,6 +47,25 @@ module Cloudwalk
|
|
47
47
|
Cloudwalk::CwFileJson.setup(true)
|
48
48
|
Cloudwalk::CwFileJson.persist_lock!
|
49
49
|
end
|
50
|
+
|
51
|
+
desc "Compile each .rb to .mrb"
|
52
|
+
task :single_build do
|
53
|
+
FileUtils.mkdir_p "./out/shared"
|
54
|
+
|
55
|
+
files = FileList["./lib/*"].zip(FileList["./lib/*"].pathmap("./out/shared/%n.mrb"))
|
56
|
+
files.each do |file,out|
|
57
|
+
next if file == "./lib/main.rb"
|
58
|
+
if File.file?(file)
|
59
|
+
sh "cloudwalk compile -g -o #{out} #{file}"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
desc "Create zipfile from all .mrb"
|
65
|
+
task :single_package do
|
66
|
+
require "archive/zip"
|
67
|
+
Archive::Zip.archive "./out/mrb.zip", FileList["./out/shared/*.mrb"].to_a
|
68
|
+
end
|
50
69
|
end
|
51
70
|
|
52
71
|
task :default => "cloudwalk:build"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudwalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Scalone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|