mrubyc-test 0.6.0 → 0.6.1

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
  SHA256:
3
- metadata.gz: f487ca59fe60282d05eefb7eaeee8b93971d690ac2b99985b473bb7c82d8ec50
4
- data.tar.gz: 372db4c64cf31926758dbc249a2364972eccdbc9b620e38b446992821a261e8d
3
+ metadata.gz: f6b6e64b49572a4c4a90f6a5a43d25309c42c91e004f6b6fc4e31ad84555d9c8
4
+ data.tar.gz: 1df134d8e5a19dc3b1c46e6ee97f5a25c89df2cf4287cac84589383b831dcb3b
5
5
  SHA512:
6
- metadata.gz: 9ca5dc64f934ad214ee5e7ccc4426ade163771b85a0e245bf24f0b59c3f6a0cf12b43b0d37cb8536ad818b139975c7d58da7b94f261144ed92bab727c6c85400
7
- data.tar.gz: d930234bca65fc38e5fa1fd8f26a71b6547b401560ada86df860d9aea0c34afd07af5012eb3222d5be165b976bbc99572a1beb01da8f2156ee13a4ace4fb7334
6
+ metadata.gz: fcb5ed97c767cb27084ccb99b5108e9556f196be113770369162362391304b46997ead657bf290b91eacb0aced27dc06051a11848b2a2570a9d69a3928d714a2
7
+ data.tar.gz: a7dc49998b925f0871819bcbd2d15eeb821d35ce2a7ebb48402a412f20cfa6c57012e8cd64cd556e8d91947ed96e4546e0a8400998d316f0832eca4deb99ed5c
@@ -9,37 +9,36 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.0.3.4)
12
+ activesupport (6.1.1)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.2, >= 2.2.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.5)
20
+ i18n (1.8.7)
21
21
  concurrent-ruby (~> 1.0)
22
- minitest (5.14.2)
23
- rake (13.0.1)
24
- rspec (3.9.0)
25
- rspec-core (~> 3.9.0)
26
- rspec-expectations (~> 3.9.0)
27
- rspec-mocks (~> 3.9.0)
28
- rspec-core (3.9.3)
29
- rspec-support (~> 3.9.3)
30
- rspec-expectations (3.9.2)
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.9.0)
33
- rspec-mocks (3.9.1)
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.9.0)
36
- rspec-support (3.9.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
- thread_safe (0.3.6)
40
- tzinfo (1.2.7)
41
- thread_safe (~> 0.1)
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.1.4
53
+ 2.2.5
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Mrubyc
2
2
  module Test
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
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.0
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: 2020-10-17 00:00:00.000000000 Z
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.1.2
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: []