smartware 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smartware/clients/cash_acceptor.rb +4 -0
- data/lib/smartware/drivers/cash_acceptor/dummy.rb +1 -1
- data/lib/smartware/drivers/modem/dummy.rb +4 -8
- data/lib/smartware/drivers/modem/standard.rb +1 -0
- data/lib/smartware/drivers/printer/dummy.rb +1 -1
- data/lib/smartware/interfaces/cash_acceptor.rb +4 -0
- data/lib/smartware/version.rb +1 -1
- metadata +2 -2
@@ -10,7 +10,7 @@ module Smartware
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def model
|
13
|
-
'
|
13
|
+
'Generic modem'
|
14
14
|
end
|
15
15
|
|
16
16
|
def error
|
@@ -18,16 +18,12 @@ module Smartware
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def signal_level
|
21
|
-
|
21
|
+
res = %w(-55 -51 -57 -53).sample
|
22
|
+
"#{res} dbm"
|
22
23
|
end
|
23
24
|
|
24
|
-
#
|
25
|
-
# Method send ussd to operator and return only valid answer body
|
26
|
-
# Don`t call with method synchronously from app, method waits USSD answer 3 sec,
|
27
|
-
# Use some scheduler and buffer for balance value
|
28
|
-
#
|
29
25
|
def ussd(code="*100#")
|
30
|
-
"
|
26
|
+
"Сервис временно недоступен"
|
31
27
|
end
|
32
28
|
|
33
29
|
end
|
data/lib/smartware/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: serialport
|