linked_list_int 2.0.0 → 3.0.0

This diff has not been reviewed by any users.
Log in in order to be able to vote.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0508cb8bb775ef6fb665e759c84b868787b57882fe98afd7973d8945a104f776'
4
- data.tar.gz: 4b1e580927547ff96b57197121ee4be3226162ab958d80249fa9ce6f8665eb21
3
+ metadata.gz: 4311f090f7c94e61b6f17a28f4e2ad222ee0162db92cd63d39f5ed294b876107
4
+ data.tar.gz: 9bbe987c1a93328c257e1c6f9b161418c1ee2cb27904b4443a6c54c399e22c4c
5
5
  SHA512:
6
- metadata.gz: 93d69ece134f303cca4f608f2beccdf27bd8e21469c2a9345c13979c5a9f21590b6a391b0af5eb8971161304ed0148ea6abd6df37230f573ed7f8c535bf0f9ae
7
- data.tar.gz: '09a878f1c21084d82bc084bf9c3d7cacd7590ba10ed01315f3340a6bb16658d3e73dc802d1510254779bbdc93fd28e33345ca535a78112dc682d8357c977b604'
6
+ metadata.gz: 2c39dada7f390c768f5f79e732bb0efc1add0b63edef93c2c9f637d8d785e36ad1fe170404eb6e1d0d756b673bb734d3af7a197a8745c36c1d3acb56f29aee97
7
+ data.tar.gz: 4a9206957922a2399ab23aa15e2e48e816550d3bdc0328a5d27bdfa235388d52647868f99eea0b3d82ca3b5ad9a53f7ee663ded02f5dcd7a3c3d672a306e08df
@@ -41,6 +41,30 @@
41
41
  <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
42
42
  </pathElement>
43
43
  </expandedPath>
44
+ <expandedPath>
45
+ <pathElement>
46
+ <option name="myNodeId" value="project6" />
47
+ <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
48
+ </pathElement>
49
+ <pathElement>
50
+ <option name="myNodeId" value="project8" />
51
+ <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
52
+ </pathElement>
53
+ </expandedPath>
54
+ <expandedPath>
55
+ <pathElement>
56
+ <option name="myNodeId" value="project6" />
57
+ <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
58
+ </pathElement>
59
+ <pathElement>
60
+ <option name="myNodeId" value="project8" />
61
+ <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
62
+ </pathElement>
63
+ <pathElement>
64
+ <option name="myNodeId" value="project19" />
65
+ <option name="myNodeType" value="jetbrains.buildServer.tree.descriptors.ProjectDescriptor" />
66
+ </pathElement>
67
+ </expandedPath>
44
68
  <selectedPath>
45
69
  <pathElement>
46
70
  <option name="myNodeId" value="project6" />
@@ -94,7 +118,7 @@
94
118
  </treeState>
95
119
  </component>
96
120
  <component name="ChangeListManager">
97
- <list default="true" id="5940a942-e75a-4e99-8179-274536bca47d" name="Default Changelist" comment="Prepare Deployment&#10;&#10;Updated Changelog.md.">
121
+ <list default="true" id="5940a942-e75a-4e99-8179-274536bca47d" name="Default Changelist" comment="">
98
122
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
99
123
  </list>
100
124
  <option name="SHOW_DIALOG" value="false" />
@@ -103,7 +127,7 @@
103
127
  <option name="LAST_RESOLUTION" value="IGNORE" />
104
128
  </component>
105
129
  <component name="CoverageViewManager">
106
- <option name="myElementSize" value="412" />
130
+ <option name="myElementSize" value="423" />
107
131
  </component>
108
132
  <component name="DatabaseView">
109
133
  <option name="SHOW_INTERMEDIATE" value="true" />
@@ -265,7 +289,8 @@
265
289
  <workItem from="1586375367798" duration="1255000" />
266
290
  <workItem from="1586805410851" duration="1000" />
267
291
  <workItem from="1586868433956" duration="4796000" />
268
- <workItem from="1587507385127" duration="3193000" />
292
+ <workItem from="1587507385127" duration="3951000" />
293
+ <workItem from="1590429303566" duration="8728000" />
269
294
  </task>
270
295
  <task id="LOCAL-00001" summary="Initialized Repository&#10;&#10;Remote branch attached.">
271
296
  <created>1584140524976</created>
@@ -400,10 +425,31 @@
400
425
  <option name="project" value="LOCAL" />
401
426
  <updated>1587510123063</updated>
402
427
  </task>
403
- <option name="localTasksCounter" value="20" />
428
+ <task id="LOCAL-00020" summary="Setup Complete&#10;&#10;Updated version.rb documentation. Bumped Major Version. Edited Gem Specification email and homepage. Rewrote README.md.">
429
+ <created>1590429974984</created>
430
+ <option name="number" value="00020" />
431
+ <option name="presentableId" value="LOCAL-00020" />
432
+ <option name="project" value="LOCAL" />
433
+ <updated>1590429974985</updated>
434
+ </task>
435
+ <task id="LOCAL-00021" summary="Development Complete&#10;&#10;Updated source documentation. Added 'clone_df()', 'exists(n = nil)', protected 'size=(i = nil)', 'increment_s()', 'decrement_s()', 'attach(n1 = nil, n2 = nil)', and 'detach(n1 = nil, n2 = nil)'. 'empty?()' became 'empty()'. '==(inst = nil)' became '==(object = nil)'. 'insert(node1 = nil, node2 = nil)' became 'insert(n1 = nil, n2 = nil)'. Deleted '===(inst = nil)', 'iterator()', 'LinkedListInt.attach(n1 = nil, n2 = nil)', and 'detach(n1 = nil, n2 = nil)'. Added test coverage.">
436
+ <created>1590442470760</created>
437
+ <option name="number" value="00021" />
438
+ <option name="presentableId" value="LOCAL-00021" />
439
+ <option name="project" value="LOCAL" />
440
+ <updated>1590442470760</updated>
441
+ </task>
442
+ <task id="LOCAL-00022" summary="Prepare Deployment&#10;&#10;Updated Changelog.md.">
443
+ <created>1590443440836</created>
444
+ <option name="number" value="00022" />
445
+ <option name="presentableId" value="LOCAL-00022" />
446
+ <option name="project" value="LOCAL" />
447
+ <updated>1590443440836</updated>
448
+ </task>
449
+ <option name="localTasksCounter" value="23" />
404
450
  <servers>
405
451
  <YouTrack url="https://macbook-pro.local:8443">
406
- <option name="defaultSearch" value="project: LinkedList Subsystem:{ No Subsystem } Component:{interface } Sprints: 4 #{Prepare Deployment} " />
452
+ <option name="defaultSearch" value="project: LinkedList Subsystem:{ No Subsystem } Component:{interface } Sprints: 10 State:{Prepare Deployment}" />
407
453
  <option name="shouldFormatCommitMessage" value="true" />
408
454
  <username>admin</username>
409
455
  </YouTrack>
@@ -437,9 +483,10 @@
437
483
  <MESSAGE value="Prepare Deployment&#10;&#10;Minor edits." />
438
484
  <MESSAGE value="Setup Complete&#10;&#10;Bumped Major Version. Edited dependency versioning." />
439
485
  <MESSAGE value="Development Complete&#10;&#10;Added 'shallow_clone()', 'self.attach(n1 = nil, n2 = nil)', and 'self.detach(n1 = nil, n2 = nil)'. Edited 'base()' privacy. Removed 'at(position = nil)', '[]', and '[]=' methods. Added tests covering additions, removals, and editions. Deleted Travis CI deployment settings." />
486
+ <MESSAGE value="Setup Complete&#10;&#10;Updated version.rb documentation. Bumped Major Version. Edited Gem Specification email and homepage. Rewrote README.md." />
487
+ <MESSAGE value="Development Complete&#10;&#10;Updated source documentation. Added 'clone_df()', 'exists(n = nil)', protected 'size=(i = nil)', 'increment_s()', 'decrement_s()', 'attach(n1 = nil, n2 = nil)', and 'detach(n1 = nil, n2 = nil)'. 'empty?()' became 'empty()'. '==(inst = nil)' became '==(object = nil)'. 'insert(node1 = nil, node2 = nil)' became 'insert(n1 = nil, n2 = nil)'. Deleted '===(inst = nil)', 'iterator()', 'LinkedListInt.attach(n1 = nil, n2 = nil)', and 'detach(n1 = nil, n2 = nil)'. Added test coverage." />
440
488
  <MESSAGE value="Prepare Deployment&#10;&#10;Updated Changelog.md." />
441
489
  <option name="LAST_COMMIT_MESSAGE" value="Prepare Deployment&#10;&#10;Updated Changelog.md." />
442
- <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
443
490
  </component>
444
491
  <component name="WindowStateProjectService">
445
492
  <state x="64" y="144" key="#Live_Templates" timestamp="1584194249474">
@@ -462,38 +509,38 @@
462
509
  <screen x="0" y="23" width="1680" height="975" />
463
510
  </state>
464
511
  <state x="565" y="274" key="#com.intellij.tools.ToolEditorDialog/0.23.1680.975@0.23.1680.975" timestamp="1586042473744" />
465
- <state x="0" y="112" width="1665" height="831" key="CommitChangelistDialog2" timestamp="1587510206027">
512
+ <state x="59" y="48" width="1555" height="908" key="CommitChangelistDialog2" timestamp="1590443440570">
466
513
  <screen x="0" y="23" width="1680" height="975" />
467
514
  </state>
468
- <state x="0" y="112" width="1665" height="831" key="CommitChangelistDialog2/0.23.1680.975@0.23.1680.975" timestamp="1587510206027" />
515
+ <state x="59" y="48" width="1555" height="908" key="CommitChangelistDialog2/0.23.1680.975@0.23.1680.975" timestamp="1590443440570" />
469
516
  <state x="43" y="434" key="GitRewordDialog" timestamp="1587510163496">
470
517
  <screen x="0" y="23" width="1680" height="975" />
471
518
  </state>
472
519
  <state x="43" y="434" key="GitRewordDialog/0.23.1680.975@0.23.1680.975" timestamp="1587510163496" />
473
- <state width="1557" height="271" key="GridCell.Tab.0.bottom" timestamp="1587509342757">
520
+ <state width="1557" height="271" key="GridCell.Tab.0.bottom" timestamp="1590441208926">
474
521
  <screen x="0" y="23" width="1680" height="975" />
475
522
  </state>
476
- <state width="1557" height="271" key="GridCell.Tab.0.bottom/0.23.1680.975@0.23.1680.975" timestamp="1587509342757" />
477
- <state width="1557" height="271" key="GridCell.Tab.0.center" timestamp="1587509342750">
523
+ <state width="1557" height="271" key="GridCell.Tab.0.bottom/0.23.1680.975@0.23.1680.975" timestamp="1590441208926" />
524
+ <state width="1557" height="271" key="GridCell.Tab.0.center" timestamp="1590441208926">
478
525
  <screen x="0" y="23" width="1680" height="975" />
479
526
  </state>
480
- <state width="1557" height="271" key="GridCell.Tab.0.center/0.23.1680.975@0.23.1680.975" timestamp="1587509342750" />
481
- <state width="1557" height="271" key="GridCell.Tab.0.left" timestamp="1587509342749">
527
+ <state width="1557" height="271" key="GridCell.Tab.0.center/0.23.1680.975@0.23.1680.975" timestamp="1590441208926" />
528
+ <state width="1557" height="271" key="GridCell.Tab.0.left" timestamp="1590441208925">
482
529
  <screen x="0" y="23" width="1680" height="975" />
483
530
  </state>
484
- <state width="1557" height="271" key="GridCell.Tab.0.left/0.23.1680.975@0.23.1680.975" timestamp="1587509342749" />
485
- <state width="1557" height="271" key="GridCell.Tab.0.right" timestamp="1587509342750">
531
+ <state width="1557" height="271" key="GridCell.Tab.0.left/0.23.1680.975@0.23.1680.975" timestamp="1590441208925" />
532
+ <state width="1557" height="271" key="GridCell.Tab.0.right" timestamp="1590441208926">
486
533
  <screen x="0" y="23" width="1680" height="975" />
487
534
  </state>
488
- <state width="1557" height="271" key="GridCell.Tab.0.right/0.23.1680.975@0.23.1680.975" timestamp="1587509342750" />
535
+ <state width="1557" height="271" key="GridCell.Tab.0.right/0.23.1680.975@0.23.1680.975" timestamp="1590441208926" />
489
536
  <state x="345" y="149" key="SettingsEditor" timestamp="1587507728480">
490
537
  <screen x="0" y="23" width="1680" height="975" />
491
538
  </state>
492
539
  <state x="345" y="149" key="SettingsEditor/0.23.1680.975@0.23.1680.975" timestamp="1587507728480" />
493
- <state x="436" y="250" key="Vcs.Push.Dialog.v2" timestamp="1587510210933">
540
+ <state x="436" y="250" key="Vcs.Push.Dialog.v2" timestamp="1590446391518">
494
541
  <screen x="0" y="23" width="1680" height="975" />
495
542
  </state>
496
- <state x="436" y="250" key="Vcs.Push.Dialog.v2/0.23.1680.975@0.23.1680.975" timestamp="1587510210933" />
543
+ <state x="436" y="250" key="Vcs.Push.Dialog.v2/0.23.1680.975@0.23.1680.975" timestamp="1590446391518" />
497
544
  <state x="428" y="235" width="816" height="550" key="find.popup" timestamp="1586038679041">
498
545
  <screen x="0" y="23" width="1680" height="975" />
499
546
  </state>
@@ -502,13 +549,13 @@
502
549
  <screen x="0" y="23" width="1680" height="975" />
503
550
  </state>
504
551
  <state x="501" y="235" width="670" height="675" key="run.anything.popup/0.23.1680.975@0.23.1680.975" timestamp="1584216828363" />
505
- <state x="501" y="237" width="670" height="676" key="search.everywhere.popup" timestamp="1587509815115">
552
+ <state x="501" y="237" width="670" height="676" key="search.everywhere.popup" timestamp="1590443145388">
506
553
  <screen x="0" y="23" width="1680" height="975" />
507
554
  </state>
508
- <state x="501" y="237" width="670" height="676" key="search.everywhere.popup/0.23.1680.975@0.23.1680.975" timestamp="1587509815115" />
555
+ <state x="501" y="237" width="670" height="676" key="search.everywhere.popup/0.23.1680.975@0.23.1680.975" timestamp="1590443145388" />
509
556
  </component>
510
557
  <component name="com.intellij.coverage.CoverageDataManagerImpl">
511
- <SUITE FILE_PATH="coverage/linked_list_int@LinkedListIntTest.rcov" NAME="LinkedListIntTest Coverage Results" MODIFIED="1587509337455" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="linked_list_int" />
558
+ <SUITE FILE_PATH="coverage/linked_list_int@LinkedListIntTest.rcov" NAME="LinkedListIntTest Coverage Results" MODIFIED="1590441203454" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="linked_list_int" />
512
559
  <SUITE FILE_PATH="coverage/linked_list_int@test_methods_dec.rcov" NAME="test_methods_dec Coverage Results" MODIFIED="1586039564171" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="linked_list_int" />
513
560
  </component>
514
561
  </project>
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.0.0, 2020-05-25
4
+
5
+ ### Added
6
+
7
+ - 'clone_df()', 'exists(n = nil)', protected 'size=(i = nil)', 'increment_s()',
8
+ 'decrement_s()', 'attach(n1 = nil, n2 = nil)', and 'detach(n1 = nil, n2 = nil)'.
9
+ - Test coverage.
10
+
11
+ ### Edited
12
+
13
+ - Updated source documentation.
14
+ - Edited Gem Specification email and homepage.
15
+ - Rewrote README.md.
16
+ - 'empty?()' became 'empty()'; '==(inst = nil)' became '==(object = nil)';
17
+ 'insert(node1 = nil, node2 = nil)' became 'insert(n1 = nil, n2 = nil)'.
18
+ - Deleted '===(inst = nil)', 'iterator()',
19
+ 'LinkedListInt.attach(n1 = nil, n2 = nil)', and 'LinkedListInt.detach(n1
20
+ = nil, n2 = nil)'.
21
+
22
+ ### Fixed
23
+
3
24
  ## v2.0.0, 2020-04-21
4
25
 
5
26
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- linked_list_int (2.0.0)
4
+ linked_list_int (3.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # linked_list_int [![Gem Version](https://badge.fury.io/rb/linked_list_int.svg)](https://badge.fury.io/rb/linked_list_int) ![Gem](https://img.shields.io/gem/dt/linked_list_int) [![Build Status](https://travis-ci.com/Diligent-Software-LLC/linked_list_int.svg?branch=master)](https://travis-ci.com/Diligent-Software-LLC/linked_list_int)
2
2
 
3
- A LinkedList data structure interface.
3
+ A LinkedList data structure library's interface.
4
4
 
5
5
  ## Installation
6
6
 
7
- - Refer the [Packages](https://docs.diligentsoftware.org/linkedlist-1/packages)
8
- page's installation section.
7
+ - Refer Interface's
8
+ [Packages](https://docs.diligentsoftware.org/linkedlist-1/packages#interface).
9
9
 
10
10
  ## Documentation
11
11
 
12
- - Refer the
13
- [Interface](https://docs.diligentsoftware.org/linkedlist-1/interface) homepage.
12
+ - Refer Interface's
13
+ [Homepage](https://docs.diligentsoftware.org/linkedlist-1/interface).
14
14
 
15
15
  ## Contributing
16
16
 
@@ -7,18 +7,18 @@ require_relative "linked_list_int/version"
7
7
  # @abstract
8
8
  # @class_description
9
9
  # A LinkedList data structure interface.
10
- # @attr base [Node]
11
- # A node reference. The list's base.
10
+ # @attr base [NodeAdapter]
11
+ # The list's base.
12
12
  # @attr size [Integer]
13
- # The list's node quantity.
13
+ # The list's element quantity.
14
14
  class LinkedListInt
15
15
 
16
16
  # initialize(d_or_n = nil).
17
17
  # @description
18
18
  # Initializes a list instance.
19
- # @param d_or_n [DataType, Node]
19
+ # @param d_or_n [DataType, Node, NodeAdapter]
20
20
  # A {https://docs.diligentsoftware.org/data#data-types DataType} type
21
- # instance or a Node instance.
21
+ # instance, Node, or NodeAdapter instance.
22
22
  # @return [LinkedList]
23
23
  # A LinkedList instance.
24
24
  def initialize(d_or_n = nil)
@@ -32,129 +32,154 @@ class LinkedListInt
32
32
  def shallow_clone()
33
33
  end
34
34
 
35
+ # clone_df().
36
+ # @description
37
+ # Deeply clones.
38
+ # @return [LinkedList]
39
+ # A deep clone. No Node references are identical. The data references are
40
+ # identical.
41
+ def clone_df()
42
+ end
43
+
35
44
  # size().
36
45
  # @description
37
- # Gets the list size.
46
+ # Gets the list's size.
38
47
  # @return [Integer]
39
- # The node quantity.
48
+ # The element quantity.
40
49
  def size()
41
50
  end
42
51
 
43
- # empty?().
52
+ # exists(n = nil).
44
53
  # @description
45
- # Boolean method.
54
+ # Predicate. Verifies an object is a list element.
55
+ # @param n [.]
56
+ # Any object.
46
57
  # @return [TrueClass, FalseClass]
47
- # True in the case the size is zero. False otherwise.
48
- def empty?()
58
+ # True in the case 'n' is a list element. False otherwise.
59
+ def exists(n = nil)
49
60
  end
50
61
 
51
- # ==(inst = nil).
62
+ # empty().
52
63
  # @description
53
- # Equality operator.
54
- # @param inst [.]
55
- # A comparison instance.
64
+ # Predicate. Verifies size is 0.
56
65
  # @return [TrueClass, FalseClass]
57
- # True in the case the instances' attributes are equal. False otherwise.
58
- def ==(inst = nil)
66
+ # True in the case the size is zero. False otherwise.
67
+ def empty()
59
68
  end
60
69
 
61
- # ===(inst = nil).
70
+ # ==(object = nil).
62
71
  # @description
63
- # Identity comparison operator.
64
- # @param inst [.]
65
- # A comparison instance.
72
+ # Equality operator.
73
+ # @param object [.]
74
+ # Any object. A comparison.
66
75
  # @return [TrueClass, FalseClass]
67
- # True in the case the instances are identical.
68
- def ===(inst = nil)
76
+ # True in the case the lhs and rhs' attribute references are identical.
77
+ # False otherwise.
78
+ def ==(object = nil)
69
79
  end
70
80
 
71
81
  # remove(n = nil).
72
82
  # @description
73
- # Removes the list's Node n. In the case n is not in the list, removes
74
- # nothing.
75
- # @param n [Node]
76
- # The removal Node.
83
+ # Removes the list's NodeAdapter 'n'.
84
+ # @param n [NodeAdapter]
85
+ # A list Node. The removal.
77
86
  # @return [NilClass]
78
87
  # nil.
88
+ # @raise [ArgumentError]
89
+ # In the case the argument was not found in the list.
79
90
  def remove(n = nil)
80
91
  end
81
92
 
82
- # insert(node1 = nil, node2 = nil).
93
+ # insert(n1 = nil, n2 = nil).
83
94
  # @description
84
95
  # Inserts a Node after a specific Node.
85
- # @param node1 [Node]
86
- # The insertion.
87
- # @param node2 [Node]
88
- # The specified precession.
96
+ # @param n1 [Node, NodeAdapter]
97
+ # A consequent. The insertion.
98
+ # @param n2 [NodeAdapter]
99
+ # A precession. An existing list Node.
89
100
  # @return [NilClass]
90
101
  # nil.
91
- def insert(node1 = nil, node2 = nil)
92
- end
93
-
94
- # iterator().
95
- # @description
96
- # Instantiates a LinkedListIterator. The iterator's node attribute refers
97
- # self's base.
98
- # @return [LinkedListIterator]
99
- # An iterator instance.
100
- def iterator()
102
+ def insert(n1 = nil, n2 = nil)
101
103
  end
102
104
 
103
- # self.attach(n1 = nil, n2 = nil).
104
- # @description
105
- # Attaches two Nodes.
106
- # @param n1 [Node]
107
- # The precession Node. Sets the front attribute the second Node's reference.
108
- # @param n2 [Node]
109
- # The consequential Node. Sets the back attribute the preceding Node.
110
- # @return [NilClass]
111
- # nil.
112
- def self.attach(n1 = nil, n2 = nil)
113
- end
114
-
115
- # self.detach(n1 = nil, n2 = nil).
116
- # @description
117
- # Detaches two Nodes.
118
- # @param n1 [Node]
119
- # The precession. Sets front nil.
120
- # @param n2 [Node]
121
- # The consequent. Sets back nil.
122
- # @return [NilClass]
123
- # nil.
124
- def self.detach(n1 = nil, n2 = nil)
125
- end
126
-
127
- private_class_method :attach, :detach
128
-
129
105
  protected
130
106
 
131
107
  # base().
132
108
  # @description
133
- # Gets the base node's reference.
134
- # @return [Node]
135
- # The base node.
109
+ # Gets base's reference.
110
+ # @return [NodeAdapter]
111
+ # 'base'.
136
112
  def base()
137
113
  end
138
114
 
115
+ # size=(i = nil).
116
+ # @description
117
+ # Sets 'size'.
118
+ # @param i [Integer]
119
+ # An integer list size.
120
+ # @return [Integer]
121
+ # The argument.
122
+ def size=(i = nil)
123
+ end
124
+
139
125
  private
140
126
 
141
127
  # initialize_node(dti = nil).
142
128
  # @description
143
- # Initializes a Node instance.
129
+ # Initializes a NodeAdapter instance.
144
130
  # @param dti [DataType]
145
- # The Node's data setting.
146
- # @return [Node]
147
- # The Node instance.
131
+ # The NodeAdapter's data setting.
132
+ # @return [NodeAdapter]
133
+ # The NodeAdapter instance.
148
134
  def initialize_node(dti = nil)
149
135
  end
150
136
 
151
-
152
137
  # base=(n = nil).
153
138
  # @description
154
- # Sets the base node.
155
- # @param n [Node]
156
- # The n becoming the list's base.
139
+ # Sets 'base'.
140
+ # @param n [NodeAdapter]
141
+ # The instance becoming 'base'.
157
142
  def base=(n = nil)
158
143
  end
159
144
 
145
+ # increment_s().
146
+ # @description
147
+ # Increment operator. Increments size.
148
+ # @return [Integer]
149
+ # The list's size plus one.
150
+ def increment_s()
151
+ end
152
+
153
+ # decrement_s().
154
+ # @description
155
+ # Decrement operator. Decrements size.
156
+ # @return [Integer]
157
+ # The list's size less one.
158
+ def decrement_s()
159
+ end
160
+
161
+ # attach(n1 = nil, n2 = nil).
162
+ # @description
163
+ # Attaches two NodeAdapters.
164
+ # @param n1 [NodeAdapter]
165
+ # A precession.
166
+ # @param n2 [NodeAdapter]
167
+ # A consequent.
168
+ # @return [NilClass]
169
+ # nil.
170
+ def attach(n1 = nil, n2 = nil)
171
+ end
172
+
173
+ # detach(n1 = nil, n2 = nil).
174
+ # @description
175
+ # Detaches two linked NodeAdapters.
176
+ # @param n1 [NodeAdapter]
177
+ # A precession.
178
+ # @param n2 [NodeAdapter]
179
+ # A consequent.
180
+ # @return [NilClass]
181
+ # nil.
182
+ def detach(n1 = nil, n2 = nil)
183
+ end
184
+
160
185
  end
@@ -5,10 +5,10 @@
5
5
  # @abstract
6
6
  # @class_description
7
7
  # A LinkedList data structure interface.
8
- # @attr base [Node]
9
- # A node reference. The list's base.
8
+ # @attr base [NodeAdapter]
9
+ # The list's base.
10
10
  # @attr size [Integer]
11
- # The list's node quantity.
11
+ # The list's element quantity.
12
12
  class LinkedListInt
13
- VERSION = '2.0.0'.freeze()
13
+ VERSION = '3.0.0'.freeze()
14
14
  end
@@ -6,14 +6,15 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "linked_list_int"
7
7
  spec.version = LinkedListInt::VERSION
8
8
  spec.authors = ["Diligent Software LLC"]
9
- spec.email = ["diligentsoftwarellc@gmail.com"]
9
+ spec.email = ["contact@diligentsoftware.org"]
10
10
  spec.summary = %q{A LinkedList data structure interface.}
11
11
  spec.description = %q{A LnkedList data structure interface.
12
12
  Donations support continuous improvement and maintenance. The aim is a reliable,
13
13
  integrable, and endurable LinkedList library. Make a donation at the project's
14
14
  collective page: https://opencollective.com/linkedlist. One-time and recurring
15
15
  donations are available at $1, $2, $4, $8, and $16. Greatly appreciated.}
16
- spec.homepage = "https://docs.diligentsoftware.org/linkedlist"
16
+ spec.homepage =
17
+ "https://docs.diligentsoftware.org/linkedlist-1/interface"
17
18
  spec.license = "GPL-3.0"
18
19
  spec.required_ruby_version = Gem::Requirement.new(">= 2.6.5")
19
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linked_list_int
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diligent Software LLC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -45,7 +45,7 @@ description: |-
45
45
  collective page: https://opencollective.com/linkedlist. One-time and recurring
46
46
  donations are available at $1, $2, $4, $8, and $16. Greatly appreciated.
47
47
  email:
48
- - diligentsoftwarellc@gmail.com
48
+ - contact@diligentsoftware.org
49
49
  executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
@@ -71,11 +71,11 @@ files:
71
71
  - lib/linked_list_int.rb
72
72
  - lib/linked_list_int/version.rb
73
73
  - linked_list_int.gemspec
74
- homepage: https://docs.diligentsoftware.org/linkedlist
74
+ homepage: https://docs.diligentsoftware.org/linkedlist-1/interface
75
75
  licenses:
76
76
  - GPL-3.0
77
77
  metadata:
78
- homepage_uri: https://docs.diligentsoftware.org/linkedlist
78
+ homepage_uri: https://docs.diligentsoftware.org/linkedlist-1/interface
79
79
  source_code_uri: https://github.com/Diligent-Software-LLC/linked_list_int
80
80
  changelog_uri: https://docs.diligentsoftware.org/linkedlist-1/packages#interface_changelog
81
81
  post_install_message: