double_linked_list 0.3.3 → 0.3.4

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: 8d8f19356d5b9cfcfa6b8ee5679d0b9d9b2dd13d
4
- data.tar.gz: a8aa6e8099e5fa3e61ea5a5eead23fcc8d02a0be
3
+ metadata.gz: 3bdfc14854f4df72e92027559ad64d69da90b6b9
4
+ data.tar.gz: 433d10e44999deefbed66cc7e29f967592b1dfbb
5
5
  SHA512:
6
- metadata.gz: f62043ec094e1b607ee32547b9f68c16a5af5ac7709aead07c16a190a93f6d901c356c960603f2d586b16f618a7d2398661da66390f74dcc18f7c28dcdd39bdf
7
- data.tar.gz: dd2b8c895ba6204f332f8b46dad6943800068874da911f9478400e6739ab09d67fe63fd46189c122739fc6976d78f627c65cee6fa0b21a812c5e6ccf15758350
6
+ metadata.gz: b8665bb1487c8e219f4d52d402646345ce065b33849afae5aa767c33ea4f86656b9e852ff47a79a218de3817d828e1d84f71a19c08af89340f4b7babd3db3080
7
+ data.tar.gz: 9519fa4e8e2cbc8137fcd096ac580738d6510d957eb5a00c395b9157b78d073e03b4c5a02ae9765159abb10fa834dd5502b976045bc283fc5f653801c8ed0482
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Artur Pañach
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = %q{The missing Ruby Double Linked List}
13
13
  spec.description = %q{The missing Ruby Double Linked List.}
14
14
  spec.homepage = "https://github.com/arturictus/double_linked_list"
15
+ spec.license = "MIT"
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
18
  spec.bindir = "exe"
@@ -1,3 +1,3 @@
1
1
  class DoubleLinkedList
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -16,6 +16,10 @@ class DoubleLinkedList
16
16
  :reverse_each,
17
17
  ] => :last
18
18
 
19
+ delegate [
20
+ :[]
21
+ ] => :to_a
22
+
19
23
  def initialize(datum)
20
24
  @head = (datum.is_a?(Element) ? datum : Element.new(datum))
21
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: double_linked_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Pañach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-01 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,6 +77,7 @@ files:
77
77
  - ".rspec"
78
78
  - ".travis.yml"
79
79
  - Gemfile
80
+ - LICENSE.txt
80
81
  - README.md
81
82
  - Rakefile
82
83
  - bin/console
@@ -87,7 +88,8 @@ files:
87
88
  - lib/double_linked_list/sequence.rb
88
89
  - lib/double_linked_list/version.rb
89
90
  homepage: https://github.com/arturictus/double_linked_list
90
- licenses: []
91
+ licenses:
92
+ - MIT
91
93
  metadata: {}
92
94
  post_install_message:
93
95
  rdoc_options: []