zinbei 1.2.4 → 1.2.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +5 -5
  2. data/.document +4 -4
  3. data/.rspec +1 -1
  4. data/Gemfile +17 -9
  5. data/Gemfile.lock +74 -32
  6. data/LICENSE.txt +18 -45
  7. data/README.md +50 -6
  8. data/Rakefile +48 -48
  9. data/bin/rantan +11 -10
  10. data/bin/sava +11 -10
  11. data/bin/zinbei +268 -279
  12. data/bin/zinbeiw +791 -836
  13. data/doc/Compiler.html +213 -213
  14. data/doc/Zinbeijett.html +162 -162
  15. data/doc/css/fonts.css +167 -167
  16. data/doc/css/rdoc.css +590 -590
  17. data/doc/fonts.css +167 -167
  18. data/doc/js/darkfish.js +161 -161
  19. data/doc/js/jquery.js +3 -3
  20. data/doc/js/navigation.js +142 -142
  21. data/doc/js/search.js +109 -109
  22. data/doc/js/searcher.js +229 -229
  23. data/doc/rdoc.css +580 -580
  24. data/install.rb +15 -15
  25. data/lib/zinbei.rb +15 -19
  26. data/lib/zinbei/datetime.rb +13 -13
  27. data/lib/zinbei/down.rb +9 -7
  28. data/lib/zinbei/ika.rb +13 -12
  29. data/lib/zinbei/io.rb +16 -14
  30. data/lib/zinbei/number.rb +10 -10
  31. data/lib/zinbei/scom.rb +11 -13
  32. data/lib/zinbei/str.rb +13 -11
  33. data/lib/zinbei/time.rb +5 -3
  34. data/lib/zinbei/up.rb +9 -7
  35. data/lib/zinbei/version.rb +13 -9
  36. data/mini_test/mini_test_date.rb +11 -0
  37. data/mini_test/mini_test_encode.rb +12 -0
  38. data/mini_test/mini_test_method.rb +20 -0
  39. data/mini_test/mini_test_search.rb +12 -0
  40. data/mini_test/mini_test_sort.rb +14 -0
  41. data/mini_test/mini_test_updown.rb +18 -0
  42. data/mini_test/mini_test_version.rb +12 -0
  43. data/mini_test/test_helper.rb +10 -0
  44. data/mini_test_runner.rb +81 -0
  45. data/test_runner.rb +42 -1
  46. data/zinbei.gemspec +25 -25
  47. metadata +12 -19
  48. data/.idea/encodings.xml +0 -7
  49. data/.idea/inspectionProfiles/profiles_settings.xml +0 -7
  50. data/.idea/misc.xml +0 -6
  51. data/.idea/modules.xml +0 -9
  52. data/.idea/scopes/scope_settings.xml +0 -5
  53. data/.idea/vcs.xml +0 -7
  54. data/images/logo.jpeg +0 -0
  55. data/images/taka.jpg +0 -0
  56. data/images/tweet_icon.gif +0 -0
  57. data/images/zinbei.ico +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a1ca0c7f354d772553b3c792fb51ba9f726a1f64
4
- data.tar.gz: d68941a6a215124c02d3313714c0ea2a4a3ea5fc
2
+ SHA256:
3
+ metadata.gz: 36698c12f0fc163d2ba574e51f0f9626177e7d533f6d709c292794e48207c45a
4
+ data.tar.gz: e4e8abb4f98249e92cffa87e56cc29a567ec151c112a9b9340fb3bef8ca6fb10
5
5
  SHA512:
6
- metadata.gz: 9c09b74e766edb4b19284abce9d5a5538cf559c75d330b468bc3f1cef985f36711ba450ebb5411a6a8e872ee3422b9bc0f685cb0a4c04f07afa73ef20fa758b2
7
- data.tar.gz: 95fc21af461e429abb3316113fa706a06509af06029828b8d024478ed06c5fff6213c20db49f489fbc67132eea92f961fc56372c15826d9bd10d54b15ec657fa
6
+ metadata.gz: 428873b9d6a019b1089374bad7aa9e2d49e04b9d36a50ef861c7a5dbaeb5309421cb1e5de9f050fbb9b3e673103fcf5b9750231407f9a0724d446b298c388914
7
+ data.tar.gz: 05a6c5a68ceaf684c31c996ff02d6de5700063389787e429de9e95b0e18d6623d4684bb324b784f15d7d3d077e921fa3474de5b242f80f60aaadf9cbaba6e62d
data/.document CHANGED
@@ -1,4 +1,4 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- LICENSE.txt
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ LICENSE.txt
data/.rspec CHANGED
@@ -1 +1 @@
1
- --color
1
+ --color
data/Gemfile CHANGED
@@ -1,9 +1,17 @@
1
- source 'http://rubygems.org'
2
-
3
- # Specify your gem's dependencies in zinbei.gemspec
4
- # gemspec
5
-
6
- gem 'bundler'
7
- gem 'rspec'
8
- gem 'rake'
9
- gem 'tanraku'
1
+ source 'http://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in zinbei.gemspec
4
+ # gemspec
5
+
6
+ ruby '2.6.0'
7
+
8
+ gem 'bundler'
9
+ gem 'debase'
10
+ gem 'minitest'
11
+ gem 'minitest-reporters'
12
+ gem 'rake'
13
+ gem 'rspec'
14
+ gem 'rubocop'
15
+ gem 'ruby-debug-ide'
16
+ gem 'tanraku'
17
+ gem 'test-unit'
@@ -1,32 +1,74 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- diff-lcs (1.2.5)
5
- rake (10.5.0)
6
- rspec (3.4.0)
7
- rspec-core (~> 3.4.0)
8
- rspec-expectations (~> 3.4.0)
9
- rspec-mocks (~> 3.4.0)
10
- rspec-core (3.4.2)
11
- rspec-support (~> 3.4.0)
12
- rspec-expectations (3.4.0)
13
- diff-lcs (>= 1.2.0, < 2.0)
14
- rspec-support (~> 3.4.0)
15
- rspec-mocks (3.4.1)
16
- diff-lcs (>= 1.2.0, < 2.0)
17
- rspec-support (~> 3.4.0)
18
- rspec-support (3.4.1)
19
- tanraku (0.0.9)
20
-
21
- PLATFORMS
22
- ruby
23
- x86-mingw32
24
-
25
- DEPENDENCIES
26
- bundler
27
- rake
28
- rspec
29
- tanraku
30
-
31
- BUNDLED WITH
32
- 1.15.4
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ ansi (1.5.0)
5
+ ast (2.4.0)
6
+ builder (3.2.3)
7
+ debase (0.2.2)
8
+ debase-ruby_core_source (>= 0.10.2)
9
+ debase-ruby_core_source (0.10.4)
10
+ diff-lcs (1.3)
11
+ jaro_winkler (1.5.2)
12
+ minitest (5.11.3)
13
+ minitest-reporters (1.3.5)
14
+ ansi
15
+ builder
16
+ minitest (>= 5.0)
17
+ ruby-progressbar
18
+ parallel (1.12.1)
19
+ parser (2.5.3.0)
20
+ ast (~> 2.4.0)
21
+ power_assert (1.1.3)
22
+ powerpack (0.1.2)
23
+ rainbow (3.0.0)
24
+ rake (12.3.2)
25
+ rspec (3.8.0)
26
+ rspec-core (~> 3.8.0)
27
+ rspec-expectations (~> 3.8.0)
28
+ rspec-mocks (~> 3.8.0)
29
+ rspec-core (3.8.0)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-expectations (3.8.2)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-mocks (3.8.0)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.8.0)
37
+ rspec-support (3.8.0)
38
+ rubocop (0.62.0)
39
+ jaro_winkler (~> 1.5.1)
40
+ parallel (~> 1.10)
41
+ parser (>= 2.5, != 2.5.1.1)
42
+ powerpack (~> 0.1)
43
+ rainbow (>= 2.2.2, < 4.0)
44
+ ruby-progressbar (~> 1.7)
45
+ unicode-display_width (~> 1.4.0)
46
+ ruby-debug-ide (0.6.1)
47
+ rake (>= 0.8.1)
48
+ ruby-progressbar (1.10.0)
49
+ tanraku (0.1.2)
50
+ test-unit (3.2.9)
51
+ power_assert
52
+ unicode-display_width (1.4.1)
53
+
54
+ PLATFORMS
55
+ ruby
56
+ x86-mingw32
57
+
58
+ DEPENDENCIES
59
+ bundler
60
+ debase
61
+ minitest
62
+ minitest-reporters
63
+ rake
64
+ rspec
65
+ rubocop
66
+ ruby-debug-ide
67
+ tanraku
68
+ test-unit
69
+
70
+ RUBY VERSION
71
+ ruby 2.6.0p0
72
+
73
+ BUNDLED WITH
74
+ 1.17.2
@@ -1,55 +1,28 @@
1
- <:ロミ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2
-
3
- The zinbei (Since version_1.0.8) is MIT License
4
-
5
- Copyright (c) 2013 Takayuki Kamiyama
6
-
7
- Permission is hereby granted, free of charge,
1
+ The MIT License
2
+
3
+ Copyright (c) 2013-2018 Takayuki Kamiyama
4
+
5
+ Permission is hereby granted, free of charge,
8
6
  to any person obtaining a copy of this software and
9
7
  associated documentation files (the [Software]),
10
- to deal in the Software without restriction,
8
+ to deal in the Software without restriction,
11
9
  including without limitation the rights to use, copy, modify,
12
10
  merge, publish, distribute, sublicense,
13
- and/or sell copies of the Software,
14
- and to permit persons to whom the Software is furnished to do so,
11
+ and/or sell copies of the Software,
12
+ and to permit persons to whom the Software is furnished to do so,
15
13
  subject to the following conditions:
16
-
17
- The above copyright notice and
18
- this permission notice shall be included
14
+
15
+ The above copyright notice and
16
+ this permission notice shall be included
19
17
  in all copies or substantial portions of the Software.
20
-
18
+
21
19
  THE SOFTWARE IS PROVIDED [AS IS],
22
20
  WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
23
21
  INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
22
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
- IN NO EVENT SHALL THE AUTHORS OR
26
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
27
- DAMAGES OR OTHER LIABILITY,
28
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
29
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
30
- OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
-
32
- 以下に定める条件に従い、
33
- 本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)
34
- の複製を取得するすべての人に対し、ソフトウェアを無制限に扱う
35
- ことを無償で許可します。
36
- これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、
37
- サブライセンス、および/または販売する権利、
38
- およびソフトウェアを提供する相手に同じことを許可する権利も
39
- 無制限に含まれます。
40
-
41
- 上記の著作権表示および本許諾表示を、
42
- ソフトウェアのすべての複製または重要な部分に記載するものとします。
43
-
44
- ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、
45
- 何らの保証もなく提供されます。
46
- ここでいう保証とは、商品性、特定の目的への適合性、
47
- および権利非侵害についての保証も含みますが、
48
- それに限定されるものではありません。
49
- 作者または著作権者は、契約行為、不法行為、
50
- またはそれ以外であろうと、ソフトウェアに起因または関連し、
51
- あるいはソフトウェアの使用またはその他の扱いによって
52
- 生じる一切の請求、損害、
53
- その他の義務について何らの責任も負わないものとします。
54
-
55
- <:ロミ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
+ IN NO EVENT SHALL THE AUTHORS OR
24
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
+ DAMAGES OR OTHER LIABILITY,
26
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
28
+ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -12,11 +12,11 @@
12
12
  ))wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww((
13
13
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
14
 
15
- [![Gem Version](https://badge.fury.io/rb/zinbei.svg)](http://badge.fury.io/rb/zinbei)
15
+ [![Gem Version](https://badge.fury.io/rb/zinbei.svg)](http://badge.fury.io/rb/zinbei)[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
16
16
 
17
17
  ## zinbeiの取り扱い説明書
18
18
 
19
- zinbeiは開始から全文表示まで出力にかけてます。
19
+ zinbeiの-zオプションは開始から全文表示まで出力にかけてます。
20
20
 
21
21
  rantan(SJIS対応)は指定する単語を、全文検索して表示します。
22
22
 
@@ -26,11 +26,11 @@ savaは置換機能であり、指定する単語をテキスト内で全て置
26
26
 
27
27
  (空のファイルを指定して書き出す形が良いと想います。)
28
28
 
29
- Rubyを使っているなら、手持ちのPCに入っていると便利かもしれません。
29
+ RubyGemsからインストールできるバージョン。
30
30
 
31
- 現在のバージョンでは、マルチプラットフォーム化を進めていて、
31
+ エンコーディングをSJISにしているため、
32
32
 
33
- ほとんどの環境で動作するはずです。
33
+ Windows環境を想定しています。
34
34
 
35
35
  ※ 使用する前にライセンスに同意してお使いくださいませ。
36
36
 
@@ -54,4 +54,48 @@ Before using, please agree to a license and use it.
54
54
 
55
55
  <:ロミ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
56
 
57
- ![彫刻](https://github.com/takkii/zinbei/blob/master/images/taka.jpg)
57
+ minitest_result
58
+
59
+ ```text
60
+ Started with run options --seed 51989
61
+
62
+ TestMethod
63
+ test_method PASS (0.00s)
64
+
65
+ TestUpDown
66
+ test_updown PASS (0.00s)
67
+
68
+ TestEncode
69
+ test_encode PASS (0.00s)
70
+
71
+ TestDate
72
+ test_date PASS (0.00s)
73
+
74
+ Search
75
+ test_search PASS (0.00s)
76
+
77
+ TestSort
78
+ test_date PASS (0.00s)
79
+
80
+ VersionTest
81
+ test_version PASS (0.00s)
82
+
83
+ Finished in 0.00574s
84
+ 7 tests, 8 assertions, 0 failures, 0 errors, 0 skips
85
+ ```
86
+
87
+ unit-test_result
88
+
89
+ ```text
90
+
91
+ Loaded suite test
92
+ Started
93
+ ..............................
94
+ Finished in 0.008685 seconds.
95
+ -------------------------------------------------------------------------------------
96
+ 30 tests, 37 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
97
+ 100% passed
98
+ -------------------------------------------------------------------------------------
99
+ 3454.23 tests/s, 4260.22 assertions/s
100
+
101
+ ```
data/Rakefile CHANGED
@@ -1,48 +1,48 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "zinbei"
18
- gem.homepage = "http://github.com/takkii/zinbei"
19
- gem.license = "GPL Lv.3"
20
- gem.email = "karuma.reason@gmail.com"
21
- gem.authors = ["takkii"]
22
- # dependencies defined in Gemfile
23
- end
24
- Jeweler::RubygemsDotOrgTasks.new
25
-
26
- require 'rspec/core'
27
- require 'rspec/core/rake_task'
28
- RSpec::Core::RakeTask.new(:spec) do |spec|
29
- spec.pattern = FileList['spec/**/*_spec.rb']
30
- end
31
-
32
- RSpec::Core::RakeTask.new(:rcov) do |spec|
33
- spec.pattern = 'spec/**/*_spec.rb'
34
- spec.rcov = true
35
- end
36
-
37
- task :default => :spec
38
-
39
- require 'rdoc/task'
40
- Rake::RDocTask.new do |rdoc|
41
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
-
43
- rdoc.rdoc_dir = 'rdoc'
44
- rdoc.title = "zinbei #{version}"
45
- rdoc.rdoc_files.include('README*')
46
- rdoc.rdoc_files.include('lib/**/*.rb')
47
- rdoc.options = ["--charset", "utf-8", "--line-numbers"] # <------ 追加
48
- end
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "zinbei"
18
+ gem.homepage = "http://www.nyasocom.site/takkii/zinbei"
19
+ gem.license = "MIT"
20
+ gem.email = "karuma.reason@gmail.com"
21
+ gem.authors = ["takkii"]
22
+ # dependencies defined in Gemfile
23
+ end
24
+ Jeweler::RubygemsDotOrgTasks.new
25
+
26
+ require 'rspec/core'
27
+ require 'rspec/core/rake_task'
28
+ RSpec::Core::RakeTask.new(:spec) do |spec|
29
+ spec.pattern = FileList['spec/**/*_spec.rb']
30
+ end
31
+
32
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
33
+ spec.pattern = 'spec/**/*_spec.rb'
34
+ spec.rcov = true
35
+ end
36
+
37
+ task :default => :spec
38
+
39
+ require 'rdoc/task'
40
+ Rake::RDocTask.new do |rdoc|
41
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
+
43
+ rdoc.rdoc_dir = 'rdoc'
44
+ rdoc.title = "zinbei #{version}"
45
+ rdoc.rdoc_files.include('README*')
46
+ rdoc.rdoc_files.include('lib/**/*.rb')
47
+ rdoc.options = ["--charset", "utf-8", "--line-numbers"] # <------ 追加
48
+ end
data/bin/rantan CHANGED
@@ -1,10 +1,11 @@
1
- #!/usr/bin/env ruby
2
- # -*- coding: utf-8 -*-
3
- # vim: filetype=ruby
4
-
5
- lib = File.expand_path('../lib', __FILE__)
6
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
-
8
- Encoding.default_internal = 'SJIS'
9
-
10
- require 'zinbei'
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # vim: filetype=ruby
5
+
6
+ lib = File.expand_path('lib', __dir__)
7
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
+
9
+ Encoding.default_internal = 'UTF-8'
10
+
11
+ require 'zinbei'
data/bin/sava CHANGED
@@ -1,10 +1,11 @@
1
- #!/usr/bin/env ruby
2
- # -*- coding: utf-8 -*-
3
- # vim: filetype=ruby
4
-
5
- lib = File.expand_path('../lib', __FILE__)
6
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
-
8
- Encoding.default_internal = 'SJIS'
9
-
10
- require 'zinbei/scom'
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # vim: filetype=ruby
5
+
6
+ lib = File.expand_path('lib', __dir__)
7
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
+
9
+ Encoding.default_internal = 'UTF-8'
10
+
11
+ require 'zinbei/scom'