monkey-patch 0.0.12 → 0.0.13

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/string.rb +14 -7
  2. metadata +1 -1
@@ -1,8 +1,11 @@
1
- # Copyright (c) 2013, Christopher Mark Gore,
1
+ # -*- coding: undecided -*-
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
@@ -44,6 +47,10 @@ class String
44
47
  .downcase
45
48
  end
46
49
 
50
+ def rest
51
+ self[1..-1]
52
+ end
53
+
47
54
  def valid_json?
48
55
  JSON.parse self
49
56
  return true
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.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: