da_funk 3.10.6 → 3.11.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
- SHA1:
3
- metadata.gz: 85e0f8a4a1c98aa9122c819a59f720f05132e871
4
- data.tar.gz: f3ddcfbe75273da967e1a9e984a4a4805d4ce5f3
2
+ SHA256:
3
+ metadata.gz: 63c8c0233041d63146912c91757eb6751c39ce0182245661ef310092044c63ad
4
+ data.tar.gz: 683851e9279ac776c6ae1c8d0617f760fff06fabd33d62a16a3ff810d074366f
5
5
  SHA512:
6
- metadata.gz: b4be177fed99b81a3ffdb0de1a9c6695aadb458f8c7a3d1fc12df42a7b1a33df91bcd1e0f99162315290bd93b62b571c4b2f56fbb0d46700c39ec90c7093910c
7
- data.tar.gz: 07e615cbe14726e4d041f5e3d63b015723301428b0e92ed1686d6bb9a0e0f45ede41650edc43e363768e098b3db82f2b999d1883e329216f0a3f3d9297e22fbc
6
+ metadata.gz: cd1658be4ae90d46743aaf2b7d44c7fdd8cebaa113e6855a352f9876ed396772c9534054014a36fcbc51b33ecc35bd56566af45e3cf5b2df84ead94cf058699b
7
+ data.tar.gz: 6f01c1071e53b620e1f663e370e6fea388fdaa04f44cdfa78cc2be47c66cca0872b1cf2992fc6cd38503f6f489aa0824c33b54b018485d3e645148e8bd8a65fc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.10.6)
4
+ da_funk (3.11.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -18,7 +18,7 @@ GEM
18
18
  cloudwalk (1.14.3)
19
19
  bundler
20
20
  rake
21
- cloudwalk_handshake (1.6.0)
21
+ cloudwalk_handshake (1.8.1)
22
22
  funky-simplehttp (~> 0.6)
23
23
  funky-emv (1.2.1)
24
24
  funky-tlv (~> 0.2)
@@ -27,13 +27,13 @@ GEM
27
27
  io-like (0.3.0)
28
28
  jaro_winkler (1.5.3)
29
29
  parallel (1.17.0)
30
- parser (2.6.3.0)
30
+ parser (2.6.4.1)
31
31
  ast (~> 2.4.0)
32
- posxml_parser (2.22.0)
32
+ posxml_parser (2.23.0)
33
33
  funky-emv (~> 1)
34
34
  rainbow (3.0.0)
35
- rake (12.3.2)
36
- rubocop (0.72.0)
35
+ rake (13.0.0)
36
+ rubocop (0.74.0)
37
37
  jaro_winkler (~> 1.5.1)
38
38
  parallel (~> 1.10)
39
39
  parser (>= 2.6)
@@ -1,5 +1,9 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.11.0 - 2019-09-26
4
+
5
+ - Implemented processing method helper which can show processing image or text while runtime is starting a ruby application.
6
+
3
7
  ### 3.10.6 - 2019-08-11
4
8
 
5
9
  - Fix more encoding problems ISO8583 Bitmap and Message.
@@ -334,6 +334,18 @@ module DaFunk
334
334
  end
335
335
  end
336
336
 
337
+ def processing(image, message = {})
338
+ Device::Display.print_bitmap(to_bmp(image)) if bmp_exists?(image)
339
+ end
340
+
341
+ def bmp_exists?(bmp)
342
+ File.exists?(to_bmp(bmp))
343
+ end
344
+
345
+ def to_bmp(image)
346
+ "./shared/#{image.to_s}.bmp"
347
+ end
348
+
337
349
  private
338
350
  def form_default(options = {})
339
351
  options[:default] ||= ""
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.10.6"
2
+ VERSION="3.11.0"
3
3
  end
4
4
 
@@ -1,5 +1,7 @@
1
1
  class Device
2
2
  class Runtime
3
+ include DaFunk::Helper
4
+
3
5
  def self.adapter
4
6
  Device.adapter::Runtime
5
7
  end
@@ -12,6 +14,7 @@ class Device
12
14
  # @param json [String] Parameters to confifure new aplication.
13
15
  # @return [Object] From the new runtime instance.
14
16
  def self.execute(app, json = nil)
17
+ processing(:processing)
15
18
  execution_ret = mrb_eval("Context.execute('#{app}', '#{Device.adapter}', '#{json}')", app)
16
19
  self.system_reload
17
20
  return execution_ret
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: 3.10.6
4
+ version: 3.11.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: 2019-08-10 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -253,8 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubyforge_project:
257
- rubygems_version: 2.6.14
256
+ rubygems_version: 3.0.3
258
257
  signing_key:
259
258
  specification_version: 4
260
259
  summary: MRuby Embedded System Framework