da_funk 0.5.3 → 0.5.4

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: 431f3a163440020ee762a35bed3017636e4ecfe9
4
- data.tar.gz: 8a950596de6fa69f4dc1ffb9ba927d9f353d3334
3
+ metadata.gz: 90a9a5f13e7351436d38420ccf9e99ca4919f56c
4
+ data.tar.gz: c7745e68dbcf4fc145ca67cfc2c472cba6be8eda
5
5
  SHA512:
6
- metadata.gz: 5854ea72eaf73de652e1dc4c2b00e56a264ed8d6c01ff500b3aceeadc50bc45df6a5e88a978e361f08f078579ee4676ffc371ac46bf42d9896ef7240bf599473
7
- data.tar.gz: efb79c4bbe6d47de7bb29d8e751e26f5540bec7069187883d2378f638cfa516caf95a609db66a9dbaaa6d45ed03206fd74ac81a839ac3bb2fc3c2c1cf547e979
6
+ metadata.gz: 8ec253d98c010406b4d58f7590e5b54345db4fbe6384a049470b8aa2ceb8c599bef0cbef558010ded38e72f83d8712dfe3b4206863f47fc92253e0ef67151999
7
+ data.tar.gz: a723618fd4326f4788bd32b90a2be7b7fac2e085b9ed622027555b23efa6fcf6a6641c72d7df9f9bb15f356cf94b127c9d8cb8f0c55b12eb88da2777e5d4b921
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem 'cloudwalk_handshake'
4
+ gem 'posxml_parser'
4
5
  gem 'simplehttp', :git => 'https://github.com/scalone/walk-simplehttp-poc.git'
5
6
 
6
7
  group :development do
@@ -7,9 +7,10 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- da_funk (0.5.3)
10
+ da_funk (0.5.4)
11
11
  bundler (~> 1.7)
12
- cloudwalk_handshake (~> 0.4)
12
+ cloudwalk_handshake (~> 0.5)
13
+ posxml_parser (~> 0.6)
13
14
  rake (~> 10.4)
14
15
  yard (~> 0.8)
15
16
 
@@ -17,6 +18,7 @@ GEM
17
18
  remote: https://rubygems.org/
18
19
  specs:
19
20
  cloudwalk_handshake (0.5.0)
21
+ posxml_parser (0.6.1)
20
22
  rake (10.4.2)
21
23
  yard (0.8.7.6)
22
24
 
@@ -27,5 +29,6 @@ PLATFORMS
27
29
  DEPENDENCIES
28
30
  cloudwalk_handshake
29
31
  da_funk!
32
+ posxml_parser
30
33
  simplehttp!
31
34
  yard
@@ -1,5 +1,8 @@
1
1
  # DaFunk
2
2
 
3
+ ### 0.5.4 - 2016-01-08 - Update posxml_parser
4
+ - Update posxml_parser to version 0.6.1.
5
+
3
6
  ### 0.5.3 - 2016-01-06 - Update cloudwalk_handshake
4
7
  - Update cloudwlak_handshake to version 0.5.0.
5
8
  - Support to execute an application as file.
@@ -27,5 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "rake", "~> 10.4"
28
28
  spec.add_dependency "bundler", "~> 1.7"
29
29
  spec.add_dependency "yard", "~> 0.8"
30
- spec.add_dependency "cloudwalk_handshake", "~> 0.4"
30
+ spec.add_dependency "cloudwalk_handshake", "~> 0.5"
31
+ spec.add_dependency "posxml_parser", "~> 0.6"
31
32
  end
@@ -72,8 +72,10 @@ module DaFunk
72
72
 
73
73
  def execute_tests(files)
74
74
  # Debug is always on during tests(-g)
75
- all_files = FileList["test/test_helper.rb"] + libs + files + [File.join(File.dirname(__FILE__), "..", "..", "utils", "command_line_platform.rb")] + [File.join(File.dirname(__FILE__), "..", "..", "utils", "test_run.rb")]
76
- if sh("#{mrbc} -g -o #{test_out} #{all_files.uniq}")
75
+ command_line = File.join(File.dirname(__FILE__), "..", "..", "utils", "command_line_platform.rb")
76
+ command_line_obj = File.join(root_path, "out", "main", "command_line_platform.mrb")
77
+ all_files = FileList["test/test_helper.rb"] + libs + files + [command_line] + [File.join(File.dirname(__FILE__), "..", "..", "utils", "test_run.rb")]
78
+ if sh("#{mrbc} -g -o #{command_line_obj} #{command_line}") && sh("#{mrbc} -g -o #{test_out} #{all_files.uniq}")
77
79
  puts "cd #{File.dirname(out_path)}"
78
80
  FileUtils.cd File.dirname(out_path)
79
81
  sh("#{mruby} #{File.join(name, "test.mrb")}")
@@ -13,9 +13,6 @@ module DaFunk
13
13
  engine.new.run
14
14
  end
15
15
 
16
- def setup
17
- end
18
-
19
16
  def platform
20
17
  :mruby
21
18
  end
@@ -32,12 +29,6 @@ module DaFunk
32
29
  platform == :mruby
33
30
  end
34
31
 
35
- def self.cruby?
36
- platform == :cruby
37
- end
38
-
39
- # TODO Scalone Refactor tests/libs for mruby and cruby checking project configuration
40
- # A good approach could be consider each test a runtime execution
41
32
  def self.configure
42
33
  yield self if block_given?
43
34
 
@@ -48,12 +39,6 @@ module DaFunk
48
39
  @brand ||= "test"
49
40
  @model ||= "test"
50
41
  @battery ||= "100"
51
- if self.cruby?
52
- @libs ||= FileList[File.join(root_path, 'lib/**/*.rb')]
53
- @tests ||= FileList[File.join(root_path, 'test/**/*test.rb')]
54
- end
55
-
56
- self.setup
57
42
  end
58
43
  end
59
44
  end
@@ -1,6 +1,6 @@
1
1
 
2
2
  class Device
3
- API_VERSION="0.5.3"
3
+ API_VERSION="0.5.4"
4
4
 
5
5
  def self.api_version
6
6
  Device::API_VERSION
@@ -21,9 +21,7 @@ class FileDb
21
21
  text.split("\n").compact.each do |line|
22
22
  key_value = line.split("=")
23
23
  key, value = sanitize(key_value[0]), sanitize(key_value[1])
24
- if @hash[key].nil? || @hash[key].empty?
25
- @hash[key] = value.to_s
26
- end
24
+ @hash[key] = value unless value.empty?
27
25
  end
28
26
  end
29
27
 
@@ -12,6 +12,7 @@ class CommandLinePlatform
12
12
  CommandLinePlatform::Display.standard_output = STDOUT
13
13
  Screen.setup(21, 20)
14
14
  begin
15
+ require 'posxml_parser'
15
16
  require 'cloudwalk_handshake'
16
17
  CloudwalkHandshake.configure!
17
18
  rescue LoadError
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.5.3
4
+ version: 0.5.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-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0.4'
61
+ version: '0.5'
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.4'
68
+ version: '0.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: posxml_parser
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '0.6'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '0.6'
69
83
  description: DaFunk is a Embedded System Framework optimized for programmer happiness
70
84
  and sustainable productivity. It encourages beautiful code by favoring convention
71
85
  over configuration.