da_funk 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adef8fa70692a70841ef0f3a5ef761ad6d3647ed
4
- data.tar.gz: ce46517ca6d0a4de8764a0e22f12fc33661862a3
3
+ metadata.gz: 1c9ada397c9b9c1cd9f1ae9505a0a3deb436edd1
4
+ data.tar.gz: ba5df87b7b440a73ec1de02bc1c529d2a1e2020b
5
5
  SHA512:
6
- metadata.gz: 6e0f063e26f422281c5c186061ff304193917be9d8538c0d76b9f4f5f6728d212e068fb9d0ef34e24ca51c1957042d3bb7187752876a9123e5fb6c1c2ae41944
7
- data.tar.gz: 834d3522cb37a0834145146a1e2cba4adc4aae225bc729b73c7c64d8ec68c80a922fa37c7fb8f621aec79cc5d6882ff8b66b49d864240e573fc1b0a78c78fc4a
6
+ metadata.gz: c2b7b78ebc01a1fb8efcc3033e1c9d9ec56c4dca4bdcf22b671717ce02f566f7c282566cde0e538940e70bf318cdeb6ab4c7595d0aadbd404631f5b3f061f0ab
7
+ data.tar.gz: a94b8b9282c324ee127d89c87c115b0d2270715007ad27250850d1296cb1b03a3852a1080132ba5f18ed88831903a30ddef6685bcd4c41a103c9356d47d67c0d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (0.21.0)
4
+ da_funk (0.22.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler (~> 1.7)
7
7
  cloudwalk_handshake (~> 0.6)
@@ -20,7 +20,7 @@ GEM
20
20
  funky-simplehttp (0.4.4)
21
21
  funky-tlv (0.2.3)
22
22
  io-like (0.3.0)
23
- posxml_parser (0.24.0)
23
+ posxml_parser (0.25.0)
24
24
  funky-emv (~> 0.3)
25
25
  rake (10.5.0)
26
26
  yard (0.9.9)
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # DaFunk
2
2
 
3
+ ### 0.22.0 - 2017-11-04
4
+
5
+ - Bug fix Device::Network.attach_timeout when dealing with wifi.
6
+ - Always shutdown interface after communication error.
7
+
3
8
  ### 0.21.0 - 2017-11-03
4
9
 
5
10
  - Implement custom Device::Setting.attach_gprs_timeout.
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="0.21.0"
2
+ VERSION="0.22.0"
3
3
  end
4
4
 
@@ -145,7 +145,11 @@ class Device
145
145
  end
146
146
 
147
147
  def self.attach_timeout
148
- Device::Setting.attach_gprs_timeout || Device::IO.timeout
148
+ if self.gprs?
149
+ Device::Setting.attach_gprs_timeout || Device::IO.timeout
150
+ else
151
+ Device::IO.timeout
152
+ end
149
153
  end
150
154
 
151
155
  def self.attach(options = nil)
@@ -168,7 +172,7 @@ class Device
168
172
  self.code = Device::Network.dhcp_client(20000) if (wifi? || ethernet?)
169
173
  else
170
174
  self.code = ERR_USER_CANCEL if hash[:key] == Device::IO::CANCEL
171
- Device::Network.disconnect
175
+ Device::Network.shutdown
172
176
  end
173
177
  end
174
178
  self.code
@@ -117,7 +117,7 @@ class Device
117
117
 
118
118
  def self.attach_gprs_timeout
119
119
  value = (Device::ParamsDat.file["attach_gprs_timeout"] || method_missing(:attach_gprs_timeout))
120
- value.to_s.empty? ? value : value.to_s.to_i
120
+ value.to_s.empty? ? nil : value.to_s.to_i
121
121
  end
122
122
  end
123
123
  end
data/out/da_funk.mrb CHANGED
Binary file
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.21.0
4
+ version: 0.22.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: 2017-11-04 00:00:00.000000000 Z
11
+ date: 2017-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake