da_funk 0.7.6 → 0.7.7
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/Gemfile.lock +5 -4
- data/RELEASE_NOTES.md +4 -0
- data/lib/da_funk/rake_task.rb +14 -6
- data/lib/da_funk/version.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: 57f40952aa906e1bcbd8b4c3f6f61cd100484c55
|
4
|
+
data.tar.gz: 744f2dccf16a02a1a66e98ca073ac1976c7930cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a7f5b7be3907ba556d1a2ccf389cd676100626f7ffa4794379bc8ac32da3b06a6e3679fa04a91f3a46f7e775ac827b23a2ba3e400a2ce1036140aa62d2cfca
|
7
|
+
data.tar.gz: f7a2a58e9569e5a106355b18c997b7ab3b3e4bbc2678ef27cad115f516a90daab3b7cc97d1ad721516f9272ce0b8edfd5a4f3ff6f2c669234525d6e157b6dc7a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
da_funk (0.7.
|
4
|
+
da_funk (0.7.7)
|
5
5
|
bundler (~> 1.7)
|
6
6
|
cloudwalk_handshake (~> 0.6)
|
7
7
|
funky-emv (~> 0.3)
|
@@ -15,10 +15,11 @@ GEM
|
|
15
15
|
funky-emv (0.3.2)
|
16
16
|
funky-tlv (~> 0.2)
|
17
17
|
funky-simplehttp (0.4.4)
|
18
|
-
funky-tlv (0.2.
|
19
|
-
posxml_parser (0.9.
|
18
|
+
funky-tlv (0.2.2)
|
19
|
+
posxml_parser (0.9.2)
|
20
|
+
funky-emv (~> 0.3)
|
20
21
|
rake (10.5.0)
|
21
|
-
yard (0.
|
22
|
+
yard (0.9.5)
|
22
23
|
|
23
24
|
PLATFORMS
|
24
25
|
ruby
|
data/RELEASE_NOTES.md
CHANGED
data/lib/da_funk/rake_task.rb
CHANGED
@@ -45,13 +45,13 @@ module DaFunk
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def get_mrbc_bin(from_user)
|
48
|
-
if (!
|
48
|
+
if (! platform_call("type mrbc > /dev/null 2>&1 ")) && from_user
|
49
49
|
from_user
|
50
|
-
elsif
|
50
|
+
elsif platform_call("type mrbc > /dev/null 2>&1 ")
|
51
51
|
"env mrbc"
|
52
52
|
elsif ENV["MRBC"]
|
53
53
|
ENV["MRBC"]
|
54
|
-
elsif
|
54
|
+
elsif platform_call("type cloudwalk > /dev/null 2>&1 ")
|
55
55
|
"env cloudwalk compile"
|
56
56
|
else
|
57
57
|
puts "$MRBC isn't set or mrbc/cloudwalk isn't on $PATH"
|
@@ -64,10 +64,10 @@ module DaFunk
|
|
64
64
|
command_line = File.join(File.dirname(__FILE__), "..", "..", "utils", "command_line_platform.rb")
|
65
65
|
command_line_obj = File.join(root_path, "out", "main", "command_line_platform.mrb")
|
66
66
|
all_files = FileList["test/test_helper.rb"] + libs + files + [command_line] + [File.join(File.dirname(__FILE__), "..", "..", "utils", "test_run.rb")]
|
67
|
-
if
|
67
|
+
if platform_call("#{mrbc} -g -o #{command_line_obj} #{command_line}") && platform_call("#{mrbc} -g -o #{test_out} #{all_files.uniq}")
|
68
68
|
puts "cd #{File.dirname(out_path)}"
|
69
69
|
FileUtils.cd File.dirname(out_path)
|
70
|
-
|
70
|
+
platform_call("#{mruby} #{File.join(name, "test.mrb")}")
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -81,6 +81,14 @@ module DaFunk
|
|
81
81
|
return path
|
82
82
|
end
|
83
83
|
|
84
|
+
def platform_call(command)
|
85
|
+
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM)
|
86
|
+
sh("bash -c\"#{command}\"")
|
87
|
+
else
|
88
|
+
sh command
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
84
92
|
def define
|
85
93
|
task :resources do
|
86
94
|
FileUtils.rm_rf File.join(root_path, "out")
|
@@ -100,7 +108,7 @@ module DaFunk
|
|
100
108
|
|
101
109
|
desc "Compile app to mrb and process resources"
|
102
110
|
task :build => :resources do
|
103
|
-
|
111
|
+
platform_call "#{mrbc} #{debug_flag} -o #{main_out} #{libs} "
|
104
112
|
end
|
105
113
|
|
106
114
|
namespace :test do
|
data/lib/da_funk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: da_funk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Scalone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|