monkey 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +19 -0
- data/README.rdoc +1 -1
- data/Rakefile +7 -6
- data/VERSION +1 -1
- data/lib/monkey.rb +1 -1
- metadata +6 -5
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2010 Stephen Karl Touset
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -6,14 +6,15 @@ require 'rake/version_task'
|
|
6
6
|
require 'spec/rake/spectask'
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
|
-
s.name
|
10
|
-
s.version
|
11
|
-
s.summary
|
9
|
+
s.name = 'monkey'
|
10
|
+
s.version = Version.current
|
11
|
+
s.summary = 'A smart, scoped monkeypatching library'
|
12
|
+
s.homepage = 'http://github.com/stouset/monkey-patches'
|
12
13
|
|
13
|
-
s.author
|
14
|
-
s.email
|
14
|
+
s.author = 'Stephen Touset'
|
15
|
+
s.email = 'stephen@touset.org'
|
15
16
|
|
16
|
-
s.files
|
17
|
+
s.files = Dir['[A-Z]*', 'lib/**/*.rb', 'spec/**/*']
|
17
18
|
|
18
19
|
s.extra_rdoc_files = Dir['*.rdoc']
|
19
20
|
s.rdoc_options = %w{ --main README.rdoc }
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/lib/monkey.rb
CHANGED
@@ -46,7 +46,7 @@ module Monkey
|
|
46
46
|
def self.patch(object, *methods, &scope)
|
47
47
|
# if the object is a class or metaclass, monkeypatch the class, otherwise
|
48
48
|
# monkeypatch the metaclass of the object
|
49
|
-
if object.kind_of?(Class)
|
49
|
+
if object.kind_of?(Class) || object == Kernel
|
50
50
|
_patch(object, object, *methods, &scope)
|
51
51
|
else
|
52
52
|
metaclass = (class << object; self; end)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monkey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stephen Touset
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-14 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -55,6 +55,7 @@ extensions: []
|
|
55
55
|
extra_rdoc_files:
|
56
56
|
- README.rdoc
|
57
57
|
files:
|
58
|
+
- LICENSE
|
58
59
|
- Rakefile
|
59
60
|
- README.rdoc
|
60
61
|
- VERSION
|
@@ -63,7 +64,7 @@ files:
|
|
63
64
|
- lib/monkey/ext/modexcl/rbxmodexcl.rb
|
64
65
|
- lib/monkey.rb
|
65
66
|
has_rdoc: true
|
66
|
-
homepage:
|
67
|
+
homepage: http://github.com/stouset/monkey-patches
|
67
68
|
licenses: []
|
68
69
|
|
69
70
|
post_install_message:
|