cloudwalk 0.1.0 → 0.1.1
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/cw_file_json.rb +28 -19
- data/lib/cloudwalk/rake_task.rb +1 -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: f6d76b3afb06d902fc1235c9285a78d73c657b30
|
4
|
+
data.tar.gz: 6b50e42b1c3deac0e189e8517c6f13292fb39bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b4cddbfb08578ceaf1cd7eefec439d696565777c360956409ccf96fb4d1d107c434d7664e057325a1952881eb439df094e0eb6d0001df7443e80ce890197d9c
|
7
|
+
data.tar.gz: 7e5e9c969f4512dfa1d1de9886091ae173292f52d137733a34277f224d8e3298b3c60b2f1322bb88f009f1cd0a11ecc9fbbf78dde58ba5a9536d5ad538faefed
|
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
|
@@ -86,14 +86,7 @@ module Cloudwalk
|
|
86
86
|
true
|
87
87
|
elsif CwFileJson.exists_lock?
|
88
88
|
if self.lock = load_cwfile_lock
|
89
|
-
|
90
|
-
if difference.empty?
|
91
|
-
true
|
92
|
-
else
|
93
|
-
puts "Warning Cwfile.json and Cwfile.json.lock are different, follow differences:"
|
94
|
-
puts difference
|
95
|
-
false
|
96
|
-
end
|
89
|
+
self.compare
|
97
90
|
end
|
98
91
|
else
|
99
92
|
persist_lock!
|
@@ -171,6 +164,11 @@ module Cloudwalk
|
|
171
164
|
end
|
172
165
|
end
|
173
166
|
|
167
|
+
unless app_lock
|
168
|
+
# TODO Improve!
|
169
|
+
raise Exception.new("application or module #{path} not found in Manager, please create it")
|
170
|
+
end
|
171
|
+
|
174
172
|
Cloudwalk::PosxmlVersion.update(
|
175
173
|
app_lock["id"], app_lock["version_id"], File.read(path)
|
176
174
|
)
|
@@ -196,23 +194,34 @@ module Cloudwalk
|
|
196
194
|
# TODO future!
|
197
195
|
|
198
196
|
def self.compare
|
199
|
-
cwfile_list =
|
200
|
-
|
201
|
-
|
202
|
-
|
197
|
+
cwfile_list = []
|
198
|
+
self.cwfile["apps"].each do |app|
|
199
|
+
cwfile_list << [app["name"], app["version"]]
|
200
|
+
app["modules"].each do |app_module|
|
201
|
+
cwfile_list << [app_module[0], app_module[1]]
|
203
202
|
end
|
204
|
-
hash
|
205
203
|
end
|
206
204
|
|
207
|
-
lock_list =
|
208
|
-
|
209
|
-
|
210
|
-
|
205
|
+
lock_list = []
|
206
|
+
self.lock.each do |app|
|
207
|
+
lock_list << [posxml2xml(app["name"]), app["version"]]
|
208
|
+
app["modules"].each do |app_module|
|
209
|
+
lock_list << [posxml2xml(app_module["name"]), posxml2xml(app_module["version"])]
|
211
210
|
end
|
212
|
-
hash
|
213
211
|
end
|
214
212
|
|
215
|
-
cwfile_list
|
213
|
+
cwdiff = cwfile_list - lock_list
|
214
|
+
lockdiff = lock_list - cwfile_list
|
215
|
+
unless cwdiff.empty? && lockdiff.empty?
|
216
|
+
puts "Warning Cwfile.json and Cwfile.json.lock are different, follow differences:"
|
217
|
+
puts "Cwfile.json"
|
218
|
+
puts cwdiff.inspect
|
219
|
+
puts "Cwfile.json.lock"
|
220
|
+
puts lockdiff.inspect
|
221
|
+
false
|
222
|
+
else
|
223
|
+
true
|
224
|
+
end
|
216
225
|
end
|
217
226
|
|
218
227
|
def compare_modules(local_app, module_ids)
|
data/lib/cloudwalk/rake_task.rb
CHANGED
@@ -64,7 +64,7 @@ module Cloudwalk
|
|
64
64
|
Cloudwalk::CwFileJson.deploy([Cloudwalk::CwFileJson.xml2posxml(out)])
|
65
65
|
else
|
66
66
|
posxmls = self.outs.collect do |xml|
|
67
|
-
Cloudwalk::CwFileJson.xml2posxml(
|
67
|
+
Cloudwalk::CwFileJson.xml2posxml(xml)
|
68
68
|
end
|
69
69
|
Cloudwalk::CwFileJson.deploy(posxmls)
|
70
70
|
end
|
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: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Scalone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|