da_funk 0.4.8 → 0.4.9

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: b1446cb5bdb03736d85f243da9e8a9bd46e6f8de
4
- data.tar.gz: c4b5cde8b5971c7df4aec2f22fa7031d51149769
3
+ metadata.gz: bf134b79b1735c0d37ddef7f421f9034226724c1
4
+ data.tar.gz: ce1d6d88bbb118646f4c2c32c900327f16fb25d6
5
5
  SHA512:
6
- metadata.gz: 340d76d27f72033a38bd09af0e566f36f17f5a536fc4787724d982a8837660c7a7fbad209568157e229d43e90a9b70ad87a95bd22db7476c360e8bb0b3675196
7
- data.tar.gz: 9a8412f650cd4c0b40885a2d5b2da3f22ee689330b000420c94410820c37147aeb18df16e08cb56b04f65de9960ecf98eec134777eec7b5960f23f76ce7ce8a5
6
+ metadata.gz: 3e3b13310c7cca732d6dd6c0bb4bf9c9dc3a51b6cce89a711ff94d9ef55b233b4f2241dd8c2bf1d82a47a10e5bd7b6b846ba406d172e332b3dc020522b573413
7
+ data.tar.gz: 0191d292cd7a94c4a062f46ebbbc3bf1422702176ac995d6dffbd604ea13adad3b5d10215a850cb28ca4d0e2aa6465fb9614bcf21995f83c49be9068b1a89a00
data/Gemfile.lock CHANGED
@@ -7,16 +7,16 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- da_funk (0.4.8)
10
+ da_funk (0.4.9)
11
11
  bundler (~> 1.7)
12
- cloudwalk_handshake (~> 0.2.0)
12
+ cloudwalk_handshake (~> 0.3)
13
13
  rake (~> 10.4)
14
14
  yard (~> 0.8)
15
15
 
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- cloudwalk_handshake (0.2.0)
19
+ cloudwalk_handshake (0.3.0)
20
20
  rake (10.4.2)
21
21
  yard (0.8.7.6)
22
22
 
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # DaFunk
2
2
 
3
+ ### 0.4.9 - 2015-08-04 - CloudwalkHandshake loading fix
4
+ - Fixes problem to load CloudwalkHandshake.
5
+
3
6
  ### 0.4.8 - 2015-07-29 - CloudwalkHandshake as dependency
4
7
  - Add CloudwalkHandshake as dependency.
5
8
 
data/da_funk.gemspec CHANGED
@@ -28,5 +28,5 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "rake", "~> 10.4"
29
29
  spec.add_dependency "bundler", "~> 1.7"
30
30
  spec.add_dependency "yard", "~> 0.8"
31
- spec.add_dependency "cloudwalk_handshake", "~> 0.2.0"
31
+ spec.add_dependency "cloudwalk_handshake", "~> 0.3"
32
32
  end
data/lib/da_funk/test.rb CHANGED
@@ -14,11 +14,6 @@ module DaFunk
14
14
  end
15
15
 
16
16
  def setup
17
- # TODO Scalone check this
18
- #libs.each do |file|
19
- #p file
20
- ##require file
21
- #end
22
17
  end
23
18
 
24
19
  def platform
@@ -71,6 +66,7 @@ module DaFunk
71
66
  end
72
67
 
73
68
  # TODO Scalone Refactor tests/libs for mruby and cruby checking project configuration
69
+ # A good approach could be consider each test a runtime execution
74
70
  def self.configure
75
71
  yield self if block_given?
76
72
 
@@ -1,6 +1,4 @@
1
1
 
2
- require 'cloudwalk_handshake'
3
-
4
2
  class Device
5
3
  class Network
6
4
 
@@ -40,9 +38,9 @@ class Device
40
38
  attr_accessor :type, :apn, :user, :password, :socket
41
39
  end
42
40
 
43
- self.socket = Proc.new do |avoid_walk|
44
- sock = CloudwalkSocket.new
45
- sock.connect(avoid_walk)
41
+ self.socket = Proc.new do |avoid_handshake|
42
+ sock = TCPSocket.new Device::Setting.host, Device::Setting.host_port
43
+ sock.connect(avoid_handshake)
46
44
  sock
47
45
  end
48
46
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  class Device
3
- API_VERSION="0.4.8"
3
+ API_VERSION="0.4.9"
4
4
 
5
5
  def self.api_version
6
6
  Device::API_VERSION
data/test/test_helper.rb CHANGED
@@ -1,18 +1,11 @@
1
+ ROOT_PATH = File.expand_path("./")
2
+ APP_NAME = File.basename(File.dirname(ROOT_PATH))
1
3
 
2
- if Object.const_defined?(:MTest)
3
- ROOT_PATH = File.expand_path("./")
4
- APP_NAME = File.basename(File.dirname(ROOT_PATH))
4
+ $LOAD_PATH.unshift "./#{APP_NAME}"
5
5
 
6
- $LOAD_PATH.unshift "./#{APP_NAME}"
6
+ require 'da_funk'
7
7
 
8
- require 'da_funk'
9
-
10
- DaFunk::Test.configure do |t|
11
- t.root_path = ROOT_PATH
12
- end
13
- else
14
- require "./lib/da_funk.rb"
15
- require "test/unit"
16
- require "./test/fixtures/platform.rb"
8
+ DaFunk::Test.configure do |t|
9
+ t.root_path = ROOT_PATH
17
10
  end
18
11
 
@@ -7,6 +7,14 @@ end
7
7
  class CommandLinePlatform
8
8
  IO = ::IO
9
9
 
10
+ def self.setup
11
+ begin
12
+ require 'cloudwalk_handshake'
13
+ CloudwalkHandshake.configure!
14
+ rescue
15
+ end
16
+ end
17
+
10
18
  class IO
11
19
  def self.get_string(min, max, option = nil)
12
20
  str = ""
@@ -64,4 +72,5 @@ end
64
72
 
65
73
  Device.adapter ||= CommandLinePlatform
66
74
  Device::System.klass = "main"
75
+ CommandLinePlatform.setup
67
76
 
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.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: '0.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0
68
+ version: '0.3'
69
69
  description: DaFunk is a Embedded System Framework optimized for programmer happiness
70
70
  and sustainable productivity. It encourages beautiful code by favoring convention
71
71
  over configuration.