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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd01a06702ae377d5190ddda0b1fc080f713cbdb
4
- data.tar.gz: dfd144070ace491c819c55047734cb91058a2348
3
+ metadata.gz: 7d7076f1fe66bdbee71d9f8ab23203733c7f302d
4
+ data.tar.gz: 8994066abb5e143f78a14f84e1a1aabe0ecaa0bd
5
5
  SHA512:
6
- metadata.gz: ab08e7e1cde305e1dab14aca6f6b700f1407e02755ea7fe575828017f5fbd56a4e71276a9370ae4d66cf40b6cb5ff5f3978141acd3fb4ddb12f2e3ba23654411
7
- data.tar.gz: f1a841166ebe687f5a25103cb4d8a873dee728eb2dab6734242b2810bc11233e6edf5ec5ae7e76211ecfd78b3aaec766fe87730f52efd2c82f6861087cfbfc26
6
+ metadata.gz: dab92466e5d1affe6b07a8f1a2e0dd7494b1d2e9e2ccfd98b076fe277db743111f86e827fac62633693e0e091c9445ab864e774c2015dcabb4c7d29d09ba7c83
7
+ data.tar.gz: 22cdf33047c74811c85d3730a204d8a3f42dd660803ee4196204679213fb5d01ac839ea5c1c553b1862df759ba4abca3de2b8673784974cb06b073277a69f491
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Cornell University
1
+ Copyright (c) 2015 Cornell University
2
2
 
3
3
  ##########################################################################
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.4'
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
@@ -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
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-19 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry