sparse_array 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9c86838143bfa74eb6bdaeb6f848c5b45d3459c
4
- data.tar.gz: 11e4c7711ba949843659ae39f09517a091c85291
3
+ metadata.gz: 1222c633dd6ca39f1c1213d9bb60a9fe6293d083
4
+ data.tar.gz: c0c1d9c9b6ca5fc36f7d1db99d29ae47f0c4a9cd
5
5
  SHA512:
6
- metadata.gz: ad744fd63b6d6237db6201c4748c701baa49a30e3b6ecdc4091134137f433d695499ac26266f347c63a2b166ed1bdfd28d7061728ecb904279efde3585a48e33
7
- data.tar.gz: f0116cdde2a535c063f5a510a867e6edf504e318e0e518e7748aa186f043985718b335cf8cac7d5f52e98cd3c129da920fa75c14cf81daadaaaa66911bf7e65c
6
+ metadata.gz: 61e24daef31fe34e871ba1a44beb34c32a32d1fb0d2ba5c74c716c8fa781e67eeb38d803ee604fa86eaa2c078e64281ac715d26ae62b1b4c0df74f34c663b343
7
+ data.tar.gz: 133314b3dd6a8eee08ad31c073a265186b826d9bed06df190fde8c44a577f8e2cfaf0da3b9e7a5c2fa6d684b507cfb8223782405af7617687ebb8604752044e9
data/ext/sp_ar.c CHANGED
@@ -557,7 +557,7 @@ sparse_array_each_value(VALUE self)
557
557
  {
558
558
  spar_table *table;
559
559
  RETURN_ENUMERATOR(self, 0, 0);
560
- GetSparseArrayInt(self, table);
560
+ GetSparseArray(self, table);
561
561
  SPAR_FOREACH_START(table);
562
562
  rb_yield((VALUE)(value));
563
563
  SPAR_FOREACH_END();
@@ -565,15 +565,15 @@ sparse_array_each_value(VALUE self)
565
565
  }
566
566
 
567
567
  static VALUE
568
- sparse_array_init_copy(VALUE self, VALUE copy)
568
+ sparse_array_init_copy(VALUE self, VALUE orig)
569
569
  {
570
570
  spar_table *table;
571
- spar_table *copied;
571
+ spar_table *original;
572
572
  GetSparseArray(self, table);
573
- GetSparseArray(copy, copied);
574
- rb_obj_init_copy(self, copy);
575
- spar_copy_to(table, copied);
576
- return copy;
573
+ GetSparseArray(orig, original);
574
+ rb_obj_init_copy(self, orig);
575
+ spar_copy_to(original, table);
576
+ return self;
577
577
  }
578
578
 
579
579
  static VALUE
@@ -787,15 +787,15 @@ sparse_array_int_each_value(VALUE self)
787
787
  }
788
788
 
789
789
  static VALUE
790
- sparse_array_int_init_copy(VALUE self, VALUE copy)
790
+ sparse_array_int_init_copy(VALUE self, VALUE orig)
791
791
  {
792
792
  spar_table *table;
793
- spar_table *copied;
793
+ spar_table *original;
794
794
  GetSparseArrayInt(self, table);
795
- GetSparseArrayInt(copy, copied);
796
- rb_obj_init_copy(self, copy);
797
- spar_copy_to(table, copied);
798
- return copy;
795
+ GetSparseArrayInt(orig, original);
796
+ rb_obj_init_copy(self, orig);
797
+ spar_copy_to(original, table);
798
+ return self;
799
799
  }
800
800
 
801
801
  static VALUE
@@ -1,3 +1,3 @@
1
1
  class SparseArray
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparse_array
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sokolov Yura aka funny_falcon