backports 3.7.0 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -15
- data/.travis.yml +1 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +37 -5
- data/Rakefile +15 -7
- data/lib/backports.rb +0 -1
- data/lib/backports/1.8.7.rb +1 -1
- data/lib/backports/1.8.7/argf/lines.rb +1 -1
- data/lib/backports/1.8.7/dir/foreach.rb +1 -1
- data/lib/backports/1.9.2/stdlib/matrix.rb +2 -1
- data/lib/backports/2.2.0/kernel.rb +3 -0
- data/lib/backports/2.2.0/kernel/itself.rb +7 -0
- data/lib/backports/2.2.0/method.rb +3 -0
- data/lib/backports/2.2.0/method/curry.rb +9 -0
- data/lib/backports/2.2.0/string.rb +3 -0
- data/lib/backports/2.2.0/string/unicode_normalize.rb +29 -0
- data/lib/backports/2.3.0/array.rb +3 -0
- data/lib/backports/2.3.0/array/bsearch_index.rb +32 -0
- data/lib/backports/2.3.0/array/dig.rb +10 -0
- data/lib/backports/2.3.0/enumerable.rb +3 -0
- data/lib/backports/2.3.0/enumerable/chunk_while.rb +27 -0
- data/lib/backports/2.3.0/enumerable/grep_v.rb +17 -0
- data/lib/backports/2.3.0/hash.rb +3 -0
- data/lib/backports/2.3.0/hash/dig.rb +10 -0
- data/lib/backports/2.3.0/hash/fetch_values.rb +9 -0
- data/lib/backports/2.3.0/hash/gt.rb +10 -0
- data/lib/backports/2.3.0/hash/gte.rb +10 -0
- data/lib/backports/2.3.0/hash/lt.rb +14 -0
- data/lib/backports/2.3.0/hash/lte.rb +14 -0
- data/lib/backports/2.3.0/hash/to_proc.rb +8 -0
- data/lib/backports/2.3.0/numeric.rb +3 -0
- data/lib/backports/2.3.0/numeric/negative.rb +7 -0
- data/lib/backports/2.3.0/numeric/positive.rb +7 -0
- data/lib/backports/2.3.0/string/uminus.rb +7 -0
- data/lib/backports/2.3.0/string/uplus.rb +7 -0
- data/lib/backports/2.3.0/struct.rb +3 -0
- data/lib/backports/2.3.0/struct/dig.rb +12 -0
- data/lib/backports/2.4.0/comparable/clamp.rb +0 -1
- data/lib/backports/2.4.0/regexp/match.rb +11 -0
- data/lib/backports/2.4.0/string/match.rb +11 -0
- data/lib/backports/rails.rb +0 -1
- data/lib/backports/tools/normalize.rb +1322 -0
- data/lib/backports/version.rb +1 -1
- data/spec/tags/1.8.6/core/array/bsearch_index_spec.rb +1 -0
- data/spec/tags/1.8.6/core/string/uplus_spec.rb +1 -0
- data/spec/tags/1.8.7/core/array/bsearch_index_spec.rb +1 -0
- data/spec/tags/1.8.7/core/string/uplus_spec.rb +1 -0
- data/spec/tags/1.9.1/core/array/bsearch_index_spec.rb +1 -0
- data/spec/tags/1.9.1/core/string/uplus_spec.rb +1 -0
- data/spec/tags/1.9.2/core/array/bsearch_index_spec.rb +1 -0
- data/spec/tags/1.9.2/core/method/curry_spec.rb +1 -0
- data/spec/tags/1.9.2/core/string/uplus_spec.rb +1 -0
- data/spec/tags/1.9.3/core/array/bsearch_index_spec.rb +1 -0
- data/spec/tags/1.9.3/core/io/write_spec.rb +3 -0
- data/spec/tags/1.9.3/core/method/curry_spec.rb +1 -0
- data/spec/tags/1.9.3/core/string/uplus_spec.rb +1 -0
- data/spec/tags/2.0.0/core/string/uplus_spec.rb +1 -0
- data/spec/tags/2.1.0/core/string/uplus_spec.rb +1 -0
- data/spec/tags/2.2.0/core/string/uplus_spec.rb +1 -0
- data/spec/tags/2.3.0/core/string/uplus_spec.rb +1 -0
- metadata +94 -25
- data/lib/backports/2.3.0/.git_keep +0 -0
data/lib/backports/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
fails:Array#bsearch_index when not passed a block returns an Enumerator with unknown size
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Array#bsearch_index when not passed a block returns an Enumerator with unknown size
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Array#bsearch_index when not passed a block returns an Enumerator with unknown size
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Array#bsearch_index when not passed a block returns an Enumerator with unknown size
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Method#curry with optional arity argument raises ArgumentError when the method requires less arguments than the given arity
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Array#bsearch_index when not passed a block returns an Enumerator with unknown size
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:Method#curry with optional arity argument raises ArgumentError when the method requires less arguments than the given arity
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
@@ -0,0 +1 @@
|
|
1
|
+
fails:String#+@ returns mutable copy despite freeze-magic-comment in file
|
metadata
CHANGED
@@ -1,23 +1,27 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: backports
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.8.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Marc-
|
6
|
+
authors:
|
7
|
+
- "Marc-Andr\xC3\xA9 Lafortune"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
11
|
+
|
12
|
+
date: 2017-04-26 00:00:00 Z
|
12
13
|
dependencies: []
|
13
|
-
|
14
|
-
|
15
|
-
email:
|
14
|
+
|
15
|
+
description: Essential backports that enable many of the nice features of Ruby 1.8.7 up to 2.1.0 for earlier versions.
|
16
|
+
email:
|
16
17
|
- github@marc-andre.ca
|
17
18
|
executables: []
|
19
|
+
|
18
20
|
extensions: []
|
21
|
+
|
19
22
|
extra_rdoc_files: []
|
20
|
-
|
23
|
+
|
24
|
+
files:
|
21
25
|
- .document
|
22
26
|
- .gitignore
|
23
27
|
- .gitmodules
|
@@ -518,13 +522,41 @@ files:
|
|
518
522
|
- lib/backports/2.2.0/float.rb
|
519
523
|
- lib/backports/2.2.0/float/next_float.rb
|
520
524
|
- lib/backports/2.2.0/float/prev_float.rb
|
525
|
+
- lib/backports/2.2.0/kernel.rb
|
526
|
+
- lib/backports/2.2.0/kernel/itself.rb
|
527
|
+
- lib/backports/2.2.0/method.rb
|
528
|
+
- lib/backports/2.2.0/method/curry.rb
|
529
|
+
- lib/backports/2.2.0/string.rb
|
530
|
+
- lib/backports/2.2.0/string/unicode_normalize.rb
|
521
531
|
- lib/backports/2.2.rb
|
522
532
|
- lib/backports/2.3.0.rb
|
523
|
-
- lib/backports/2.3.0
|
533
|
+
- lib/backports/2.3.0/array.rb
|
534
|
+
- lib/backports/2.3.0/array/bsearch_index.rb
|
535
|
+
- lib/backports/2.3.0/array/dig.rb
|
536
|
+
- lib/backports/2.3.0/enumerable.rb
|
537
|
+
- lib/backports/2.3.0/enumerable/chunk_while.rb
|
538
|
+
- lib/backports/2.3.0/enumerable/grep_v.rb
|
539
|
+
- lib/backports/2.3.0/hash.rb
|
540
|
+
- lib/backports/2.3.0/hash/dig.rb
|
541
|
+
- lib/backports/2.3.0/hash/fetch_values.rb
|
542
|
+
- lib/backports/2.3.0/hash/gt.rb
|
543
|
+
- lib/backports/2.3.0/hash/gte.rb
|
544
|
+
- lib/backports/2.3.0/hash/lt.rb
|
545
|
+
- lib/backports/2.3.0/hash/lte.rb
|
546
|
+
- lib/backports/2.3.0/hash/to_proc.rb
|
547
|
+
- lib/backports/2.3.0/numeric.rb
|
548
|
+
- lib/backports/2.3.0/numeric/negative.rb
|
549
|
+
- lib/backports/2.3.0/numeric/positive.rb
|
550
|
+
- lib/backports/2.3.0/string/uminus.rb
|
551
|
+
- lib/backports/2.3.0/string/uplus.rb
|
552
|
+
- lib/backports/2.3.0/struct.rb
|
553
|
+
- lib/backports/2.3.0/struct/dig.rb
|
524
554
|
- lib/backports/2.3.rb
|
525
555
|
- lib/backports/2.4.0.rb
|
526
556
|
- lib/backports/2.4.0/comparable.rb
|
527
557
|
- lib/backports/2.4.0/comparable/clamp.rb
|
558
|
+
- lib/backports/2.4.0/regexp/match.rb
|
559
|
+
- lib/backports/2.4.0/string/match.rb
|
528
560
|
- lib/backports/2.4.rb
|
529
561
|
- lib/backports/basic_object.rb
|
530
562
|
- lib/backports/force/array_map.rb
|
@@ -552,6 +584,7 @@ files:
|
|
552
584
|
- lib/backports/tools/float_integer_conversion.rb
|
553
585
|
- lib/backports/tools/io.rb
|
554
586
|
- lib/backports/tools/make_block_optional.rb
|
587
|
+
- lib/backports/tools/normalize.rb
|
555
588
|
- lib/backports/tools/path.rb
|
556
589
|
- lib/backports/tools/require_relative_dir.rb
|
557
590
|
- lib/backports/tools/std_lib.rb
|
@@ -570,6 +603,7 @@ files:
|
|
570
603
|
- spec/tags/1.8.6/core/argf/each_line_spec.rb
|
571
604
|
- spec/tags/1.8.6/core/argf/each_spec.rb
|
572
605
|
- spec/tags/1.8.6/core/argf/lines_spec.rb
|
606
|
+
- spec/tags/1.8.6/core/array/bsearch_index_spec.rb
|
573
607
|
- spec/tags/1.8.6/core/array/collect_spec.rb
|
574
608
|
- spec/tags/1.8.6/core/array/rotate_spec.rb
|
575
609
|
- spec/tags/1.8.6/core/array/uniq_spec.rb
|
@@ -620,6 +654,7 @@ files:
|
|
620
654
|
- spec/tags/1.8.6/core/string/prepend_spec.rb
|
621
655
|
- spec/tags/1.8.6/core/string/rpartition_spec.rb
|
622
656
|
- spec/tags/1.8.6/core/string/setbyte_spec.rb
|
657
|
+
- spec/tags/1.8.6/core/string/uplus_spec.rb
|
623
658
|
- spec/tags/1.8.6/core/string/upto_spec.rb
|
624
659
|
- spec/tags/1.8.6/core/symbol/capitalize_spec.rb
|
625
660
|
- spec/tags/1.8.6/core/symbol/comparison_spec.rb
|
@@ -630,6 +665,7 @@ files:
|
|
630
665
|
- spec/tags/1.8.6/core/symbol/swapcase_spec.rb
|
631
666
|
- spec/tags/1.8.6/core/symbol/to_proc_spec.rb
|
632
667
|
- spec/tags/1.8.6/core/symbol/upcase_spec.rb
|
668
|
+
- spec/tags/1.8.7/core/array/bsearch_index_spec.rb
|
633
669
|
- spec/tags/1.8.7/core/array/keep_if_spec.rb
|
634
670
|
- spec/tags/1.8.7/core/array/rotate_spec.rb
|
635
671
|
- spec/tags/1.8.7/core/array/select_spec.rb
|
@@ -666,6 +702,7 @@ files:
|
|
666
702
|
- spec/tags/1.8.7/core/string/getbyte_spec.rb
|
667
703
|
- spec/tags/1.8.7/core/string/prepend_spec.rb
|
668
704
|
- spec/tags/1.8.7/core/string/setbyte_spec.rb
|
705
|
+
- spec/tags/1.8.7/core/string/uplus_spec.rb
|
669
706
|
- spec/tags/1.8.7/core/symbol/capitalize_spec.rb
|
670
707
|
- spec/tags/1.8.7/core/symbol/comparison_spec.rb
|
671
708
|
- spec/tags/1.8.7/core/symbol/downcase_spec.rb
|
@@ -674,11 +711,24 @@ files:
|
|
674
711
|
- spec/tags/1.8.7/core/symbol/match_spec.rb
|
675
712
|
- spec/tags/1.8.7/core/symbol/swapcase_spec.rb
|
676
713
|
- spec/tags/1.8.7/core/symbol/upcase_spec.rb
|
714
|
+
- spec/tags/1.9.1/core/array/bsearch_index_spec.rb
|
677
715
|
- spec/tags/1.9.1/core/array/rotate_spec.rb
|
678
716
|
- spec/tags/1.9.1/core/env/to_h_spec.rb
|
679
717
|
- spec/tags/1.9.1/core/hash/default_proc_spec.rb
|
680
718
|
- spec/tags/1.9.1/core/io/write_spec.rb
|
719
|
+
- spec/tags/1.9.1/core/string/uplus_spec.rb
|
720
|
+
- spec/tags/1.9.2/core/array/bsearch_index_spec.rb
|
681
721
|
- spec/tags/1.9.2/core/io/write_spec.rb
|
722
|
+
- spec/tags/1.9.2/core/method/curry_spec.rb
|
723
|
+
- spec/tags/1.9.2/core/string/uplus_spec.rb
|
724
|
+
- spec/tags/1.9.3/core/array/bsearch_index_spec.rb
|
725
|
+
- spec/tags/1.9.3/core/io/write_spec.rb
|
726
|
+
- spec/tags/1.9.3/core/method/curry_spec.rb
|
727
|
+
- spec/tags/1.9.3/core/string/uplus_spec.rb
|
728
|
+
- spec/tags/2.0.0/core/string/uplus_spec.rb
|
729
|
+
- spec/tags/2.1.0/core/string/uplus_spec.rb
|
730
|
+
- spec/tags/2.2.0/core/string/uplus_spec.rb
|
731
|
+
- spec/tags/2.3.0/core/string/uplus_spec.rb
|
682
732
|
- test/README
|
683
733
|
- test/_backport_guards_test.rb
|
684
734
|
- test/bit_length_test.rb
|
@@ -686,33 +736,36 @@ files:
|
|
686
736
|
- test/socket_interaction_test.rb
|
687
737
|
- test/test_helper.rb
|
688
738
|
homepage: http://github.com/marcandre/backports
|
689
|
-
licenses:
|
739
|
+
licenses:
|
690
740
|
- MIT
|
691
741
|
metadata: {}
|
742
|
+
|
692
743
|
post_install_message:
|
693
744
|
rdoc_options: []
|
694
|
-
|
745
|
+
|
746
|
+
require_paths:
|
695
747
|
- lib
|
696
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
697
|
-
requirements:
|
698
|
-
-
|
699
|
-
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
version: '0'
|
748
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
749
|
+
requirements:
|
750
|
+
- &id001
|
751
|
+
- ">="
|
752
|
+
- !ruby/object:Gem::Version
|
753
|
+
version: "0"
|
754
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
755
|
+
requirements:
|
756
|
+
- *id001
|
706
757
|
requirements: []
|
758
|
+
|
707
759
|
rubyforge_project:
|
708
|
-
rubygems_version: 2.
|
760
|
+
rubygems_version: 2.0.17
|
709
761
|
signing_key:
|
710
762
|
specification_version: 4
|
711
763
|
summary: Backports of Ruby features for older Ruby.
|
712
|
-
test_files:
|
764
|
+
test_files:
|
713
765
|
- spec/tags/1.8.6/core/argf/each_line_spec.rb
|
714
766
|
- spec/tags/1.8.6/core/argf/each_spec.rb
|
715
767
|
- spec/tags/1.8.6/core/argf/lines_spec.rb
|
768
|
+
- spec/tags/1.8.6/core/array/bsearch_index_spec.rb
|
716
769
|
- spec/tags/1.8.6/core/array/collect_spec.rb
|
717
770
|
- spec/tags/1.8.6/core/array/rotate_spec.rb
|
718
771
|
- spec/tags/1.8.6/core/array/uniq_spec.rb
|
@@ -763,6 +816,7 @@ test_files:
|
|
763
816
|
- spec/tags/1.8.6/core/string/prepend_spec.rb
|
764
817
|
- spec/tags/1.8.6/core/string/rpartition_spec.rb
|
765
818
|
- spec/tags/1.8.6/core/string/setbyte_spec.rb
|
819
|
+
- spec/tags/1.8.6/core/string/uplus_spec.rb
|
766
820
|
- spec/tags/1.8.6/core/string/upto_spec.rb
|
767
821
|
- spec/tags/1.8.6/core/symbol/capitalize_spec.rb
|
768
822
|
- spec/tags/1.8.6/core/symbol/comparison_spec.rb
|
@@ -773,6 +827,7 @@ test_files:
|
|
773
827
|
- spec/tags/1.8.6/core/symbol/swapcase_spec.rb
|
774
828
|
- spec/tags/1.8.6/core/symbol/to_proc_spec.rb
|
775
829
|
- spec/tags/1.8.6/core/symbol/upcase_spec.rb
|
830
|
+
- spec/tags/1.8.7/core/array/bsearch_index_spec.rb
|
776
831
|
- spec/tags/1.8.7/core/array/keep_if_spec.rb
|
777
832
|
- spec/tags/1.8.7/core/array/rotate_spec.rb
|
778
833
|
- spec/tags/1.8.7/core/array/select_spec.rb
|
@@ -809,6 +864,7 @@ test_files:
|
|
809
864
|
- spec/tags/1.8.7/core/string/getbyte_spec.rb
|
810
865
|
- spec/tags/1.8.7/core/string/prepend_spec.rb
|
811
866
|
- spec/tags/1.8.7/core/string/setbyte_spec.rb
|
867
|
+
- spec/tags/1.8.7/core/string/uplus_spec.rb
|
812
868
|
- spec/tags/1.8.7/core/symbol/capitalize_spec.rb
|
813
869
|
- spec/tags/1.8.7/core/symbol/comparison_spec.rb
|
814
870
|
- spec/tags/1.8.7/core/symbol/downcase_spec.rb
|
@@ -817,11 +873,24 @@ test_files:
|
|
817
873
|
- spec/tags/1.8.7/core/symbol/match_spec.rb
|
818
874
|
- spec/tags/1.8.7/core/symbol/swapcase_spec.rb
|
819
875
|
- spec/tags/1.8.7/core/symbol/upcase_spec.rb
|
876
|
+
- spec/tags/1.9.1/core/array/bsearch_index_spec.rb
|
820
877
|
- spec/tags/1.9.1/core/array/rotate_spec.rb
|
821
878
|
- spec/tags/1.9.1/core/env/to_h_spec.rb
|
822
879
|
- spec/tags/1.9.1/core/hash/default_proc_spec.rb
|
823
880
|
- spec/tags/1.9.1/core/io/write_spec.rb
|
881
|
+
- spec/tags/1.9.1/core/string/uplus_spec.rb
|
882
|
+
- spec/tags/1.9.2/core/array/bsearch_index_spec.rb
|
824
883
|
- spec/tags/1.9.2/core/io/write_spec.rb
|
884
|
+
- spec/tags/1.9.2/core/method/curry_spec.rb
|
885
|
+
- spec/tags/1.9.2/core/string/uplus_spec.rb
|
886
|
+
- spec/tags/1.9.3/core/array/bsearch_index_spec.rb
|
887
|
+
- spec/tags/1.9.3/core/io/write_spec.rb
|
888
|
+
- spec/tags/1.9.3/core/method/curry_spec.rb
|
889
|
+
- spec/tags/1.9.3/core/string/uplus_spec.rb
|
890
|
+
- spec/tags/2.0.0/core/string/uplus_spec.rb
|
891
|
+
- spec/tags/2.1.0/core/string/uplus_spec.rb
|
892
|
+
- spec/tags/2.2.0/core/string/uplus_spec.rb
|
893
|
+
- spec/tags/2.3.0/core/string/uplus_spec.rb
|
825
894
|
- test/README
|
826
895
|
- test/_backport_guards_test.rb
|
827
896
|
- test/bit_length_test.rb
|
File without changes
|