mrubyc-test 0.6.0 → 0.6.1
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 +4 -4
- data/Gemfile.lock +23 -24
- data/lib/mrubyc-test.rb +1 -1
- data/lib/mrubyc/test/generator/attribute.rb +2 -0
- data/lib/mrubyc/test/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6b6e64b49572a4c4a90f6a5a43d25309c42c91e004f6b6fc4e31ad84555d9c8
|
|
4
|
+
data.tar.gz: 1df134d8e5a19dc3b1c46e6ee97f5a25c89df2cf4287cac84589383b831dcb3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcb5ed97c767cb27084ccb99b5108e9556f196be113770369162362391304b46997ead657bf290b91eacb0aced27dc06051a11848b2a2570a9d69a3928d714a2
|
|
7
|
+
data.tar.gz: a7dc49998b925f0871819bcbd2d15eeb821d35ce2a7ebb48402a412f20cfa6c57012e8cd64cd556e8d91947ed96e4546e0a8400998d316f0832eca4deb99ed5c
|
data/Gemfile.lock
CHANGED
|
@@ -9,37 +9,36 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (6.
|
|
12
|
+
activesupport (6.1.1)
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
-
i18n (>=
|
|
15
|
-
minitest (
|
|
16
|
-
tzinfo (~>
|
|
17
|
-
zeitwerk (~> 2.
|
|
14
|
+
i18n (>= 1.6, < 2)
|
|
15
|
+
minitest (>= 5.1)
|
|
16
|
+
tzinfo (~> 2.0)
|
|
17
|
+
zeitwerk (~> 2.3)
|
|
18
18
|
concurrent-ruby (1.1.7)
|
|
19
19
|
diff-lcs (1.4.4)
|
|
20
|
-
i18n (1.8.
|
|
20
|
+
i18n (1.8.7)
|
|
21
21
|
concurrent-ruby (~> 1.0)
|
|
22
|
-
minitest (5.14.
|
|
23
|
-
rake (13.0.
|
|
24
|
-
rspec (3.
|
|
25
|
-
rspec-core (~> 3.
|
|
26
|
-
rspec-expectations (~> 3.
|
|
27
|
-
rspec-mocks (~> 3.
|
|
28
|
-
rspec-core (3.
|
|
29
|
-
rspec-support (~> 3.
|
|
30
|
-
rspec-expectations (3.
|
|
22
|
+
minitest (5.14.3)
|
|
23
|
+
rake (13.0.3)
|
|
24
|
+
rspec (3.10.0)
|
|
25
|
+
rspec-core (~> 3.10.0)
|
|
26
|
+
rspec-expectations (~> 3.10.0)
|
|
27
|
+
rspec-mocks (~> 3.10.0)
|
|
28
|
+
rspec-core (3.10.1)
|
|
29
|
+
rspec-support (~> 3.10.0)
|
|
30
|
+
rspec-expectations (3.10.1)
|
|
31
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
32
|
-
rspec-support (~> 3.
|
|
33
|
-
rspec-mocks (3.
|
|
32
|
+
rspec-support (~> 3.10.0)
|
|
33
|
+
rspec-mocks (3.10.1)
|
|
34
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
35
|
-
rspec-support (~> 3.
|
|
36
|
-
rspec-support (3.
|
|
35
|
+
rspec-support (~> 3.10.0)
|
|
36
|
+
rspec-support (3.10.1)
|
|
37
37
|
rufo (0.12.0)
|
|
38
38
|
thor (1.0.1)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
zeitwerk (2.4.0)
|
|
39
|
+
tzinfo (2.0.4)
|
|
40
|
+
concurrent-ruby (~> 1.0)
|
|
41
|
+
zeitwerk (2.4.2)
|
|
43
42
|
|
|
44
43
|
PLATFORMS
|
|
45
44
|
ruby
|
|
@@ -51,4 +50,4 @@ DEPENDENCIES
|
|
|
51
50
|
rspec (~> 3.9)
|
|
52
51
|
|
|
53
52
|
BUNDLED WITH
|
|
54
|
-
2.
|
|
53
|
+
2.2.5
|
data/lib/mrubyc-test.rb
CHANGED
|
@@ -58,7 +58,7 @@ module Mrubyc::Test
|
|
|
58
58
|
[
|
|
59
59
|
"#{mrbc_path} -E -B test test.rb",
|
|
60
60
|
"#{mrbc_path} -E -B models models.rb",
|
|
61
|
-
"cc -I #{pwd}/#{config['mrubyc_src_dir']} -o test main.c #{pwd}/#{config['mrubyc_src_dir']}/*.c #{pwd}/#{config['mrubyc_src_dir']}/hal/*.c #{ENV["CFLAGS"]} #{ENV["LDFLAGS"]}",
|
|
61
|
+
"cc -O0 -g3 -Wall -I #{pwd}/#{config['mrubyc_src_dir']} -o test main.c #{pwd}/#{config['mrubyc_src_dir']}/*.c #{pwd}/#{config['mrubyc_src_dir']}/hal/*.c #{ENV["CFLAGS"]} #{ENV["LDFLAGS"]}",
|
|
62
62
|
"./test"].each do |cmd|
|
|
63
63
|
puts cmd
|
|
64
64
|
puts
|
|
@@ -10,6 +10,7 @@ module Mrubyc
|
|
|
10
10
|
def run(model_files: [], test_files:)
|
|
11
11
|
# get information from model files(application code)
|
|
12
12
|
model_files.each do |model_file|
|
|
13
|
+
puts "loading #{model_file}"
|
|
13
14
|
load model_file
|
|
14
15
|
class_name = File.basename(model_file, '.rb').camelize
|
|
15
16
|
begin
|
|
@@ -18,6 +19,7 @@ module Mrubyc
|
|
|
18
19
|
print "\e[33m"
|
|
19
20
|
puts "[WARN] #{model_file} doesn't have corresponding class `#{class_name}`."
|
|
20
21
|
print "\e[m"
|
|
22
|
+
next
|
|
21
23
|
end
|
|
22
24
|
model_class.class_eval do
|
|
23
25
|
def method_missing(_method_name, *_args)
|
data/lib/mrubyc/test/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mrubyc-test
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- HASUMI Hitoshi
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -137,7 +137,7 @@ homepage: https://github.com/mrubyc/mrubyc-test
|
|
|
137
137
|
licenses:
|
|
138
138
|
- BSD-3-Clause
|
|
139
139
|
metadata: {}
|
|
140
|
-
post_install_message:
|
|
140
|
+
post_install_message:
|
|
141
141
|
rdoc_options: []
|
|
142
142
|
require_paths:
|
|
143
143
|
- lib
|
|
@@ -152,8 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
153
|
version: '0'
|
|
154
154
|
requirements: []
|
|
155
|
-
rubygems_version: 3.
|
|
156
|
-
signing_key:
|
|
155
|
+
rubygems_version: 3.2.3
|
|
156
|
+
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: Test Framework for mruby/c
|
|
159
159
|
test_files: []
|