monkey-patch 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/monkey-patch/array.rb +14 -7
- metadata +2 -2
data/lib/monkey-patch/array.rb
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
#
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# -*- mode: Ruby -*-
|
3
|
+
|
4
|
+
# Copyright © 2013, Christopher Mark Gore,
|
2
5
|
# Soli Deo Gloria,
|
3
6
|
# All rights reserved.
|
4
7
|
#
|
5
|
-
#
|
8
|
+
# 2317 South River Road, Saint Charles, Missouri 63303 USA.
|
6
9
|
# Web: http://cgore.com
|
7
10
|
# Email: cgore@cgore.com
|
8
11
|
#
|
@@ -10,15 +13,15 @@
|
|
10
13
|
# modification, are permitted provided that the following conditions are met:
|
11
14
|
#
|
12
15
|
# * Redistributions of source code must retain the above copyright
|
13
|
-
#
|
16
|
+
# notice, this list of conditions and the following disclaimer.
|
14
17
|
#
|
15
18
|
# * Redistributions in binary form must reproduce the above copyright
|
16
|
-
#
|
17
|
-
#
|
19
|
+
# notice, this list of conditions and the following disclaimer in the
|
20
|
+
# documentation and/or other materials provided with the distribution.
|
18
21
|
#
|
19
22
|
# * Neither the name of Christopher Mark Gore nor the names of other
|
20
|
-
#
|
21
|
-
#
|
23
|
+
# contributors may be used to endorse or promote products derived from
|
24
|
+
# this software without specific prior written permission.
|
22
25
|
#
|
23
26
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
24
27
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
@@ -46,6 +49,10 @@ class Array
|
|
46
49
|
self.clone.pad_nil! depth
|
47
50
|
end
|
48
51
|
|
52
|
+
def rest
|
53
|
+
self[1..-1]
|
54
|
+
end
|
55
|
+
|
49
56
|
def wide_zip(other)
|
50
57
|
pad_nil(other.length).zip other
|
51
58
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monkey-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|