proof 0.0.0
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/lib/proof/proof.rb +32 -0
- data/lib/proof/version.rb +3 -0
- data/lib/proof.rb +1 -0
- metadata +63 -0
data/lib/proof/proof.rb
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require 'mixology'
|
|
2
|
+
|
|
3
|
+
module Proof
|
|
4
|
+
def start
|
|
5
|
+
def_prove
|
|
6
|
+
if block_given?
|
|
7
|
+
yield
|
|
8
|
+
undef_prove
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
module_function :start
|
|
12
|
+
|
|
13
|
+
def def_prove
|
|
14
|
+
Object.class_eval do
|
|
15
|
+
def prove(&blk)
|
|
16
|
+
proof_module = self.class.const_get :Proof
|
|
17
|
+
mixin proof_module
|
|
18
|
+
proof = instance_eval &blk
|
|
19
|
+
unmix proof_module
|
|
20
|
+
proof
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
module_function :def_prove
|
|
25
|
+
|
|
26
|
+
def undef_prove
|
|
27
|
+
Object.class_eval do
|
|
28
|
+
undef :prove
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
module_function :undef_prove
|
|
32
|
+
end
|
data/lib/proof.rb
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'observance/observance'
|
metadata
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: proof
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- We made this
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2012-10-18 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: mixology
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
description:
|
|
31
|
+
email:
|
|
32
|
+
executables: []
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- lib/proof/proof.rb
|
|
37
|
+
- lib/proof/version.rb
|
|
38
|
+
- lib/proof.rb
|
|
39
|
+
homepage:
|
|
40
|
+
licenses: []
|
|
41
|
+
post_install_message:
|
|
42
|
+
rdoc_options: []
|
|
43
|
+
require_paths:
|
|
44
|
+
- lib
|
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
|
+
none: false
|
|
47
|
+
requirements:
|
|
48
|
+
- - ! '>='
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: 1.9.2
|
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
|
+
none: false
|
|
53
|
+
requirements:
|
|
54
|
+
- - ! '>='
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '0'
|
|
57
|
+
requirements: []
|
|
58
|
+
rubyforge_project:
|
|
59
|
+
rubygems_version: 1.8.24
|
|
60
|
+
signing_key:
|
|
61
|
+
specification_version: 3
|
|
62
|
+
summary: Proof Library
|
|
63
|
+
test_files: []
|