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.
- checksums.yaml +4 -4
- data/Gemfile +9 -9
- data/README.md +95 -32
- data/lib/attr_enumerable/attr_enumerable_helper.rb +52 -52
- data/lib/attr_enumerable/map_attr.rb +1 -1
- data/lib/eval_helper/attr_accessor_init_code.rb +3 -3
- data/lib/eval_helper/each_do_code.rb +26 -26
- data/lib/eval_helper/each_with_index_do_code.rb +26 -26
- data/lib/eval_helper/require_code.rb +1 -1
- data/lib/eval_helper/require_relative_code.rb +1 -1
- data/lib/eval_helper/set_variable_code.rb +1 -1
- data/lib/eval_helper/set_variables_code.rb +1 -1
- data/lib/eval_helper/times_code.rb +1 -1
- data/lib/ghostable.rb +1 -1
- data/lib/open_classes/array.rb +0 -2
- data/lib/open_classes/array/average.rb +17 -17
- data/lib/open_classes/array/gte_gte.rb +1 -1
- data/lib/open_classes/array/to_table.rb +1 -1
- data/lib/open_classes/array/together_clear.rb +24 -24
- data/lib/open_classes/array/together_compact.rb +44 -44
- data/lib/open_classes/array/together_empty.rb +1 -1
- data/lib/open_classes/array/together_include.rb +1 -1
- data/lib/open_classes/enumerable.rb +4 -0
- data/lib/open_classes/enumerable/if_else_map.rb +12 -0
- data/lib/open_classes/{array → enumerable}/kernel_send.rb +15 -15
- data/lib/open_classes/{array → enumerable}/sum.rb +3 -3
- data/lib/open_classes/hash/gte_gte.rb +45 -45
- data/lib/open_classes/integer/each_digit.rb +13 -13
- data/lib/open_classes/integer/each_digit_with_index.rb +13 -13
- data/lib/open_classes/integer/reverse_each_digit.rb +13 -13
- data/lib/open_classes/kernel/aa_ancestors.rb +1 -1
- data/lib/open_classes/numeric/is_ascii.rb +4 -4
- data/lib/open_classes/object/any_of.rb +1 -2
- data/lib/open_classes/object/to_bool.rb +1 -1
- data/lib/open_classes/string/ascii_unicode_html_table.rb +1 -1
- data/lib/open_classes/string/ascii_unicode_table.rb +1 -1
- data/lib/open_classes/string/is_meta_variable.rb +7 -7
- data/lib/open_classes/string/justify_table.rb +2 -2
- data/lib/open_classes/string/surround.rb +2 -2
- data/lib/open_classes/symbol/is_meta_variable.rb +6 -6
- data/lib/tbpgr_utils.rb +1 -0
- data/lib/tbpgr_utils/version.rb +1 -1
- data/lib/templatable.rb +1 -1
- data/rubocop-todo.yml +2 -36
- data/spec/attr_enumerable/each_attr_spec.rb +1 -1
- data/spec/attr_enumerable/each_attr_with_index_spec.rb +1 -1
- data/spec/attr_enumerable/first_attr_spec.rb +107 -107
- data/spec/attr_enumerable/include_attr_spec.rb +4 -4
- data/spec/attr_enumerable/last_attr_spec.rb +4 -4
- data/spec/attr_enumerable/map_attr_spec.rb +3 -3
- data/spec/attr_enumerable/reduce_attr_spec.rb +3 -3
- data/spec/attr_enumerable/reverse_attr_spec.rb +1 -1
- data/spec/attr_enumerable/sample_attr_spec.rb +3 -3
- data/spec/attr_enumerable/select_attr_spec.rb +2 -2
- data/spec/attr_enumerable/shuffle_attr_spec.rb +1 -1
- data/spec/attr_enumerable/slice_attr_spec.rb +1 -1
- data/spec/attributes_hashable_spec.rb +1 -1
- data/spec/attributes_initializable_spec.rb +21 -21
- data/spec/eval_helper/attr_accessor_init_code_spec.rb +1 -1
- data/spec/eval_helper/attr_init_class_code_spec.rb +1 -1
- data/spec/eval_helper/each_brace_code_spec.rb +2 -2
- data/spec/eval_helper/each_do_code_spec.rb +1 -1
- data/spec/eval_helper/each_with_index_brace_code_spec.rb +2 -2
- data/spec/eval_helper/each_with_index_do_code_spec.rb +2 -2
- data/spec/eval_helper/if_code_after_spec.rb +3 -3
- data/spec/eval_helper/if_code_spec.rb +3 -3
- data/spec/eval_helper/require_code_spec.rb +3 -3
- data/spec/eval_helper/require_relative_code_spec.rb +3 -3
- data/spec/eval_helper/set_variable_code_spec.rb +3 -3
- data/spec/{set_variables_code_spec.rb → eval_helper/set_variables_code_spec.rb} +15 -15
- data/spec/eval_helper/ternary_operator_spec.rb +5 -5
- data/spec/eval_helper/times_code_spec.rb +1 -1
- data/spec/eval_helper/unless_code_after_spec.rb +3 -3
- data/spec/eval_helper/unless_code_spec.rb +3 -3
- data/spec/familyable/familyable_spec.rb +6 -6
- data/spec/ghostable_spec.rb +5 -5
- data/spec/markdown/backquotes_spec.rb +4 -4
- data/spec/markdown/bold_spec.rb +4 -4
- data/spec/markdown/code_spec.rb +3 -3
- data/spec/markdown/codes_spec.rb +2 -2
- data/spec/markdown/heading_spec.rb +5 -5
- data/spec/markdown/hr_spec.rb +1 -1
- data/spec/markdown/italic_spec.rb +4 -4
- data/spec/markdown/link_spec.rb +1 -1
- data/spec/markdown/ol_spec.rb +3 -3
- data/spec/markdown/ul_spec.rb +3 -3
- data/spec/metasyntactic_variable_spec.rb +4 -4
- data/spec/open_classes/array/average_spec.rb +4 -4
- data/spec/open_classes/array/exchange_spec.rb +6 -6
- data/spec/open_classes/array/gte_gte_spec.rb +4 -4
- data/spec/open_classes/array/to_html_table_spec.rb +3 -3
- data/spec/open_classes/array/to_table_spec.rb +2 -2
- data/spec/open_classes/array/together_at_spec.rb +4 -4
- data/spec/open_classes/array/together_clear_spec.rb +3 -3
- data/spec/open_classes/array/together_compact_spec.rb +6 -6
- data/spec/open_classes/array/together_concat_spec.rb +3 -3
- data/spec/open_classes/array/together_delete_at_spec.rb +5 -5
- data/spec/open_classes/array/together_delete_if_spec.rb +4 -4
- data/spec/open_classes/array/together_delete_spec.rb +5 -5
- data/spec/open_classes/array/together_empty_spec.rb +4 -4
- data/spec/open_classes/array/together_fill_spec.rb +5 -5
- data/spec/open_classes/array/together_first_spec.rb +6 -6
- data/spec/open_classes/array/together_include_spec.rb +8 -8
- data/spec/open_classes/array/together_index_spec.rb +5 -5
- data/spec/open_classes/array/together_insert_spec.rb +5 -5
- data/spec/open_classes/array/together_last_spec.rb +6 -6
- data/spec/open_classes/array/together_map_spec.rb +14 -14
- data/spec/open_classes/array/together_pop_spec.rb +8 -8
- data/spec/open_classes/array/together_reduce_spec.rb +8 -8
- data/spec/open_classes/array/together_reverse_spec.rb +119 -119
- data/spec/open_classes/array/together_sample_spec.rb +8 -8
- data/spec/open_classes/array/together_select_spec.rb +6 -6
- data/spec/open_classes/array/together_shift_spec.rb +8 -8
- data/spec/open_classes/array/together_shuffle_spec.rb +3 -3
- data/spec/open_classes/array/together_slice_spec.rb +5 -5
- data/spec/open_classes/array/together_spec.rb +3 -3
- data/spec/open_classes/array/together_with_index_spec.rb +3 -3
- data/spec/open_classes/array/uniq_size_spec.rb +4 -4
- data/spec/open_classes/enumerable/if_else_map_spec.rb +45 -0
- data/spec/open_classes/{array → enumerable}/kernel_send_spec.rb +50 -43
- data/spec/open_classes/{array → enumerable}/sum_spec.rb +8 -2
- data/spec/open_classes/fixnum/to_fixnum_html_table_spec.rb +1 -1
- data/spec/open_classes/fixnum/to_fixnum_table_spec.rb +1 -1
- data/spec/open_classes/hash/gte_gte_spec.rb +4 -4
- data/spec/open_classes/hash/html_table_spec.rb +2 -2
- data/spec/open_classes/hash/table_spec.rb +2 -2
- data/spec/open_classes/integer/each_digit_spec.rb +2 -2
- data/spec/open_classes/integer/each_digit_with_index_spec.rb +2 -2
- data/spec/open_classes/integer/palindromic_prime_spec.rb +6 -6
- data/spec/open_classes/integer/reverse_each_digit_spec.rb +2 -2
- data/spec/open_classes/kernel/aa_ancestors_spec.rb +1 -1
- data/spec/open_classes/kernel/booleans_spec.rb +1 -1
- data/spec/open_classes/kernel/bulk_define_methods_spec.rb +5 -5
- data/spec/open_classes/kernel/bulk_puts_eval_spec.rb +1 -1
- data/spec/open_classes/kernel/evalb_spec.rb +2 -2
- data/spec/open_classes/kernel/exchange_spec.rb +2 -2
- data/spec/open_classes/kernel/hash_to_attributes_spec.rb +3 -3
- data/spec/open_classes/kernel/null_spec.rb +1 -1
- data/spec/open_classes/kernel/print_eval_spec.rb +3 -3
- data/spec/open_classes/kernel/puts_eval_spec.rb +3 -3
- data/spec/open_classes/module_spec.rb +3 -3
- data/spec/open_classes/numeric/dice_back_spec.rb +8 -8
- data/spec/open_classes/numeric/dozen_spec.rb +4 -4
- data/spec/open_classes/numeric/is_ascii_spec.rb +6 -6
- data/spec/open_classes/numeric/to_binary_html_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_binary_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_digit_html_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_digit_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_hex_html_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_hex_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_oct_html_table_spec.rb +1 -1
- data/spec/open_classes/numeric/to_oct_table_spec.rb +1 -1
- data/spec/open_classes/object/any_of_spec.rb +6 -6
- data/spec/open_classes/object/boolean_spec.rb +6 -6
- data/spec/open_classes/object/grep_instance_method_spec.rb +15 -15
- data/spec/open_classes/object/grep_method_spec.rb +6 -6
- data/spec/open_classes/object/guard_spec.rb +8 -8
- data/spec/open_classes/object/method_nameable_spec.rb +4 -4
- data/spec/open_classes/object/my_methods_spec.rb +2 -2
- data/spec/open_classes/object/null_spec.rb +1 -1
- data/spec/open_classes/object/to_bool_spec.rb +7 -7
- data/spec/open_classes/string/ascii1_other2_size_spec.rb +5 -5
- data/spec/open_classes/string/ascii_unicode_html_table_spec.rb +1 -1
- data/spec/open_classes/string/ascii_unicode_table_spec.rb +1 -1
- data/spec/open_classes/string/comma_to_a_spec.rb +1 -1
- data/spec/open_classes/string/cygwinpath_to_winpath_spec.rb +3 -3
- data/spec/open_classes/string/escape_double_quote_spec.rb +3 -3
- data/spec/open_classes/string/escape_quote_spec.rb +3 -3
- data/spec/open_classes/string/gte_gte_spec.rb +3 -3
- data/spec/open_classes/string/hyphen_to_a_spec.rb +1 -1
- data/spec/open_classes/string/is_meta_variable_spec.rb +3 -3
- data/spec/open_classes/string/justify_char_spec.rb +6 -6
- data/spec/open_classes/string/justify_table_spec.rb +6 -6
- data/spec/open_classes/string/say_spec.rb +2 -2
- data/spec/open_classes/string/spacing_spec.rb +6 -6
- data/spec/open_classes/string/surround_spec.rb +1 -1
- data/spec/open_classes/string/table_to_array_spec.rb +1 -1
- data/spec/open_classes/string/to_hatena_heading_spec.rb +5 -5
- data/spec/open_classes/string/to_markdown_heading_spec.rb +5 -5
- data/spec/open_classes/string/to_space2_heading_spec.rb +5 -5
- data/spec/open_classes/string/to_space4_heading_spec.rb +5 -5
- data/spec/open_classes/string/to_tab_heading_spec.rb +5 -5
- data/spec/open_classes/string/unescape_double_quote_spec.rb +3 -3
- data/spec/open_classes/string/unescape_quote_spec.rb +3 -3
- data/spec/open_classes/string/uniq_size_spec.rb +4 -4
- data/spec/open_classes/string/uniq_spec.rb +4 -4
- data/spec/open_classes/string/winpath_to_cygwinpath_spec.rb +3 -3
- data/spec/open_classes/symbol/is_meta_variable_spec.rb +3 -3
- data/spec/simple_tournament_spec.rb +9 -9
- data/spec/templatable_spec.rb +2 -2
- data/spec/template_methodable_spec.rb +1 -1
- data/spec/test_toolbox/kernel_spec.rb +7 -7
- data/tbpgr_utils.gemspec +4 -4
- metadata +15 -11
data/tbpgr_utils.gemspec
CHANGED
@@ -8,14 +8,14 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = TbpgrUtils::VERSION
|
9
9
|
spec.authors = ['tbpgr']
|
10
10
|
spec.email = ['tbpgr@tbpgr.jp']
|
11
|
-
spec.description =
|
12
|
-
spec.summary =
|
11
|
+
spec.description = 'Utilities'
|
12
|
+
spec.summary = 'Utilities'
|
13
13
|
spec.homepage = 'https://github.com/tbpgr/tbpgr_utils'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
17
|
-
spec.executables = spec.files.grep(
|
18
|
-
spec.test_files = spec.files.grep(
|
17
|
+
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'activesupport', '~> 4.0.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tbpgr_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.151
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tbpgr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -156,8 +156,6 @@ files:
|
|
156
156
|
- lib/open_classes/array/average.rb
|
157
157
|
- lib/open_classes/array/exchange.rb
|
158
158
|
- lib/open_classes/array/gte_gte.rb
|
159
|
-
- lib/open_classes/array/kernel_send.rb
|
160
|
-
- lib/open_classes/array/sum.rb
|
161
159
|
- lib/open_classes/array/to_html_table.rb
|
162
160
|
- lib/open_classes/array/to_table.rb
|
163
161
|
- lib/open_classes/array/together.rb
|
@@ -187,6 +185,10 @@ files:
|
|
187
185
|
- lib/open_classes/array/together_slice.rb
|
188
186
|
- lib/open_classes/array/together_with_index.rb
|
189
187
|
- lib/open_classes/array/uniq_size.rb
|
188
|
+
- lib/open_classes/enumerable.rb
|
189
|
+
- lib/open_classes/enumerable/if_else_map.rb
|
190
|
+
- lib/open_classes/enumerable/kernel_send.rb
|
191
|
+
- lib/open_classes/enumerable/sum.rb
|
190
192
|
- lib/open_classes/fixnum.rb
|
191
193
|
- lib/open_classes/fixnum/to_fixnum_html_table.rb
|
192
194
|
- lib/open_classes/fixnum/to_fixnum_table.rb
|
@@ -299,6 +301,7 @@ files:
|
|
299
301
|
- spec/eval_helper/require_code_spec.rb
|
300
302
|
- spec/eval_helper/require_relative_code_spec.rb
|
301
303
|
- spec/eval_helper/set_variable_code_spec.rb
|
304
|
+
- spec/eval_helper/set_variables_code_spec.rb
|
302
305
|
- spec/eval_helper/ternary_operator_spec.rb
|
303
306
|
- spec/eval_helper/times_code_spec.rb
|
304
307
|
- spec/eval_helper/unless_code_after_spec.rb
|
@@ -319,8 +322,6 @@ files:
|
|
319
322
|
- spec/open_classes/array/average_spec.rb
|
320
323
|
- spec/open_classes/array/exchange_spec.rb
|
321
324
|
- spec/open_classes/array/gte_gte_spec.rb
|
322
|
-
- spec/open_classes/array/kernel_send_spec.rb
|
323
|
-
- spec/open_classes/array/sum_spec.rb
|
324
325
|
- spec/open_classes/array/to_html_table_spec.rb
|
325
326
|
- spec/open_classes/array/to_table_spec.rb
|
326
327
|
- spec/open_classes/array/together_at_spec.rb
|
@@ -349,6 +350,9 @@ files:
|
|
349
350
|
- spec/open_classes/array/together_spec.rb
|
350
351
|
- spec/open_classes/array/together_with_index_spec.rb
|
351
352
|
- spec/open_classes/array/uniq_size_spec.rb
|
353
|
+
- spec/open_classes/enumerable/if_else_map_spec.rb
|
354
|
+
- spec/open_classes/enumerable/kernel_send_spec.rb
|
355
|
+
- spec/open_classes/enumerable/sum_spec.rb
|
352
356
|
- spec/open_classes/fixnum/to_fixnum_html_table_spec.rb
|
353
357
|
- spec/open_classes/fixnum/to_fixnum_table_spec.rb
|
354
358
|
- spec/open_classes/hash/gte_gte_spec.rb
|
@@ -417,7 +421,6 @@ files:
|
|
417
421
|
- spec/open_classes/string/uniq_spec.rb
|
418
422
|
- spec/open_classes/string/winpath_to_cygwinpath_spec.rb
|
419
423
|
- spec/open_classes/symbol/is_meta_variable_spec.rb
|
420
|
-
- spec/set_variables_code_spec.rb
|
421
424
|
- spec/simple_tournament_spec.rb
|
422
425
|
- spec/spec_helper.rb
|
423
426
|
- spec/templatable_spec.rb
|
@@ -444,7 +447,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
444
447
|
version: '0'
|
445
448
|
requirements: []
|
446
449
|
rubyforge_project:
|
447
|
-
rubygems_version: 2.0
|
450
|
+
rubygems_version: 2.3.0
|
448
451
|
signing_key:
|
449
452
|
specification_version: 4
|
450
453
|
summary: Utilities
|
@@ -478,6 +481,7 @@ test_files:
|
|
478
481
|
- spec/eval_helper/require_code_spec.rb
|
479
482
|
- spec/eval_helper/require_relative_code_spec.rb
|
480
483
|
- spec/eval_helper/set_variable_code_spec.rb
|
484
|
+
- spec/eval_helper/set_variables_code_spec.rb
|
481
485
|
- spec/eval_helper/ternary_operator_spec.rb
|
482
486
|
- spec/eval_helper/times_code_spec.rb
|
483
487
|
- spec/eval_helper/unless_code_after_spec.rb
|
@@ -498,8 +502,6 @@ test_files:
|
|
498
502
|
- spec/open_classes/array/average_spec.rb
|
499
503
|
- spec/open_classes/array/exchange_spec.rb
|
500
504
|
- spec/open_classes/array/gte_gte_spec.rb
|
501
|
-
- spec/open_classes/array/kernel_send_spec.rb
|
502
|
-
- spec/open_classes/array/sum_spec.rb
|
503
505
|
- spec/open_classes/array/to_html_table_spec.rb
|
504
506
|
- spec/open_classes/array/to_table_spec.rb
|
505
507
|
- spec/open_classes/array/together_at_spec.rb
|
@@ -528,6 +530,9 @@ test_files:
|
|
528
530
|
- spec/open_classes/array/together_spec.rb
|
529
531
|
- spec/open_classes/array/together_with_index_spec.rb
|
530
532
|
- spec/open_classes/array/uniq_size_spec.rb
|
533
|
+
- spec/open_classes/enumerable/if_else_map_spec.rb
|
534
|
+
- spec/open_classes/enumerable/kernel_send_spec.rb
|
535
|
+
- spec/open_classes/enumerable/sum_spec.rb
|
531
536
|
- spec/open_classes/fixnum/to_fixnum_html_table_spec.rb
|
532
537
|
- spec/open_classes/fixnum/to_fixnum_table_spec.rb
|
533
538
|
- spec/open_classes/hash/gte_gte_spec.rb
|
@@ -596,7 +601,6 @@ test_files:
|
|
596
601
|
- spec/open_classes/string/uniq_spec.rb
|
597
602
|
- spec/open_classes/string/winpath_to_cygwinpath_spec.rb
|
598
603
|
- spec/open_classes/symbol/is_meta_variable_spec.rb
|
599
|
-
- spec/set_variables_code_spec.rb
|
600
604
|
- spec/simple_tournament_spec.rb
|
601
605
|
- spec/spec_helper.rb
|
602
606
|
- spec/templatable_spec.rb
|