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.
Files changed (2) hide show
  1. data/lib/monkey-patch/array.rb +14 -7
  2. metadata +2 -2
@@ -1,8 +1,11 @@
1
- # Copyright (c) 2013, Christopher Mark Gore,
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
- # 8729 Lower Marine Road, Saint Jacob, Illinois 62281 USA.
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
- # notice, this list of conditions and the following disclaimer.
16
+ # notice, this list of conditions and the following disclaimer.
14
17
  #
15
18
  # * Redistributions in binary form must reproduce the above copyright
16
- # notice, this list of conditions and the following disclaimer in the
17
- # documentation and/or other materials provided with the distribution.
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
- # contributors may be used to endorse or promote products derived from
21
- # this software without specific prior written permission.
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.9
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-06-26 00:00:00.000000000 Z
12
+ date: 2013-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport