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 +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -2
- data/RELEASE_NOTES.md +3 -0
- data/da_funk.gemspec +2 -1
- data/lib/da_funk/rake_task.rb +4 -2
- data/lib/da_funk/test.rb +0 -15
- data/lib/device/version.rb +1 -1
- data/lib/file_db.rb +1 -3
- data/utils/command_line_platform.rb +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90a9a5f13e7351436d38420ccf9e99ca4919f56c
|
4
|
+
data.tar.gz: c7745e68dbcf4fc145ca67cfc2c472cba6be8eda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ec253d98c010406b4d58f7590e5b54345db4fbe6384a049470b8aa2ceb8c599bef0cbef558010ded38e72f83d8712dfe3b4206863f47fc92253e0ef67151999
|
7
|
+
data.tar.gz: a723618fd4326f4788bd32b90a2be7b7fac2e085b9ed622027555b23efa6fcf6a6641c72d7df9f9bb15f356cf94b127c9d8cb8f0c55b12eb88da2777e5d4b921
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,9 +7,10 @@ GIT
|
|
7
7
|
PATH
|
8
8
|
remote: .
|
9
9
|
specs:
|
10
|
-
da_funk (0.5.
|
10
|
+
da_funk (0.5.4)
|
11
11
|
bundler (~> 1.7)
|
12
|
-
cloudwalk_handshake (~> 0.
|
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
|
data/RELEASE_NOTES.md
CHANGED
data/da_funk.gemspec
CHANGED
@@ -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.
|
30
|
+
spec.add_dependency "cloudwalk_handshake", "~> 0.5"
|
31
|
+
spec.add_dependency "posxml_parser", "~> 0.6"
|
31
32
|
end
|
data/lib/da_funk/rake_task.rb
CHANGED
@@ -72,8 +72,10 @@ module DaFunk
|
|
72
72
|
|
73
73
|
def execute_tests(files)
|
74
74
|
# Debug is always on during tests(-g)
|
75
|
-
|
76
|
-
|
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")}")
|
data/lib/da_funk/test.rb
CHANGED
@@ -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
|
data/lib/device/version.rb
CHANGED
data/lib/file_db.rb
CHANGED
@@ -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
|
-
|
25
|
-
@hash[key] = value.to_s
|
26
|
-
end
|
24
|
+
@hash[key] = value unless value.empty?
|
27
25
|
end
|
28
26
|
end
|
29
27
|
|
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.
|
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-
|
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.
|
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.
|
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.
|