zinbei 1.2.5.4 → 1.4.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/.rubocop_todo.yml +297 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +19 -17
  6. data/Gemfile.lock +75 -74
  7. data/README.md +32 -11
  8. data/Rakefile +0 -0
  9. data/bin/zinbei +9 -270
  10. data/bin/zinbeiw +791 -791
  11. data/doc/Compiler.html +0 -0
  12. data/doc/Enco.html +0 -0
  13. data/doc/Enco/Encoding.html +0 -0
  14. data/doc/Errno.html +0 -0
  15. data/doc/Loto6.html +0 -0
  16. data/doc/Numbers.html +0 -0
  17. data/doc/Object.html +0 -0
  18. data/doc/Zinbei.html +0 -0
  19. data/doc/created.rid +0 -0
  20. data/doc/fonts.css +0 -0
  21. data/doc/fonts/Lato-Light.ttf +0 -0
  22. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  23. data/doc/fonts/Lato-Regular.ttf +0 -0
  24. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/doc/images/add.png +0 -0
  28. data/doc/images/arrow_up.png +0 -0
  29. data/doc/images/brick.png +0 -0
  30. data/doc/images/brick_link.png +0 -0
  31. data/doc/images/bug.png +0 -0
  32. data/doc/images/bullet_black.png +0 -0
  33. data/doc/images/bullet_toggle_minus.png +0 -0
  34. data/doc/images/bullet_toggle_plus.png +0 -0
  35. data/doc/images/date.png +0 -0
  36. data/doc/images/delete.png +0 -0
  37. data/doc/images/find.png +0 -0
  38. data/doc/images/loadingAnimation.gif +0 -0
  39. data/doc/images/macFFBgHack.png +0 -0
  40. data/doc/images/package.png +0 -0
  41. data/doc/images/page_green.png +0 -0
  42. data/doc/images/page_white_text.png +0 -0
  43. data/doc/images/page_white_width.png +0 -0
  44. data/doc/images/plugin.png +0 -0
  45. data/doc/images/ruby.png +0 -0
  46. data/doc/images/tag_blue.png +0 -0
  47. data/doc/images/tag_green.png +0 -0
  48. data/doc/images/transparent.png +0 -0
  49. data/doc/images/wrench.png +0 -0
  50. data/doc/images/wrench_orange.png +0 -0
  51. data/doc/images/zoom.png +0 -0
  52. data/doc/index.html +0 -0
  53. data/doc/js/darkfish.js +0 -0
  54. data/doc/js/jquery.js +0 -0
  55. data/doc/js/navigation.js +0 -0
  56. data/doc/js/search.js +0 -0
  57. data/doc/js/search_index.js +0 -0
  58. data/doc/js/searcher.js +0 -0
  59. data/doc/rdoc.css +0 -0
  60. data/doc/table_of_contents.html +0 -0
  61. data/install.rb +6 -4
  62. data/lib/zinbei.rb +286 -49
  63. data/lib/zinbei/datetime.rb +34 -13
  64. data/lib/zinbei/down.rb +0 -0
  65. data/lib/zinbei/ika.rb +13 -13
  66. data/lib/zinbei/io.rb +16 -16
  67. data/lib/zinbei/number.rb +0 -0
  68. data/lib/zinbei/rantan.rb +35 -0
  69. data/lib/zinbei/scom.rb +32 -36
  70. data/lib/zinbei/str.rb +0 -0
  71. data/lib/zinbei/time.rb +5 -5
  72. data/lib/zinbei/up.rb +0 -0
  73. data/lib/zinbei/version.rb +15 -13
  74. data/mini_test/mini_test_version.rb +12 -12
  75. data/mini_test_runner.rb +29 -56
  76. data/{test_runner.rb → unit_test_runner.rb} +21 -17
  77. data/zinbei.gemspec +3 -3
  78. metadata +9 -10
  79. data/bin/rantan +0 -11
  80. data/bin/sava +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31160c1177cabbecbec33dad5f418e5823262e85dbbc870d73637ad53e29bca7
4
- data.tar.gz: 117901e79f8c422a69b349901b26f8d55511bc029e5c8e9c641125f757738dd5
3
+ metadata.gz: 18dd20bf2aa60157afb18c4d6b32d8044119318a3d06d205b4a28199d8c056a1
4
+ data.tar.gz: 765457a277ca62cb94c744c8e065fabe13dc8155855e20c7f1840e31f9a11d6a
5
5
  SHA512:
6
- metadata.gz: 17c6bfe8ad721e9f6a0f7e015a44fcb9ae13914df6dfe739d6d45b885991088075137b7b19e9bb96e183da6e94325a471ae558e24955ad9c5bb22dcc926db3c0
7
- data.tar.gz: 14a7a35689ddd8b29b5eecb85e45c6c180bf323e14613ba02ea42869a5626c629ce4ff7a23f61500fa5276bdefde05a9bb0e8d4bc9ea6cc483f2ada079d6e006
6
+ metadata.gz: 0c18d8dc96cf207cc5fbb6bc564f0b877d9a68273a75e335ee892ffc496c4edd5acc2eb6a9e4d39d8e7d972e90450960c5a6e7732f251d84781ef6e2422cf97c
7
+ data.tar.gz: 2486be085b1715028de551caabd5dd4f572fd858c457b71a5572d94edbd634df0a2ae3eb62c678fa4a37baf4ac0b9d4249f83c2c1d35628cf99280fc3c99a4d7
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,297 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-02-22 19:20:00 +0900 using RuboCop version 0.65.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 6
10
+ # Cop supports --auto-correct.
11
+ Layout/CommentIndentation:
12
+ Exclude:
13
+ - 'test/test_date.rb'
14
+ - 'test/test_encode.rb'
15
+ - 'test/test_method.rb'
16
+ - 'test/test_sort.rb'
17
+ - 'test/test_up_down.rb'
18
+
19
+ # Offense count: 3
20
+ # Cop supports --auto-correct.
21
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
22
+ # SupportedStylesAlignWith: start_of_line, def
23
+ Layout/DefEndAlignment:
24
+ Exclude:
25
+ - 'bin/zinbeiw'
26
+
27
+ # Offense count: 1
28
+ # Cop supports --auto-correct.
29
+ Layout/EmptyLineAfterGuardClause:
30
+ Exclude:
31
+ - 'bin/zinbeiw'
32
+
33
+ # Offense count: 10
34
+ # Cop supports --auto-correct.
35
+ # Configuration parameters: EnforcedStyle.
36
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
37
+ Layout/EmptyLinesAroundClassBody:
38
+ Exclude:
39
+ - 'test/test_date.rb'
40
+ - 'test/test_encode.rb'
41
+ - 'test/test_method.rb'
42
+ - 'test/test_sort.rb'
43
+ - 'test/test_up_down.rb'
44
+
45
+ # Offense count: 1
46
+ # Cop supports --auto-correct.
47
+ Layout/EmptyLinesAroundMethodBody:
48
+ Exclude:
49
+ - 'test/test_method.rb'
50
+
51
+ # Offense count: 5
52
+ # Cop supports --auto-correct.
53
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
54
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
55
+ Layout/EndAlignment:
56
+ Exclude:
57
+ - 'lib/zinbei/down.rb'
58
+ - 'lib/zinbei/number.rb'
59
+ - 'lib/zinbei/str.rb'
60
+ - 'lib/zinbei/up.rb'
61
+ - 'zinbei.gemspec'
62
+
63
+ # Offense count: 1
64
+ # Cop supports --auto-correct.
65
+ # Configuration parameters: Width, IgnoredPatterns.
66
+ Layout/IndentationWidth:
67
+ Exclude:
68
+ - 'lib/zinbei/scom.rb'
69
+
70
+ # Offense count: 1
71
+ # Cop supports --auto-correct.
72
+ Layout/LeadingCommentSpace:
73
+ Exclude:
74
+ - 'test/test_method.rb'
75
+
76
+ # Offense count: 9
77
+ # Cop supports --auto-correct.
78
+ Layout/SpaceAfterComma:
79
+ Exclude:
80
+ - 'test/test_method.rb'
81
+ - 'test/test_sort.rb'
82
+ - 'zinbei.gemspec'
83
+
84
+ # Offense count: 1
85
+ # Cop supports --auto-correct.
86
+ # Configuration parameters: AllowForAlignment.
87
+ Layout/SpaceAroundOperators:
88
+ Exclude:
89
+ - 'zinbei.gemspec'
90
+
91
+ # Offense count: 2
92
+ # Cop supports --auto-correct.
93
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
94
+ # SupportedStyles: space, no_space
95
+ # SupportedStylesForEmptyBraces: space, no_space
96
+ Layout/SpaceInsideBlockBraces:
97
+ Exclude:
98
+ - 'spec/spec_helper.rb'
99
+
100
+ # Offense count: 1
101
+ # Cop supports --auto-correct.
102
+ # Configuration parameters: AllowInHeredoc.
103
+ Layout/TrailingWhitespace:
104
+ Exclude:
105
+ - 'spec/spec_helper.rb'
106
+
107
+ # Offense count: 4
108
+ Lint/DuplicateMethods:
109
+ Exclude:
110
+ - 'bin/zinbeiw'
111
+
112
+ # Offense count: 1
113
+ Lint/ElseLayout:
114
+ Exclude:
115
+ - 'bin/zinbeiw'
116
+
117
+ # Offense count: 1
118
+ Lint/ParenthesesAsGroupedExpression:
119
+ Exclude:
120
+ - 'lib/zinbei/datetime.rb'
121
+
122
+ # Offense count: 1
123
+ Lint/ShadowingOuterLocalVariable:
124
+ Exclude:
125
+ - 'bin/zinbeiw'
126
+
127
+ # Offense count: 1
128
+ Lint/UnreachableCode:
129
+ Exclude:
130
+ - 'bin/zinbeiw'
131
+
132
+ # Offense count: 1
133
+ Lint/UselessAssignment:
134
+ Exclude:
135
+ - 'lib/zinbei/scom.rb'
136
+
137
+ # Offense count: 1
138
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
139
+ Lint/Void:
140
+ Exclude:
141
+ - 'bin/zinbeiw'
142
+
143
+ # Offense count: 1
144
+ Metrics/AbcSize:
145
+ Max: 16
146
+
147
+ # Offense count: 1
148
+ # Configuration parameters: CountComments, ExcludedMethods.
149
+ # ExcludedMethods: refine
150
+ Metrics/BlockLength:
151
+ Max: 28
152
+
153
+ # Offense count: 1
154
+ # Configuration parameters: CountBlocks.
155
+ Metrics/BlockNesting:
156
+ Max: 4
157
+
158
+ # Offense count: 8
159
+ # Configuration parameters: CountComments, ExcludedMethods.
160
+ Metrics/MethodLength:
161
+ Max: 41
162
+
163
+ # Offense count: 1
164
+ # Configuration parameters: CountComments.
165
+ Metrics/ModuleLength:
166
+ Max: 150
167
+
168
+ # Offense count: 1
169
+ # Configuration parameters: CountKeywordArgs.
170
+ Metrics/ParameterLists:
171
+ Max: 6
172
+
173
+ # Offense count: 18
174
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
175
+ # AllowedNames: io, id, to, by, on, in, at, ip, db
176
+ Naming/UncommunicativeMethodParamName:
177
+ Exclude:
178
+ - 'bin/zinbeiw'
179
+
180
+ # Offense count: 2
181
+ Security/Eval:
182
+ Exclude:
183
+ - 'bin/zinbeiw'
184
+
185
+ # Offense count: 5
186
+ Security/Open:
187
+ Exclude:
188
+ - 'lib/zinbei/down.rb'
189
+ - 'lib/zinbei/io.rb'
190
+ - 'lib/zinbei/number.rb'
191
+ - 'lib/zinbei/str.rb'
192
+ - 'lib/zinbei/up.rb'
193
+
194
+ # Offense count: 6
195
+ # Configuration parameters: AllowedChars.
196
+ Style/AsciiComments:
197
+ Exclude:
198
+ - 'Rakefile'
199
+ - 'bin/zinbeiw'
200
+ - 'lib/zinbei/datetime.rb'
201
+
202
+ # Offense count: 5
203
+ Style/Documentation:
204
+ Exclude:
205
+ - 'spec/**/*'
206
+ - 'test/**/*'
207
+ - 'bin/zinbeiw'
208
+ - 'lib/zinbei/scom.rb'
209
+
210
+ # Offense count: 1
211
+ # Cop supports --auto-correct.
212
+ Style/Encoding:
213
+ Exclude:
214
+ - 'Rakefile'
215
+
216
+ # Offense count: 1
217
+ # Cop supports --auto-correct.
218
+ Style/ExpandPathArguments:
219
+ Exclude:
220
+ - 'zinbei.gemspec'
221
+
222
+ # Offense count: 8
223
+ # Cop supports --auto-correct.
224
+ # Configuration parameters: EnforcedStyle.
225
+ # SupportedStyles: when_needed, always, never
226
+ Style/FrozenStringLiteralComment:
227
+ Exclude:
228
+ - 'Rakefile'
229
+ - 'spec/spec_helper.rb'
230
+ - 'test/test_date.rb'
231
+ - 'test/test_encode.rb'
232
+ - 'test/test_method.rb'
233
+ - 'test/test_sort.rb'
234
+ - 'test/test_up_down.rb'
235
+ - 'zinbei.gemspec'
236
+
237
+ # Offense count: 1
238
+ # Cop supports --auto-correct.
239
+ # Configuration parameters: UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
240
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
241
+ Style/HashSyntax:
242
+ EnforcedStyle: hash_rockets
243
+
244
+ # Offense count: 1
245
+ # Cop supports --auto-correct.
246
+ Style/IfUnlessModifier:
247
+ Exclude:
248
+ - 'zinbei.gemspec'
249
+
250
+ # Offense count: 1
251
+ Style/MixinUsage:
252
+ Exclude:
253
+ - 'bin/zinbei'
254
+
255
+ # Offense count: 1
256
+ # Cop supports --auto-correct.
257
+ Style/MultilineIfThen:
258
+ Exclude:
259
+ - 'zinbei.gemspec'
260
+
261
+ # Offense count: 3
262
+ # Cop supports --auto-correct.
263
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
264
+ # SupportedStyles: predicate, comparison
265
+ Style/NumericPredicate:
266
+ Exclude:
267
+ - 'spec/**/*'
268
+ - 'bin/zinbeiw'
269
+
270
+ # Offense count: 2
271
+ # Cop supports --auto-correct.
272
+ Style/StderrPuts:
273
+ Exclude:
274
+ - 'Rakefile'
275
+
276
+ # Offense count: 22
277
+ # Cop supports --auto-correct.
278
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
279
+ # SupportedStyles: single_quotes, double_quotes
280
+ Style/StringLiterals:
281
+ Exclude:
282
+ - 'Rakefile'
283
+ - 'zinbei.gemspec'
284
+
285
+ # Offense count: 1
286
+ # Cop supports --auto-correct.
287
+ # Configuration parameters: WordRegex.
288
+ # SupportedStyles: percent, brackets
289
+ Style/WordArray:
290
+ EnforcedStyle: percent
291
+ MinSize: 5
292
+
293
+ # Offense count: 11
294
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
295
+ # URISchemes: http, https
296
+ Metrics/LineLength:
297
+ Max: 148
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.3
data/Gemfile CHANGED
@@ -1,17 +1,19 @@
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
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in zinbei.gemspec
6
+ # gemspec
7
+
8
+ ruby '2.6.3'
9
+
10
+ gem 'bundler'
11
+ gem 'debase'
12
+ gem 'minitest'
13
+ gem 'minitest-reporters'
14
+ gem 'rake'
15
+ gem 'rspec'
16
+ gem 'rubocop'
17
+ gem 'ruby-debug-ide'
18
+ gem 'tanraku'
19
+ gem 'test-unit'
data/Gemfile.lock CHANGED
@@ -1,74 +1,75 @@
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
+ GEM
2
+ remote: https://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
+ x64-mingw32
57
+ x86-mingw32
58
+
59
+ DEPENDENCIES
60
+ bundler
61
+ debase
62
+ minitest
63
+ minitest-reporters
64
+ rake
65
+ rspec
66
+ rubocop
67
+ ruby-debug-ide
68
+ tanraku
69
+ test-unit
70
+
71
+ RUBY VERSION
72
+ ruby 2.6.3p62
73
+
74
+ BUNDLED WITH
75
+ 1.17.2