mrubyc-test 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +23 -16
- data/README.md +2 -2
- data/lib/mrubyc-test.rb +5 -3
- data/lib/mrubyc/test/generator/attribute.rb +2 -2
- data/lib/mrubyc/test/version.rb +1 -1
- data/mrubyc-test.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c31b74ac4ad811032a16bb95564665c6973640c2fa6787a05e23261fcab090b0
|
4
|
+
data.tar.gz: 5cd106d0092c7b4ec2913002ec218c9349162b006d34753b758ad450d28e7fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468f307d73c03d7fc9b9b76519ed1d1d89e6bc4713609e3f3177c5a621ff1666b2529d86a026900ea41c5bd7aca2de306a73a5ce8867f46ca0ad78565144c85f
|
7
|
+
data.tar.gz: 4a04ad62d05bf7765dbe26ecfae09c96d23167e933e91260dbe636ce16454c89ff3d10b0d9f2feb90aee19a12b5735095b930933cd8f9250a3393753749130da
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,28 @@
|
|
1
|
-
|
1
|
+
BSD 3-Clause License
|
2
2
|
|
3
3
|
Copyright (c) 2019 HASUMI Hitoshi
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
11
7
|
|
12
|
-
|
13
|
-
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
9
|
+
list of conditions and the following disclaimer.
|
14
10
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
13
|
+
and/or other materials provided with the distribution.
|
14
|
+
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
16
|
+
contributors may be used to endorse or promote products derived from
|
17
|
+
this software without specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
CHANGED
@@ -146,11 +146,11 @@ end
|
|
146
146
|
|
147
147
|
## Contributing
|
148
148
|
|
149
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
149
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mrubyc/mrubyc-test. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
150
150
|
|
151
151
|
## License
|
152
152
|
|
153
|
-
The gem is available as open source under the terms of the [
|
153
|
+
The gem is available as open source under the terms of the [The 3-Clause BSD License](https://opensource.org/licenses/BSD-3-Clause).
|
154
154
|
|
155
155
|
## Code of Conduct
|
156
156
|
|
data/lib/mrubyc-test.rb
CHANGED
@@ -49,7 +49,9 @@ module Mrubyc::Test
|
|
49
49
|
print 'You can specify the version name of mruby [mruby-x.x.x]: '
|
50
50
|
mruby_version = STDIN.gets.chomp
|
51
51
|
end
|
52
|
-
|
52
|
+
hal_path = "#{pwd}/#{config['mrubyc_src_dir']}/hal"
|
53
|
+
hal_bak_path = "#{pwd}/#{config['mrubyc_src_dir']}/~hal"
|
54
|
+
FileUtils.mv(hal_path, hal_bak_path) if FileTest.exist?(hal_path)
|
53
55
|
begin
|
54
56
|
FileUtils.ln_s "#{pwd}/#{config['test_tmp_dir']}/hal", "#{pwd}/#{config['mrubyc_src_dir']}/hal"
|
55
57
|
Dir.chdir(tmp_dir) do
|
@@ -64,8 +66,8 @@ module Mrubyc::Test
|
|
64
66
|
end
|
65
67
|
end
|
66
68
|
ensure
|
67
|
-
FileUtils.rm
|
68
|
-
FileUtils.mv
|
69
|
+
FileUtils.rm hal_path
|
70
|
+
FileUtils.mv(hal_bak_path, hal_path) if FileTest.exist?(hal_bak_path)
|
69
71
|
end
|
70
72
|
end
|
71
73
|
|
@@ -15,8 +15,8 @@ module Mrubyc
|
|
15
15
|
begin
|
16
16
|
model_class = Module.const_get(class_name)
|
17
17
|
rescue NameError => e
|
18
|
-
print "\e[
|
19
|
-
puts "
|
18
|
+
print "\e[33m"
|
19
|
+
puts "[WARN] #{model_file} doesn't have corresponding class `#{class_name}`."
|
20
20
|
print "\e[m"
|
21
21
|
end
|
22
22
|
model_class.class_eval do
|
data/lib/mrubyc/test/version.rb
CHANGED
data/mrubyc-test.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Test Framework for mruby/c}
|
13
13
|
spec.description = %q{mrubyc-test is an unit test framework for mruby/c, supporting basic assertions, stub and mock.}
|
14
|
-
spec.homepage = "https://github.com/
|
15
|
-
spec.license = "
|
14
|
+
spec.homepage = "https://github.com/mrubyc/mrubyc-test"
|
15
|
+
spec.license = "BSD-3-Clause"
|
16
16
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
18
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HASUMI Hitoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -132,9 +132,9 @@ files:
|
|
132
132
|
- lib/templates/sample_test.rb.erb
|
133
133
|
- lib/templates/test.rb.erb
|
134
134
|
- mrubyc-test.gemspec
|
135
|
-
homepage: https://github.com/
|
135
|
+
homepage: https://github.com/mrubyc/mrubyc-test
|
136
136
|
licenses:
|
137
|
-
-
|
137
|
+
- BSD-3-Clause
|
138
138
|
metadata: {}
|
139
139
|
post_install_message:
|
140
140
|
rdoc_options: []
|