tbpgr_utils 0.0.150 → 0.0.151

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -9
  3. data/README.md +95 -32
  4. data/lib/attr_enumerable/attr_enumerable_helper.rb +52 -52
  5. data/lib/attr_enumerable/map_attr.rb +1 -1
  6. data/lib/eval_helper/attr_accessor_init_code.rb +3 -3
  7. data/lib/eval_helper/each_do_code.rb +26 -26
  8. data/lib/eval_helper/each_with_index_do_code.rb +26 -26
  9. data/lib/eval_helper/require_code.rb +1 -1
  10. data/lib/eval_helper/require_relative_code.rb +1 -1
  11. data/lib/eval_helper/set_variable_code.rb +1 -1
  12. data/lib/eval_helper/set_variables_code.rb +1 -1
  13. data/lib/eval_helper/times_code.rb +1 -1
  14. data/lib/ghostable.rb +1 -1
  15. data/lib/open_classes/array.rb +0 -2
  16. data/lib/open_classes/array/average.rb +17 -17
  17. data/lib/open_classes/array/gte_gte.rb +1 -1
  18. data/lib/open_classes/array/to_table.rb +1 -1
  19. data/lib/open_classes/array/together_clear.rb +24 -24
  20. data/lib/open_classes/array/together_compact.rb +44 -44
  21. data/lib/open_classes/array/together_empty.rb +1 -1
  22. data/lib/open_classes/array/together_include.rb +1 -1
  23. data/lib/open_classes/enumerable.rb +4 -0
  24. data/lib/open_classes/enumerable/if_else_map.rb +12 -0
  25. data/lib/open_classes/{array → enumerable}/kernel_send.rb +15 -15
  26. data/lib/open_classes/{array → enumerable}/sum.rb +3 -3
  27. data/lib/open_classes/hash/gte_gte.rb +45 -45
  28. data/lib/open_classes/integer/each_digit.rb +13 -13
  29. data/lib/open_classes/integer/each_digit_with_index.rb +13 -13
  30. data/lib/open_classes/integer/reverse_each_digit.rb +13 -13
  31. data/lib/open_classes/kernel/aa_ancestors.rb +1 -1
  32. data/lib/open_classes/numeric/is_ascii.rb +4 -4
  33. data/lib/open_classes/object/any_of.rb +1 -2
  34. data/lib/open_classes/object/to_bool.rb +1 -1
  35. data/lib/open_classes/string/ascii_unicode_html_table.rb +1 -1
  36. data/lib/open_classes/string/ascii_unicode_table.rb +1 -1
  37. data/lib/open_classes/string/is_meta_variable.rb +7 -7
  38. data/lib/open_classes/string/justify_table.rb +2 -2
  39. data/lib/open_classes/string/surround.rb +2 -2
  40. data/lib/open_classes/symbol/is_meta_variable.rb +6 -6
  41. data/lib/tbpgr_utils.rb +1 -0
  42. data/lib/tbpgr_utils/version.rb +1 -1
  43. data/lib/templatable.rb +1 -1
  44. data/rubocop-todo.yml +2 -36
  45. data/spec/attr_enumerable/each_attr_spec.rb +1 -1
  46. data/spec/attr_enumerable/each_attr_with_index_spec.rb +1 -1
  47. data/spec/attr_enumerable/first_attr_spec.rb +107 -107
  48. data/spec/attr_enumerable/include_attr_spec.rb +4 -4
  49. data/spec/attr_enumerable/last_attr_spec.rb +4 -4
  50. data/spec/attr_enumerable/map_attr_spec.rb +3 -3
  51. data/spec/attr_enumerable/reduce_attr_spec.rb +3 -3
  52. data/spec/attr_enumerable/reverse_attr_spec.rb +1 -1
  53. data/spec/attr_enumerable/sample_attr_spec.rb +3 -3
  54. data/spec/attr_enumerable/select_attr_spec.rb +2 -2
  55. data/spec/attr_enumerable/shuffle_attr_spec.rb +1 -1
  56. data/spec/attr_enumerable/slice_attr_spec.rb +1 -1
  57. data/spec/attributes_hashable_spec.rb +1 -1
  58. data/spec/attributes_initializable_spec.rb +21 -21
  59. data/spec/eval_helper/attr_accessor_init_code_spec.rb +1 -1
  60. data/spec/eval_helper/attr_init_class_code_spec.rb +1 -1
  61. data/spec/eval_helper/each_brace_code_spec.rb +2 -2
  62. data/spec/eval_helper/each_do_code_spec.rb +1 -1
  63. data/spec/eval_helper/each_with_index_brace_code_spec.rb +2 -2
  64. data/spec/eval_helper/each_with_index_do_code_spec.rb +2 -2
  65. data/spec/eval_helper/if_code_after_spec.rb +3 -3
  66. data/spec/eval_helper/if_code_spec.rb +3 -3
  67. data/spec/eval_helper/require_code_spec.rb +3 -3
  68. data/spec/eval_helper/require_relative_code_spec.rb +3 -3
  69. data/spec/eval_helper/set_variable_code_spec.rb +3 -3
  70. data/spec/{set_variables_code_spec.rb → eval_helper/set_variables_code_spec.rb} +15 -15
  71. data/spec/eval_helper/ternary_operator_spec.rb +5 -5
  72. data/spec/eval_helper/times_code_spec.rb +1 -1
  73. data/spec/eval_helper/unless_code_after_spec.rb +3 -3
  74. data/spec/eval_helper/unless_code_spec.rb +3 -3
  75. data/spec/familyable/familyable_spec.rb +6 -6
  76. data/spec/ghostable_spec.rb +5 -5
  77. data/spec/markdown/backquotes_spec.rb +4 -4
  78. data/spec/markdown/bold_spec.rb +4 -4
  79. data/spec/markdown/code_spec.rb +3 -3
  80. data/spec/markdown/codes_spec.rb +2 -2
  81. data/spec/markdown/heading_spec.rb +5 -5
  82. data/spec/markdown/hr_spec.rb +1 -1
  83. data/spec/markdown/italic_spec.rb +4 -4
  84. data/spec/markdown/link_spec.rb +1 -1
  85. data/spec/markdown/ol_spec.rb +3 -3
  86. data/spec/markdown/ul_spec.rb +3 -3
  87. data/spec/metasyntactic_variable_spec.rb +4 -4
  88. data/spec/open_classes/array/average_spec.rb +4 -4
  89. data/spec/open_classes/array/exchange_spec.rb +6 -6
  90. data/spec/open_classes/array/gte_gte_spec.rb +4 -4
  91. data/spec/open_classes/array/to_html_table_spec.rb +3 -3
  92. data/spec/open_classes/array/to_table_spec.rb +2 -2
  93. data/spec/open_classes/array/together_at_spec.rb +4 -4
  94. data/spec/open_classes/array/together_clear_spec.rb +3 -3
  95. data/spec/open_classes/array/together_compact_spec.rb +6 -6
  96. data/spec/open_classes/array/together_concat_spec.rb +3 -3
  97. data/spec/open_classes/array/together_delete_at_spec.rb +5 -5
  98. data/spec/open_classes/array/together_delete_if_spec.rb +4 -4
  99. data/spec/open_classes/array/together_delete_spec.rb +5 -5
  100. data/spec/open_classes/array/together_empty_spec.rb +4 -4
  101. data/spec/open_classes/array/together_fill_spec.rb +5 -5
  102. data/spec/open_classes/array/together_first_spec.rb +6 -6
  103. data/spec/open_classes/array/together_include_spec.rb +8 -8
  104. data/spec/open_classes/array/together_index_spec.rb +5 -5
  105. data/spec/open_classes/array/together_insert_spec.rb +5 -5
  106. data/spec/open_classes/array/together_last_spec.rb +6 -6
  107. data/spec/open_classes/array/together_map_spec.rb +14 -14
  108. data/spec/open_classes/array/together_pop_spec.rb +8 -8
  109. data/spec/open_classes/array/together_reduce_spec.rb +8 -8
  110. data/spec/open_classes/array/together_reverse_spec.rb +119 -119
  111. data/spec/open_classes/array/together_sample_spec.rb +8 -8
  112. data/spec/open_classes/array/together_select_spec.rb +6 -6
  113. data/spec/open_classes/array/together_shift_spec.rb +8 -8
  114. data/spec/open_classes/array/together_shuffle_spec.rb +3 -3
  115. data/spec/open_classes/array/together_slice_spec.rb +5 -5
  116. data/spec/open_classes/array/together_spec.rb +3 -3
  117. data/spec/open_classes/array/together_with_index_spec.rb +3 -3
  118. data/spec/open_classes/array/uniq_size_spec.rb +4 -4
  119. data/spec/open_classes/enumerable/if_else_map_spec.rb +45 -0
  120. data/spec/open_classes/{array → enumerable}/kernel_send_spec.rb +50 -43
  121. data/spec/open_classes/{array → enumerable}/sum_spec.rb +8 -2
  122. data/spec/open_classes/fixnum/to_fixnum_html_table_spec.rb +1 -1
  123. data/spec/open_classes/fixnum/to_fixnum_table_spec.rb +1 -1
  124. data/spec/open_classes/hash/gte_gte_spec.rb +4 -4
  125. data/spec/open_classes/hash/html_table_spec.rb +2 -2
  126. data/spec/open_classes/hash/table_spec.rb +2 -2
  127. data/spec/open_classes/integer/each_digit_spec.rb +2 -2
  128. data/spec/open_classes/integer/each_digit_with_index_spec.rb +2 -2
  129. data/spec/open_classes/integer/palindromic_prime_spec.rb +6 -6
  130. data/spec/open_classes/integer/reverse_each_digit_spec.rb +2 -2
  131. data/spec/open_classes/kernel/aa_ancestors_spec.rb +1 -1
  132. data/spec/open_classes/kernel/booleans_spec.rb +1 -1
  133. data/spec/open_classes/kernel/bulk_define_methods_spec.rb +5 -5
  134. data/spec/open_classes/kernel/bulk_puts_eval_spec.rb +1 -1
  135. data/spec/open_classes/kernel/evalb_spec.rb +2 -2
  136. data/spec/open_classes/kernel/exchange_spec.rb +2 -2
  137. data/spec/open_classes/kernel/hash_to_attributes_spec.rb +3 -3
  138. data/spec/open_classes/kernel/null_spec.rb +1 -1
  139. data/spec/open_classes/kernel/print_eval_spec.rb +3 -3
  140. data/spec/open_classes/kernel/puts_eval_spec.rb +3 -3
  141. data/spec/open_classes/module_spec.rb +3 -3
  142. data/spec/open_classes/numeric/dice_back_spec.rb +8 -8
  143. data/spec/open_classes/numeric/dozen_spec.rb +4 -4
  144. data/spec/open_classes/numeric/is_ascii_spec.rb +6 -6
  145. data/spec/open_classes/numeric/to_binary_html_table_spec.rb +1 -1
  146. data/spec/open_classes/numeric/to_binary_table_spec.rb +1 -1
  147. data/spec/open_classes/numeric/to_digit_html_table_spec.rb +1 -1
  148. data/spec/open_classes/numeric/to_digit_table_spec.rb +1 -1
  149. data/spec/open_classes/numeric/to_hex_html_table_spec.rb +1 -1
  150. data/spec/open_classes/numeric/to_hex_table_spec.rb +1 -1
  151. data/spec/open_classes/numeric/to_oct_html_table_spec.rb +1 -1
  152. data/spec/open_classes/numeric/to_oct_table_spec.rb +1 -1
  153. data/spec/open_classes/object/any_of_spec.rb +6 -6
  154. data/spec/open_classes/object/boolean_spec.rb +6 -6
  155. data/spec/open_classes/object/grep_instance_method_spec.rb +15 -15
  156. data/spec/open_classes/object/grep_method_spec.rb +6 -6
  157. data/spec/open_classes/object/guard_spec.rb +8 -8
  158. data/spec/open_classes/object/method_nameable_spec.rb +4 -4
  159. data/spec/open_classes/object/my_methods_spec.rb +2 -2
  160. data/spec/open_classes/object/null_spec.rb +1 -1
  161. data/spec/open_classes/object/to_bool_spec.rb +7 -7
  162. data/spec/open_classes/string/ascii1_other2_size_spec.rb +5 -5
  163. data/spec/open_classes/string/ascii_unicode_html_table_spec.rb +1 -1
  164. data/spec/open_classes/string/ascii_unicode_table_spec.rb +1 -1
  165. data/spec/open_classes/string/comma_to_a_spec.rb +1 -1
  166. data/spec/open_classes/string/cygwinpath_to_winpath_spec.rb +3 -3
  167. data/spec/open_classes/string/escape_double_quote_spec.rb +3 -3
  168. data/spec/open_classes/string/escape_quote_spec.rb +3 -3
  169. data/spec/open_classes/string/gte_gte_spec.rb +3 -3
  170. data/spec/open_classes/string/hyphen_to_a_spec.rb +1 -1
  171. data/spec/open_classes/string/is_meta_variable_spec.rb +3 -3
  172. data/spec/open_classes/string/justify_char_spec.rb +6 -6
  173. data/spec/open_classes/string/justify_table_spec.rb +6 -6
  174. data/spec/open_classes/string/say_spec.rb +2 -2
  175. data/spec/open_classes/string/spacing_spec.rb +6 -6
  176. data/spec/open_classes/string/surround_spec.rb +1 -1
  177. data/spec/open_classes/string/table_to_array_spec.rb +1 -1
  178. data/spec/open_classes/string/to_hatena_heading_spec.rb +5 -5
  179. data/spec/open_classes/string/to_markdown_heading_spec.rb +5 -5
  180. data/spec/open_classes/string/to_space2_heading_spec.rb +5 -5
  181. data/spec/open_classes/string/to_space4_heading_spec.rb +5 -5
  182. data/spec/open_classes/string/to_tab_heading_spec.rb +5 -5
  183. data/spec/open_classes/string/unescape_double_quote_spec.rb +3 -3
  184. data/spec/open_classes/string/unescape_quote_spec.rb +3 -3
  185. data/spec/open_classes/string/uniq_size_spec.rb +4 -4
  186. data/spec/open_classes/string/uniq_spec.rb +4 -4
  187. data/spec/open_classes/string/winpath_to_cygwinpath_spec.rb +3 -3
  188. data/spec/open_classes/symbol/is_meta_variable_spec.rb +3 -3
  189. data/spec/simple_tournament_spec.rb +9 -9
  190. data/spec/templatable_spec.rb +2 -2
  191. data/spec/template_methodable_spec.rb +1 -1
  192. data/spec/test_toolbox/kernel_spec.rb +7 -7
  193. data/tbpgr_utils.gemspec +4 -4
  194. metadata +15 -11
@@ -10,8 +10,8 @@ describe Kernel do
10
10
  case_title: 'valid case',
11
11
  input: 1,
12
12
  eval_code: "n = n + 1\nn = n + 2",
13
- expected: 4,
14
- },
13
+ expected: 4
14
+ }
15
15
  ]
16
16
 
17
17
  cases.each do |c|
@@ -12,8 +12,8 @@ describe Kernel do
12
12
  input_a: 'aaa',
13
13
  input_b: 'bbb',
14
14
  expected_a: 'bbb',
15
- expected_b: 'aaa',
16
- },
15
+ expected_b: 'aaa'
16
+ }
17
17
  ]
18
18
 
19
19
  cases.each do |c|
@@ -14,11 +14,11 @@ describe Kernel do
14
14
  case_title: 'valid hash case',
15
15
  hash: {
16
16
  name: 'hoge',
17
- age: 33,
17
+ age: 33
18
18
  },
19
19
  expected_name: 'hoge',
20
- expected_age: 33,
21
- },
20
+ expected_age: 33
21
+ }
22
22
  ]
23
23
 
24
24
  cases.each do |c|
@@ -10,7 +10,7 @@ describe Kernel do
10
10
  case_title: 'null case',
11
11
  input: null,
12
12
  expected: nil
13
- },
13
+ }
14
14
  ]
15
15
 
16
16
  cases.each do |c|
@@ -10,15 +10,15 @@ describe Kernel do
10
10
  case_no: 1,
11
11
  case_title: 'no bind case',
12
12
  code: '8/4',
13
- expected: '8/4 # => 2',
13
+ expected: '8/4 # => 2'
14
14
  },
15
15
  {
16
16
  case_no: 2,
17
17
  case_title: 'with bind case',
18
18
  code: "\"hoge-\#{message}\"",
19
19
  bind: 'msg',
20
- expected: "\"hoge-\#{message}\" # => \"hoge-msg\"",
21
- },
20
+ expected: "\"hoge-\#{message}\" # => \"hoge-msg\""
21
+ }
22
22
  ]
23
23
 
24
24
  cases.each do |c|
@@ -10,15 +10,15 @@ describe Kernel do
10
10
  case_no: 1,
11
11
  case_title: 'no bind case',
12
12
  code: '8/4',
13
- expected: "8/4 # => 2\n",
13
+ expected: "8/4 # => 2\n"
14
14
  },
15
15
  {
16
16
  case_no: 2,
17
17
  case_title: 'with bind case',
18
18
  code: '"hoge-#{message}"',
19
19
  bind: 'msg',
20
- expected: '"hoge-#{message}" # => "hoge-msg"' + "\n",
21
- },
20
+ expected: '"hoge-#{message}" # => "hoge-msg"' + "\n"
21
+ }
22
22
  ]
23
23
 
24
24
  cases.each do |c|
@@ -18,14 +18,14 @@ describe Module do
18
18
  klass: Hoge,
19
19
  target: :hoge,
20
20
  inputs: [:hige, :hege, :huge],
21
- expected: 'hoge',
21
+ expected: 'hoge'
22
22
  },
23
23
  {
24
24
  case_no: 2,
25
25
  case_title: 'not Array error case',
26
26
  klass: Hoge,
27
- expect_error: true,
28
- },
27
+ expect_error: true
28
+ }
29
29
  ]
30
30
 
31
31
  cases.each do |c|
@@ -9,44 +9,44 @@ describe Numeric do
9
9
  case_no: 1,
10
10
  case_title: '1 case',
11
11
  input: 1,
12
- expected: 6,
12
+ expected: 6
13
13
  },
14
14
  {
15
15
  case_no: 2,
16
16
  case_title: '2 case',
17
17
  input: 2,
18
- expected: 5,
18
+ expected: 5
19
19
  },
20
20
  {
21
21
  case_no: 3,
22
22
  case_title: '3 case',
23
23
  input: 3,
24
- expected: 4,
24
+ expected: 4
25
25
  },
26
26
  {
27
27
  case_no: 4,
28
28
  case_title: '4 case',
29
29
  input: 4,
30
- expected: 3,
30
+ expected: 3
31
31
  },
32
32
  {
33
33
  case_no: 5,
34
34
  case_title: '5 case',
35
35
  input: 5,
36
- expected: 2,
36
+ expected: 2
37
37
  },
38
38
  {
39
39
  case_no: 6,
40
40
  case_title: '6 case',
41
41
  input: 6,
42
- expected: 1,
42
+ expected: 1
43
43
  },
44
44
  {
45
45
  case_no: 7,
46
46
  case_title: '7 case',
47
47
  input: 7,
48
- expected: 7,
49
- },
48
+ expected: 7
49
+ }
50
50
  ]
51
51
 
52
52
  cases.each do |c|
@@ -9,20 +9,20 @@ describe Numeric do
9
9
  case_no: 1,
10
10
  case_title: '1 case',
11
11
  input: 1,
12
- expected: 12,
12
+ expected: 12
13
13
  },
14
14
  {
15
15
  case_no: 2,
16
16
  case_title: '2 case',
17
17
  input: 2,
18
- expected: 24,
18
+ expected: 24
19
19
  },
20
20
  {
21
21
  case_no: 3,
22
22
  case_title: '0 case',
23
23
  input: 0,
24
- expected: 0,
25
- },
24
+ expected: 0
25
+ }
26
26
  ]
27
27
 
28
28
  cases.each do |c|
@@ -3,26 +3,26 @@ require 'spec_helper'
3
3
  require 'tbpgr_utils'
4
4
 
5
5
  describe Numeric do
6
- context :is_ascii? do
6
+ context :ascii? do
7
7
  cases = [
8
8
  {
9
9
  case_no: 1,
10
10
  case_title: '1 case',
11
11
  input: 1,
12
- expected: true,
12
+ expected: true
13
13
  },
14
14
  {
15
15
  case_no: 2,
16
16
  case_title: '127 case',
17
17
  input: 127,
18
- expected: true,
18
+ expected: true
19
19
  },
20
20
  {
21
21
  case_no: 3,
22
22
  case_title: '128 case',
23
23
  input: 128,
24
- expected: false,
25
- },
24
+ expected: false
25
+ }
26
26
  ]
27
27
 
28
28
  cases.each do |c|
@@ -34,7 +34,7 @@ describe Numeric do
34
34
  # nothing
35
35
 
36
36
  # -- when --
37
- actual = c[:input].is_ascii?
37
+ actual = c[:input].ascii?
38
38
 
39
39
  # -- then --
40
40
  expect(actual).to eq(c[:expected])
@@ -52,7 +52,7 @@ describe Numeric do
52
52
  </tr>
53
53
  </table>
54
54
  EOS
55
- },
55
+ }
56
56
  ]
57
57
 
58
58
  cases.each do |c|
@@ -27,7 +27,7 @@ describe Numeric do
27
27
  | 255|0000000011111111|
28
28
  | 256|0000000100000000|
29
29
  EOS
30
- },
30
+ }
31
31
  ]
32
32
 
33
33
  cases.each do |c|
@@ -66,7 +66,7 @@ describe Numeric do
66
66
  </tr>
67
67
  </table>
68
68
  EOS
69
- },
69
+ }
70
70
  ]
71
71
 
72
72
  cases.each do |c|
@@ -27,7 +27,7 @@ describe Numeric do
27
27
  | 255|0000000011111111| 377| 00ff|
28
28
  | 256|0000000100000000| 400| 0100|
29
29
  EOS
30
- },
30
+ }
31
31
  ]
32
32
 
33
33
  cases.each do |c|
@@ -52,7 +52,7 @@ describe Numeric do
52
52
  </tr>
53
53
  </table>
54
54
  EOS
55
- },
55
+ }
56
56
  ]
57
57
 
58
58
  cases.each do |c|
@@ -27,7 +27,7 @@ describe Numeric do
27
27
  | 65535|0000ffff|
28
28
  | 65536|00010000|
29
29
  EOS
30
- },
30
+ }
31
31
  ]
32
32
 
33
33
  cases.each do |c|
@@ -52,7 +52,7 @@ describe Numeric do
52
52
  </tr>
53
53
  </table>
54
54
  EOS
55
- },
55
+ }
56
56
  ]
57
57
 
58
58
  cases.each do |c|
@@ -27,7 +27,7 @@ describe Numeric do
27
27
  | 65535|177777|
28
28
  | 65536|200000|
29
29
  EOS
30
- },
30
+ }
31
31
  ]
32
32
 
33
33
  cases.each do |c|
@@ -10,36 +10,36 @@ describe Object do
10
10
  case_title: 'true case',
11
11
  input: 'hoge',
12
12
  check: %w(hoge hige),
13
- expected: true,
13
+ expected: true
14
14
  },
15
15
  {
16
16
  case_no: 2,
17
17
  case_title: 'true case',
18
18
  input: 'hige',
19
19
  check: %w(hoge hige),
20
- expected: true,
20
+ expected: true
21
21
  },
22
22
  {
23
23
  case_no: 3,
24
24
  case_title: 'false case',
25
25
  input: 'hege',
26
26
  check: %w(hoge hige),
27
- expected: false,
27
+ expected: false
28
28
  },
29
29
  {
30
30
  case_no: 4,
31
31
  case_title: 'number true case',
32
32
  input: 1,
33
33
  check: [1, 2, 3, 4, 5],
34
- expected: true,
34
+ expected: true
35
35
  },
36
36
  {
37
37
  case_no: 5,
38
38
  case_title: 'number true case',
39
39
  input: 6,
40
40
  check: [1, 2, 3, 4, 5],
41
- expected: false,
42
- },
41
+ expected: false
42
+ }
43
43
  ]
44
44
 
45
45
  cases.each do |c|
@@ -9,32 +9,32 @@ describe Object do
9
9
  case_no: 1,
10
10
  case_title: 'true case',
11
11
  input: true,
12
- expected: true,
12
+ expected: true
13
13
  },
14
14
  {
15
15
  case_no: 2,
16
16
  case_title: 'false case',
17
17
  input: false,
18
- expected: true,
18
+ expected: true
19
19
  },
20
20
  {
21
21
  case_no: 3,
22
22
  case_title: "string 'true' case",
23
23
  input: 'true',
24
- expected: false,
24
+ expected: false
25
25
  },
26
26
  {
27
27
  case_no: 4,
28
28
  case_title: 'empty case',
29
29
  input: '',
30
- expected: false,
30
+ expected: false
31
31
  },
32
32
  {
33
33
  case_no: 5,
34
34
  case_title: 'nil case',
35
35
  input: nil,
36
- expected: false,
37
- },
36
+ expected: false
37
+ }
38
38
  ]
39
39
 
40
40
  cases.each do |c|
@@ -24,29 +24,29 @@ describe Object do
24
24
  case_title: 'String case',
25
25
  search: 'public_method1',
26
26
  all: false,
27
- expected: [:public_method1],
27
+ expected: [:public_method1]
28
28
  },
29
29
  {
30
30
  case_no: 2,
31
31
  case_title: 'Symbol case',
32
32
  search: :public_method1,
33
33
  all: false,
34
- expected: [:public_method1],
34
+ expected: [:public_method1]
35
35
  },
36
36
  {
37
37
  case_no: 3,
38
38
  case_title: 'Regexp case',
39
39
  search: /public_method1/,
40
40
  all: false,
41
- expected: [:public_method1, :public_method11],
41
+ expected: [:public_method1, :public_method11]
42
42
  },
43
43
  {
44
44
  case_no: 4,
45
45
  case_title: 'not hit case',
46
46
  search: /public_method3/,
47
47
  all: false,
48
- expected: [],
49
- },
48
+ expected: []
49
+ }
50
50
  ]
51
51
 
52
52
  cases.each do |c|
@@ -84,29 +84,29 @@ describe Object do
84
84
  case_title: 'String case',
85
85
  search: 'protected_method1',
86
86
  all: false,
87
- expected: [:protected_method1],
87
+ expected: [:protected_method1]
88
88
  },
89
89
  {
90
90
  case_no: 2,
91
91
  case_title: 'Symbol case',
92
92
  search: :protected_method1,
93
93
  all: false,
94
- expected: [:protected_method1],
94
+ expected: [:protected_method1]
95
95
  },
96
96
  {
97
97
  case_no: 3,
98
98
  case_title: 'Regexp case',
99
99
  search: /protected_method1/,
100
100
  all: false,
101
- expected: [:protected_method1, :protected_method11],
101
+ expected: [:protected_method1, :protected_method11]
102
102
  },
103
103
  {
104
104
  case_no: 4,
105
105
  case_title: 'not hit case',
106
106
  search: /public_method3/,
107
107
  all: false,
108
- expected: [],
109
- },
108
+ expected: []
109
+ }
110
110
  ]
111
111
 
112
112
  cases.each do |c|
@@ -144,29 +144,29 @@ describe Object do
144
144
  case_title: 'String case',
145
145
  search: 'private_method1',
146
146
  all: false,
147
- expected: [:private_method1],
147
+ expected: [:private_method1]
148
148
  },
149
149
  {
150
150
  case_no: 2,
151
151
  case_title: 'Symbol case',
152
152
  search: :private_method1,
153
153
  all: false,
154
- expected: [:private_method1],
154
+ expected: [:private_method1]
155
155
  },
156
156
  {
157
157
  case_no: 3,
158
158
  case_title: 'Regexp case',
159
159
  search: /private_method1/,
160
160
  all: false,
161
- expected: [:private_method1, :private_method11],
161
+ expected: [:private_method1, :private_method11]
162
162
  },
163
163
  {
164
164
  case_no: 4,
165
165
  case_title: 'not hit case',
166
166
  search: /public_method3/,
167
167
  all: false,
168
- expected: [],
169
- },
168
+ expected: []
169
+ }
170
170
  ]
171
171
 
172
172
  cases.each do |c|