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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d30b6e3bee73bf81a3f7ba230c1a0c8e557e87ba
4
- data.tar.gz: 610cc3b616f3249c97c24d76694d7841419d49df
3
+ metadata.gz: 57f40952aa906e1bcbd8b4c3f6f61cd100484c55
4
+ data.tar.gz: 744f2dccf16a02a1a66e98ca073ac1976c7930cd
5
5
  SHA512:
6
- metadata.gz: be2f4097e2fee53fcd310825a136fce39120661b6c2dfee298ec8808e67915525ff9f74c3717d641c45c541e205f950c62002bc2e2781b490e119d92d95bc572
7
- data.tar.gz: c32f82b08d0f8f77e19c47ae1ec7e466c6d87a1211ce66a4f544a4858ad583da87dc03d686793a08f2ad0a1ee12d05a4334aae368de89ba8624bc4b320a082c6
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.6)
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.0)
19
- posxml_parser (0.9.1)
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.8.7.6)
22
+ yard (0.9.5)
22
23
 
23
24
  PLATFORMS
24
25
  ruby
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # DaFunk
2
2
 
3
+ ### 0.7.7 - 2016-09-20
4
+
5
+ - Fix system call in cygwin environment.
6
+
3
7
  ### 0.7.6 - 2016-09-08
4
8
 
5
9
  - Bug fix bitmap 128 bits size generation.
@@ -45,13 +45,13 @@ module DaFunk
45
45
  end
46
46
 
47
47
  def get_mrbc_bin(from_user)
48
- if (! system("type mrbc > /dev/null 2>&1 ")) && from_user
48
+ if (! platform_call("type mrbc > /dev/null 2>&1 ")) && from_user
49
49
  from_user
50
- elsif system("type mrbc > /dev/null 2>&1 ")
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 system("type cloudwalk > /dev/null 2>&1 ")
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 sh("#{mrbc} -g -o #{command_line_obj} #{command_line}") && sh("#{mrbc} -g -o #{test_out} #{all_files.uniq}")
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
- sh("#{mruby} #{File.join(name, "test.mrb")}")
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
- sh "#{mrbc} #{debug_flag} -o #{main_out} #{libs} "
111
+ platform_call "#{mrbc} #{debug_flag} -o #{main_out} #{libs} "
104
112
  end
105
113
 
106
114
  namespace :test do
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="0.7.6"
2
+ VERSION="0.7.7"
3
3
  end
4
4
 
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.6
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-08 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake