da_funk 0.6.3 → 0.6.4
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 +4 -3
- data/RELEASE_NOTES.md +7 -0
- data/Rakefile +1 -0
- data/da_funk.gemspec +2 -2
- data/lib/da_funk.rb +1 -0
- data/lib/da_funk/version.rb +4 -0
- data/lib/device/printer.rb +1 -1
- data/lib/device/transaction/download.rb +1 -1
- data/lib/device/version.rb +0 -6
- data/test/test_helper.rb +1 -0
- data/test/unit/device/application_test.rb +6 -6
- data/test/unit/device/helper_test.rb +0 -9
- data/utils/command_line_platform.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b08890583ad6d10c592b5ef42e9f87586fcb5eb2
|
4
|
+
data.tar.gz: 73027d348b22d8a5b1799b5a631f2703ededa91a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c02ca455f484d9b6f2a89552c17b2a530305e04b86cc7b4ccc1ba65bce0a00c219a6fc3d136e07c396f689b6b053c3d2fc8c37a097094f761188804f3446bb33
|
7
|
+
data.tar.gz: 55ec01977d0b7f49d0557ddb0cdf0655bd924156f38469864bbc674b46f80d3eaceb58b37d49b6cddc79c0223a84e9805cc97edcce98424275b134286cbde262
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
da_funk (0.6.
|
4
|
+
da_funk (0.6.4)
|
5
5
|
bundler (~> 1.7)
|
6
6
|
cloudwalk_handshake (~> 0.5)
|
7
7
|
posxml_parser (~> 0.6)
|
@@ -11,14 +11,15 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
cloudwalk_handshake (0.5.
|
15
|
-
funky-simplehttp (0.4.
|
14
|
+
cloudwalk_handshake (0.5.3)
|
15
|
+
funky-simplehttp (0.4.4)
|
16
16
|
posxml_parser (0.7.2)
|
17
17
|
rake (10.5.0)
|
18
18
|
yard (0.8.7.6)
|
19
19
|
|
20
20
|
PLATFORMS
|
21
21
|
ruby
|
22
|
+
x86-mingw32
|
22
23
|
|
23
24
|
DEPENDENCIES
|
24
25
|
cloudwalk_handshake
|
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# DaFunk
|
2
2
|
|
3
|
+
### 0.6.4 - 2016-02-16 - Update cloudwalk_handshake
|
4
|
+
|
5
|
+
- Update cloudwalk_handshake to version 0.5.3.
|
6
|
+
- Add DaFunk::VERSION to define da_funk version.
|
7
|
+
- Change Device.version to define platform/device version.
|
8
|
+
- Fix Printer.check, syntax error.
|
9
|
+
|
3
10
|
### 0.6.3 - 2016-02-12 - Update cloudwalk_handshake
|
4
11
|
|
5
12
|
- Update cloudwalk_handshake to version 0.5.2.
|
data/Rakefile
CHANGED
data/da_funk.gemspec
CHANGED
@@ -5,11 +5,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
tasks = File.expand_path('../tasks', __FILE__)
|
6
6
|
$LOAD_PATH.unshift(tasks) unless $LOAD_PATH.include?(tasks)
|
7
7
|
|
8
|
-
require '
|
8
|
+
require 'da_funk/version.rb'
|
9
9
|
|
10
10
|
Gem::Specification.new do |spec|
|
11
11
|
spec.name = "da_funk"
|
12
|
-
spec.version =
|
12
|
+
spec.version = DaFunk::VERSION
|
13
13
|
spec.authors = ["Thiago Scalone"]
|
14
14
|
spec.email = ["thiago@cloudwalk.io"]
|
15
15
|
spec.summary = "MRuby Embedded System Framework"
|
data/lib/da_funk.rb
CHANGED
data/lib/device/printer.rb
CHANGED
@@ -21,7 +21,7 @@ class Device
|
|
21
21
|
IO_ERROR = -3
|
22
22
|
|
23
23
|
def self.request_file(remote_path, local_path, crc = "")
|
24
|
-
download = Device::Transaction::Download.new(Device::System.serial, "",
|
24
|
+
download = Device::Transaction::Download.new(Device::System.serial, "", DaFunk::VERSION)
|
25
25
|
download.perform(Device::Network.socket,
|
26
26
|
Device::Setting.company_name,
|
27
27
|
remote_path, local_path, Device::System.app,
|
data/lib/device/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
2
|
class ApplicationTest < DaFunk::Test.case
|
3
3
|
def setup
|
4
|
-
@file_path = "
|
4
|
+
@file_path = "#{Device::Setting.company_name}_ttt"
|
5
5
|
@string = "12345678901234567890"
|
6
|
-
@file = File.open("./ttt", "w+")
|
6
|
+
@file = File.open("./ttt.zip", "w+")
|
7
7
|
@file.write(@string)
|
8
8
|
@file.close
|
9
9
|
@crc = Device::Crypto.crc16_hex(@string)
|
@@ -11,21 +11,21 @@ class ApplicationTest < DaFunk::Test.case
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_check_crc_true
|
14
|
-
application = Device::Application.new("TTT", @file_path, "ruby",
|
14
|
+
application = Device::Application.new("TTT", @file_path, "ruby", nil)
|
15
15
|
assert_equal true, application.outdated?
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_check_crc_false
|
19
|
-
application = Device::Application.new("TTT", @file_path, "ruby",
|
19
|
+
application = Device::Application.new("TTT", @file_path, "ruby", @crc)
|
20
20
|
assert_equal false, application.outdated?
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_check_crc_non_file
|
24
24
|
application = Device::Application.new("TTT", "./non_exists", "ruby", "1111")
|
25
|
-
assert_equal
|
25
|
+
assert_equal true, application.outdated?
|
26
26
|
end
|
27
27
|
|
28
28
|
def teardown
|
29
|
-
File.delete(
|
29
|
+
File.delete("./ttt.zip")
|
30
30
|
end
|
31
31
|
end
|
@@ -44,15 +44,6 @@ class HelperTest < DaFunk::Test.case
|
|
44
44
|
assert_equal "10,000.000", @helper.number_to_currency(10000.0, {:precision => 3})
|
45
45
|
end
|
46
46
|
|
47
|
-
def test_number_to_currency_basic
|
48
|
-
assert_equal "U$: 0.00", @helper.number_to_currency("", {:label => "U$: "})
|
49
|
-
assert_equal "U$: 0.01", @helper.number_to_currency("1", {:label => "U$: "})
|
50
|
-
assert_equal "U$: 0.10", @helper.number_to_currency("10", {:label => "U$: "})
|
51
|
-
assert_equal "U$: 0.01", @helper.number_to_currency("01", {:label => "U$: "})
|
52
|
-
assert_equal "U$: 1.00", @helper.number_to_currency("100", {:label => "U$: "})
|
53
|
-
assert_equal "U$: 10.00", @helper.number_to_currency("1000", {:label => "U$: "})
|
54
|
-
end
|
55
|
-
|
56
47
|
def test_helper_include_scope
|
57
48
|
assert HelperKlass.methods.include? :attach
|
58
49
|
assert HelperKlass.new.methods.include? :attach
|
@@ -97,7 +97,7 @@ class CommandLinePlatform
|
|
97
97
|
def self.versions
|
98
98
|
{
|
99
99
|
"OS" => Device.version,
|
100
|
-
"SDK" =>
|
100
|
+
"SDK" => DaFunk::VERSION,
|
101
101
|
"EMV" => "0.0.1",
|
102
102
|
"Pinpad" => "0.0.1"
|
103
103
|
}
|
@@ -105,7 +105,7 @@ class CommandLinePlatform
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def self.version
|
108
|
-
|
108
|
+
DaFunk::VERSION
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
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.6.
|
4
|
+
version: 0.6.4
|
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-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/da_funk/screen.rb
|
121
121
|
- lib/da_funk/screen_flow.rb
|
122
122
|
- lib/da_funk/test.rb
|
123
|
+
- lib/da_funk/version.rb
|
123
124
|
- lib/device.rb
|
124
125
|
- lib/device/application.rb
|
125
126
|
- lib/device/audio.rb
|