mrubyc-test 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc5bc4e134fa8b9f118adf8aaa0048fa728524e2add9d4b1563115a0829f1c23
4
- data.tar.gz: 1cf62ac75d14e2c2dfaf43f4081152665310b319348a95fc40fede060e831aca
3
+ metadata.gz: c31b74ac4ad811032a16bb95564665c6973640c2fa6787a05e23261fcab090b0
4
+ data.tar.gz: 5cd106d0092c7b4ec2913002ec218c9349162b006d34753b758ad450d28e7fdf
5
5
  SHA512:
6
- metadata.gz: 767dceb63110ea84b2a817c8762f6939ebf65adcf066f73ee31a53322ad30898467ad2ec5a64c586288ac7e94973c8b96c2d34864ddbd6142740cdee9b7f3a8b
7
- data.tar.gz: 96e922f553d5e8eeda9fb1e96c1909375b778c87264ec3e98376ddf55631366441c0e55c770e57154d7ef57c41750d17755c9fdec5f711d1b0bcd484767ce4af
6
+ metadata.gz: 468f307d73c03d7fc9b9b76519ed1d1d89e6bc4713609e3f3177c5a621ff1666b2529d86a026900ea41c5bd7aca2de306a73a5ce8867f46ca0ad78565144c85f
7
+ data.tar.gz: 4a04ad62d05bf7765dbe26ecfae09c96d23167e933e91260dbe636ce16454c89ff3d10b0d9f2feb90aee19a12b5735095b930933cd8f9250a3393753749130da
@@ -1,21 +1,28 @@
1
- The MIT License (MIT)
1
+ BSD 3-Clause License
2
2
 
3
3
  Copyright (c) 2019 HASUMI Hitoshi
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
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
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
14
10
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
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/hasumikin/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.
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 [MIT License](https://opensource.org/licenses/MIT).
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
 
@@ -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
- FileUtils.mv "#{pwd}/#{config['mrubyc_src_dir']}/hal", "#{pwd}/#{config['mrubyc_src_dir']}/~hal"
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 "#{pwd}/#{config['mrubyc_src_dir']}/hal"
68
- FileUtils.mv "#{pwd}/#{config['mrubyc_src_dir']}/~hal", "#{pwd}/#{config['mrubyc_src_dir']}/hal"
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[33;1m"
19
- puts "Could not find class named `#{class_name}`. The file #{model_file} will be ignored"
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
@@ -1,5 +1,5 @@
1
1
  module Mrubyc
2
2
  module Test
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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/hasumikin/mrubyc-test"
15
- spec.license = "MIT"
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.2.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-03 00:00:00.000000000 Z
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/hasumikin/mrubyc-test
135
+ homepage: https://github.com/mrubyc/mrubyc-test
136
136
  licenses:
137
- - MIT
137
+ - BSD-3-Clause
138
138
  metadata: {}
139
139
  post_install_message:
140
140
  rdoc_options: []