da_funk 1.4.4 → 1.5.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
2
  SHA1:
3
- metadata.gz: de97de16fe264d536ba58cd6a1e839c3207bfad6
4
- data.tar.gz: 69b95af55a5d72a129d0e82da0ecd22ab05e9838
3
+ metadata.gz: 23ef9a72bcd79debf9223f7d3976b4bcf3aa8f1a
4
+ data.tar.gz: bf97be30cc53ef2b1da9a7ea9041464deebc976a
5
5
  SHA512:
6
- metadata.gz: b00b2c75191398d6aa7134a59fc8793154f013f91831fbf6fafae99c8eb9058a949c624ea5d3ed546d5b259f83ff0bc64e76a1779f42d258faf5baa24611dc83
7
- data.tar.gz: d2043135ee5494085714e9321e3a88aa16a7ef0f6e2eae948e261f17758273eddd3ac78c2288b4a4224bab4c6c1b476b5ce6c968958a02484e6edfc02a2abade
6
+ metadata.gz: 179af93e10880bd56c5ed30c4df49b7797070db5a691c8e1b2a5c5545d5c1d5e8427e0bc575da7f58d3f1cc9724af6b1d792ade5e3a02f7873e9caa002f00cd2
7
+ data.tar.gz: 172cee611f6a8c14c04d0dde48a61f895e3bd964aa30c8cf07cf63787543b285d551f454deacbcf20f49144ccfd98523c3555f476f2f73a5d94971a4c6e3a360
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (1.4.4)
4
+ da_funk (1.5.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -1,5 +1,9 @@
1
1
  # DaFunk
2
2
 
3
+ ### 1.5.0 - 2018-01-24
4
+
5
+ - Implement Network::configure to split Network::init in two parts, configure for the definition of the interface, and init it self the system call.
6
+
3
7
  ### 1.4.4 - 2018-01-24
4
8
 
5
9
  - Fix Screen.add when column is missing.
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="1.4.4"
2
+ VERSION="1.5.0"
3
3
  end
4
4
 
@@ -58,6 +58,10 @@ class Device
58
58
  adapter.init(type, options)
59
59
  end
60
60
 
61
+ def self.configure(type, options)
62
+ adapter.configure(type, options)
63
+ end
64
+
61
65
  def self.power(command)
62
66
  adapter.power(command)
63
67
  end
@@ -191,7 +195,7 @@ class Device
191
195
  end
192
196
 
193
197
  def self.setup
194
- self.configured? && Device::Network.init(*self.config) == SUCCESS
198
+ self.configured? && (Device::Network.configure(*self.config) == SUCCESS)
195
199
  end
196
200
 
197
201
  # TODO should check if WIFI, ETHERNET and etc
@@ -13,13 +13,13 @@ class Device
13
13
  # @return [Object] From the new runtime instance.
14
14
  def self.execute(app, json = nil)
15
15
  execution_ret = mrb_eval("Context.start('#{app}', '#{Device.adapter}', '#{json}')")
16
- self.system_reaload
16
+ self.system_reload
17
17
  return execution_ret
18
18
  end
19
19
 
20
20
  # Check if any change has happen to Network, Settings or ParamsDat
21
21
  # @return [NilClass] From the new runtime instance.
22
- def self.system_reaload
22
+ def self.system_reload
23
23
  Device::Setting.setup
24
24
  DaFunk::ParamsDat.setup
25
25
  Device::Network.setup
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_funk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone