holywarez-mpt 0.1.3.14 → 0.1.3.15
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/CHANGELOG +1 -0
- data/Manifest +4 -4
- data/lib/system.rb +19 -0
- data/mpt.gemspec +4 -4
- metadata +8 -8
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
CHANGELOG
|
|
2
|
+
LICENSE
|
|
3
|
+
Manifest
|
|
4
|
+
README
|
|
5
|
+
Rakefile
|
|
2
6
|
examples/call_experiment.rb
|
|
3
7
|
examples/declarations.rb
|
|
4
8
|
examples/instance_eval_with_args.rb
|
|
@@ -11,9 +15,5 @@ lib/event.rb
|
|
|
11
15
|
lib/mpt.rb
|
|
12
16
|
lib/system.rb
|
|
13
17
|
lib/wrap.rb
|
|
14
|
-
LICENSE
|
|
15
|
-
Manifest
|
|
16
18
|
mpt.gemspec
|
|
17
|
-
Rakefile
|
|
18
|
-
README
|
|
19
19
|
run_examples.bat
|
data/lib/system.rb
CHANGED
|
@@ -25,3 +25,22 @@ class Class
|
|
|
25
25
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
+
|
|
29
|
+
module MPT
|
|
30
|
+
class Security
|
|
31
|
+
LOW_SECURITY = 1
|
|
32
|
+
MEDIUM_SECURITY = 2
|
|
33
|
+
HIGH_SECURITY = 3
|
|
34
|
+
PARANOIC_SECURITY = 4
|
|
35
|
+
|
|
36
|
+
def self.sandbox(level, code = '', &block)
|
|
37
|
+
Thread.new(level, code, block) do |safe_level, eval_code, eval_block|
|
|
38
|
+
$SAFE = safe_level
|
|
39
|
+
eval( eval_code ) unless !eval_code.instance_of?(String) || eval_code.size < 0
|
|
40
|
+
yield unless eval_block.nil?
|
|
41
|
+
end.join
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
|
data/mpt.gemspec
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{mpt}
|
|
5
|
-
s.version = "0.1.3.
|
|
5
|
+
s.version = "0.1.3.15"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Anatoly Lapshin"]
|
|
9
|
-
s.date = %q{2009-08-
|
|
9
|
+
s.date = %q{2009-08-05}
|
|
10
10
|
s.description = %q{Monkey Patching Toolkit}
|
|
11
11
|
s.email = %q{}
|
|
12
|
-
s.extra_rdoc_files = ["CHANGELOG", "lib/event.rb", "lib/mpt.rb", "lib/system.rb", "lib/wrap.rb"
|
|
13
|
-
s.files = ["CHANGELOG", "examples/call_experiment.rb", "examples/declarations.rb", "examples/instance_eval_with_args.rb", "examples/ordered_subscribers.rb", "examples/run_experiments.rb", "examples/unordered_subscribers.rb", "examples/wrap_method_experiment.rb", "install_gem.bat", "lib/event.rb", "lib/mpt.rb", "lib/system.rb", "lib/wrap.rb", "
|
|
12
|
+
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/event.rb", "lib/mpt.rb", "lib/system.rb", "lib/wrap.rb"]
|
|
13
|
+
s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "examples/call_experiment.rb", "examples/declarations.rb", "examples/instance_eval_with_args.rb", "examples/ordered_subscribers.rb", "examples/run_experiments.rb", "examples/unordered_subscribers.rb", "examples/wrap_method_experiment.rb", "install_gem.bat", "lib/event.rb", "lib/mpt.rb", "lib/system.rb", "lib/wrap.rb", "mpt.gemspec", "run_examples.bat"]
|
|
14
14
|
s.has_rdoc = true
|
|
15
15
|
s.homepage = %q{}
|
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mpt", "--main", "README"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: holywarez-mpt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.3.
|
|
4
|
+
version: 0.1.3.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anatoly Lapshin
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-08-
|
|
12
|
+
date: 2009-08-05 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -40,14 +40,18 @@ extensions: []
|
|
|
40
40
|
|
|
41
41
|
extra_rdoc_files:
|
|
42
42
|
- CHANGELOG
|
|
43
|
+
- LICENSE
|
|
44
|
+
- README
|
|
43
45
|
- lib/event.rb
|
|
44
46
|
- lib/mpt.rb
|
|
45
47
|
- lib/system.rb
|
|
46
48
|
- lib/wrap.rb
|
|
47
|
-
- LICENSE
|
|
48
|
-
- README
|
|
49
49
|
files:
|
|
50
50
|
- CHANGELOG
|
|
51
|
+
- LICENSE
|
|
52
|
+
- Manifest
|
|
53
|
+
- README
|
|
54
|
+
- Rakefile
|
|
51
55
|
- examples/call_experiment.rb
|
|
52
56
|
- examples/declarations.rb
|
|
53
57
|
- examples/instance_eval_with_args.rb
|
|
@@ -60,11 +64,7 @@ files:
|
|
|
60
64
|
- lib/mpt.rb
|
|
61
65
|
- lib/system.rb
|
|
62
66
|
- lib/wrap.rb
|
|
63
|
-
- LICENSE
|
|
64
|
-
- Manifest
|
|
65
67
|
- mpt.gemspec
|
|
66
|
-
- Rakefile
|
|
67
|
-
- README
|
|
68
68
|
- run_examples.bat
|
|
69
69
|
has_rdoc: true
|
|
70
70
|
homepage: ""
|