cloudwalk 1.6.1 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c94481c92b0d193f0603a4ecfb3a3b4813e70e4
4
- data.tar.gz: e56131dd7c95749990c1ad1fce544641bc90f7b0
3
+ metadata.gz: 8c0b68813f550a83bc73d5b9f028433b05ff4c5e
4
+ data.tar.gz: 54f1a6cf8cb14b0f4d70c80adfb427283f1838e0
5
5
  SHA512:
6
- metadata.gz: e4c90b5db73ac8e5f2e2693bf5d0ea6ffc4f71abaf0df5d7ad46334e2794f268fa7534c0162fc8f6f26cecdc8642b7a0d11fb8c027e44079bf5a5fdc87a525a9
7
- data.tar.gz: 384a852b39db443f635a045186a12f7027dfbc5ee6cfeadbfd0bbfa5bc968e3133e89eca42a56d1491b095c8110acc2943be22414a7dda7c2d3406632cfec181
6
+ metadata.gz: 44e39e35804e809f1810f1381567345db684bc57c28a163ebc33ca9d5509c84debce055065bde01a606f4d83a252cbe2bfd569502cc024218871c50595d95352
7
+ data.tar.gz: 0270a2e556d8ad39e2453eb04c7db2249e5154cd8bfbfa5954a5534dd109d5d98747c09b03d203aef913e6b7800fb15c097b984b4fb9d1effb8c55b3de31c31d
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -89,7 +89,7 @@ module Cloudwalk
89
89
 
90
90
  if path = ARGV[1..-1].first
91
91
  xmls = [self.libs.find { |file| file == path }]
92
- xmls.zip([File.join(out, File.basename(xml2rb(xml)))])
92
+ xmls.zip([File.join(out, File.basename(xml2rb(path)))])
93
93
  else
94
94
  xmls = self.libs.inject([]) do |array, lib|
95
95
  array << [lib, File.join(out, File.basename(xml2rb(lib)))]
@@ -17,7 +17,14 @@ module Cloudwalk
17
17
  include Cloudwalk::ManagerHelper
18
18
  include ::Rake::DSL if defined?(::Rake::DSL)
19
19
 
20
+ attr_accessor :debug, :debug_flag
21
+
20
22
  def initialize
23
+ yield self if block_given?
24
+
25
+ @debug ||= false
26
+ @debug_flag = @debug ? '-g' : ''
27
+
21
28
  define
22
29
  end
23
30
 
@@ -56,7 +63,7 @@ module Cloudwalk
56
63
  files.each do |file,out|
57
64
  next if file == "./lib/main.rb"
58
65
  if File.file?(file)
59
- sh "cloudwalk compile -g -o #{out} #{file}"
66
+ sh "cloudwalk compile #{self.debug_flag} -o #{out} #{file}"
60
67
  end
61
68
  end
62
69
  end
@@ -64,6 +71,7 @@ module Cloudwalk
64
71
  desc "Create zipfile from all .mrb"
65
72
  task :single_package do
66
73
  require "archive/zip"
74
+ FileUtils.rm_f "./out/mrb.zip"
67
75
  Archive::Zip.archive "./out/mrb.zip", FileList["./out/shared/*.mrb"].to_a
68
76
  end
69
77
  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: 1.6.1
4
+ version: 1.7.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-02-15 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake