da_funk 3.12.4 → 3.13.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
- SHA256:
3
- metadata.gz: 5ec862f024d40c9c78790aa57f715518e54809b586946354c7c623e4bc70e715
4
- data.tar.gz: 26018800e1de4b306d5e5e6bb5a4873a89f689b2c96fb953bc8896cab67efcbb
2
+ SHA1:
3
+ metadata.gz: 2391fc1339a838f06359bf7b18e71db45b6937a7
4
+ data.tar.gz: 04c662fdb17e7cf467806b165a2f747f0128feac
5
5
  SHA512:
6
- metadata.gz: c73d6f5ad59e1a6ee506af118c0e9d770babbce6890f3c3ef624a18b386dd0f1ec33c0fccccf96a86486117d11556048cdb6442037011ed9092d3def2a55a1e3
7
- data.tar.gz: 16c8b9bb030f3288939864611bfec11314f75726a64f08fb1afe96f7286da4adb9164494fa7f16e2d009f489424d2fd0d2cb41faf2cad1d5b43e526fce1d9eb8
6
+ metadata.gz: 922e85e0864a77b33b8b380876bf3f1f27614810abd0a1cfc028db49ebb55e213b9476584334c85c483df30f52527af69298768a56c9feb2a84242e80f243457
7
+ data.tar.gz: 86bd152486265fd0ab1919150a793a8547d29fada8a950a21e6ad9aaca0d8340a7185aae29842d75e01bbd7de6fbf85d55dd2beaeca8345bde6d13827e1ea50f
data/Gemfile CHANGED
@@ -2,5 +2,6 @@ source "https://rubygems.org"
2
2
 
3
3
  gem 'cloudwalk'
4
4
  gem 'rubocop', require: false
5
+ gem 'funky-mock'
5
6
 
6
7
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.12.4)
4
+ da_funk (3.13.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -22,18 +22,19 @@ GEM
22
22
  funky-simplehttp (~> 0.6)
23
23
  funky-emv (1.2.1)
24
24
  funky-tlv (~> 0.2)
25
+ funky-mock (0.1.0)
25
26
  funky-simplehttp (0.6.0)
26
27
  funky-tlv (0.2.3)
27
28
  io-like (0.3.0)
28
- jaro_winkler (1.5.3)
29
- parallel (1.17.0)
30
- parser (2.6.4.1)
29
+ jaro_winkler (1.5.4)
30
+ parallel (1.19.1)
31
+ parser (2.6.5.0)
31
32
  ast (~> 2.4.0)
32
- posxml_parser (2.24.1)
33
+ posxml_parser (2.25.0)
33
34
  funky-emv (~> 1)
34
35
  rainbow (3.0.0)
35
- rake (13.0.0)
36
- rubocop (0.74.0)
36
+ rake (13.0.1)
37
+ rubocop (0.77.0)
37
38
  jaro_winkler (~> 1.5.1)
38
39
  parallel (~> 1.10)
39
40
  parser (>= 2.6)
@@ -52,6 +53,7 @@ PLATFORMS
52
53
  DEPENDENCIES
53
54
  cloudwalk
54
55
  da_funk!
56
+ funky-mock
55
57
  funky-simplehttp
56
58
  rubocop
57
59
  yard
@@ -1,5 +1,12 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.13.0 - 2019-12-03
4
+
5
+ - Added funky-mock library;
6
+ - Add status bar spinner to system update;
7
+ - Support background update;
8
+ - Refactoring touch events handling.
9
+
3
10
  ### 3.12.4 - 2019-11-28
4
11
 
5
12
  - Bug fix on wait_touchscreen_or_keyboard_event. Use getxy instead getxy_stream to clean up events queue.
@@ -218,9 +218,11 @@ module DaFunk
218
218
  time = Time.now + timeout / 1000
219
219
  keys = ((1..(menu_itens.size)).to_a.map(&:to_s) + options[:special_keys]).flatten
220
220
 
221
+ touch_clear
222
+
221
223
  loop do
222
224
  break([:timeout, Device::IO::KEY_TIMEOUT]) if Time.now > time
223
- x, y = getxy(100)
225
+ x, y = getxy_stream(100)
224
226
  if x && y
225
227
  event = parse_touchscreen_event(menu_itens, x, y)
226
228
  break(event) if event
@@ -5,6 +5,7 @@ module DaFunk
5
5
  SLOT_CONNECTION = 0
6
6
  SLOT_BATTERY = 7
7
7
  SLOT_LINK = 1
8
+ SLOT_UPDATE = 2
8
9
 
9
10
  BATTERY_IMAGES = {
10
11
  0..24 => "./shared/battery0.png",
@@ -44,6 +45,15 @@ module DaFunk
44
45
  self.change_connection
45
46
  self.change_battery
46
47
  self.change_link
48
+ self.change_update
49
+ end
50
+ end
51
+
52
+ def self.change_update
53
+ if File.exists?('./shared/system_update')
54
+ PAX::Display.print_status_bar(SLOT_UPDATE, "./shared/system_update_download.png")
55
+ else
56
+ PAX::Display.print_status_bar(SLOT_UPDATE, nil)
47
57
  end
48
58
  end
49
59
 
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.12.4"
2
+ VERSION="3.13.0"
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: 3.12.4
4
+ version: 3.13.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-11-28 00:00:00.000000000 Z
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -253,7 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubygems_version: 3.0.6
256
+ rubyforge_project:
257
+ rubygems_version: 2.6.14
257
258
  signing_key:
258
259
  specification_version: 4
259
260
  summary: MRuby Embedded System Framework