niessner-not_method 0.0.1
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.
- data/Manifest.txt +5 -0
- data/init.rb +1 -0
- data/lib/jay_fields_not_method.rb +17 -0
- data/not_method.gemspec +13 -0
- data/rails/init.rb +1 -0
- metadata +57 -0
data/Manifest.txt
ADDED
data/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'jay_fields_not_method'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Object
|
2
|
+
define_method :not do
|
3
|
+
Not.new(self)
|
4
|
+
end
|
5
|
+
|
6
|
+
class Not
|
7
|
+
private *instance_methods.select { |m| m !~ /(^__|^\W|^binding$)/ }
|
8
|
+
|
9
|
+
def initialize(subject)
|
10
|
+
@subject = subject
|
11
|
+
end
|
12
|
+
|
13
|
+
def method_missing(sym, *args, &blk)
|
14
|
+
!@subject.send(sym,*args,&blk)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/not_method.gemspec
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "not_method"
|
3
|
+
s.version = "0.0.1"
|
4
|
+
s.date = "2008-10-28"
|
5
|
+
s.author = "Michael Niessner"
|
6
|
+
s.email = "michael@niessner.us"
|
7
|
+
s.summary = "Jay Fields not method."
|
8
|
+
s.files = ["Manifest.txt",
|
9
|
+
"init.rb",
|
10
|
+
"not_method.gemspec",
|
11
|
+
"lib/jay_fields_not_method.rb",
|
12
|
+
"rails/init.rb"]
|
13
|
+
end
|
data/rails/init.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__),'../init.rb')
|
metadata
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: niessner-not_method
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Niessner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-10-28 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: michael@niessner.us
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
24
|
+
files:
|
25
|
+
- Manifest.txt
|
26
|
+
- init.rb
|
27
|
+
- not_method.gemspec
|
28
|
+
- lib/jay_fields_not_method.rb
|
29
|
+
- rails/init.rb
|
30
|
+
has_rdoc: false
|
31
|
+
homepage:
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
|
35
|
+
require_paths:
|
36
|
+
- lib
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "0"
|
42
|
+
version:
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
requirements: []
|
50
|
+
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.2.0
|
53
|
+
signing_key:
|
54
|
+
specification_version: 2
|
55
|
+
summary: Jay Fields not method.
|
56
|
+
test_files: []
|
57
|
+
|