doubly_linked_list 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/doubly_linked_list.gemspec +1 -1
- data/lib/doubly_linked_list.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d7076f1fe66bdbee71d9f8ab23203733c7f302d
|
4
|
+
data.tar.gz: 8994066abb5e143f78a14f84e1a1aabe0ecaa0bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab92466e5d1affe6b07a8f1a2e0dd7494b1d2e9e2ccfd98b076fe277db743111f86e827fac62633693e0e091c9445ab864e774c2015dcabb4c7d29d09ba7c83
|
7
|
+
data.tar.gz: 22cdf33047c74811c85d3730a204d8a3f42dd660803ee4196204679213fb5d01ac839ea5c1c553b1862df759ba4abca3de2b8673784974cb06b073277a69f491
|
data/LICENSE.txt
CHANGED
data/doubly_linked_list.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'doubly_linked_list'
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.5'
|
8
8
|
spec.authors = ["E. Lynette Rayle"]
|
9
9
|
spec.email = ["elr37@cornell.edu"]
|
10
10
|
spec.platform = Gem::Platform::RUBY
|
data/lib/doubly_linked_list.rb
CHANGED
@@ -22,6 +22,7 @@ class DoublyLinkedList
|
|
22
22
|
def initialize(*args)
|
23
23
|
@list = []
|
24
24
|
@list = args[0][:items] if ! args.empty? && args[0].is_a?(Hash) && args[0].key?(:items)
|
25
|
+
raise ArgumentError, "items list must be an Array" unless @list.kind_of?(Array)
|
25
26
|
@list_info = nil
|
26
27
|
@list_info = args[0][:list_info] if ! args.empty? && args[0].is_a?(Hash) && args[0].key?(:list_info)
|
27
28
|
self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doubly_linked_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E. Lynette Rayle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|