protocol 0.8.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/Rakefile +75 -0
- data/VERSION +1 -0
- data/examples/comparing.rb +37 -0
- data/examples/enumerating.rb +47 -0
- data/examples/game.rb +81 -0
- data/examples/hello_world_patternitis.rb +77 -0
- data/examples/indexing.rb +27 -0
- data/examples/locking.rb +111 -0
- data/examples/queue.rb +154 -0
- data/examples/stack.rb +75 -0
- data/install.rb +18 -0
- data/lib/protocol.rb +1070 -0
- data/lib/protocol/core.rb +22 -0
- data/make_doc.rb +9 -0
- data/tests/test_protocol.rb +620 -0
- metadata +74 -0
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
4
|
+
name: protocol
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.8.0
|
7
|
+
date: 2007-11-28 00:00:00 +01:00
|
8
|
+
summary: Method Protocols for Ruby Classes
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: flori@ping.de
|
12
|
+
homepage: http://protocol.rubyforge.org
|
13
|
+
rubyforge_project: protocol
|
14
|
+
description: This library offers an implementation of protocols against which you can check the conformity of your classes or instances of your classes. They are a bit like Java Interfaces, but as mixin modules they can also contain already implemented methods. Additionaly you can define preconditions/postconditions for methods specified in a protocol.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Florian Frank
|
31
|
+
files:
|
32
|
+
- install.rb
|
33
|
+
- lib
|
34
|
+
- lib/protocol.rb
|
35
|
+
- lib/protocol
|
36
|
+
- lib/protocol/core.rb
|
37
|
+
- make_doc.rb
|
38
|
+
- VERSION
|
39
|
+
- tests
|
40
|
+
- tests/test_protocol.rb
|
41
|
+
- Rakefile
|
42
|
+
- examples
|
43
|
+
- examples/locking.rb
|
44
|
+
- examples/comparing.rb
|
45
|
+
- examples/stack.rb
|
46
|
+
- examples/indexing.rb
|
47
|
+
- examples/game.rb
|
48
|
+
- examples/queue.rb
|
49
|
+
- examples/hello_world_patternitis.rb
|
50
|
+
- examples/enumerating.rb
|
51
|
+
test_files:
|
52
|
+
- tests/test_protocol.rb
|
53
|
+
rdoc_options:
|
54
|
+
- --title
|
55
|
+
- Method Protocols for Ruby Classes
|
56
|
+
- -S
|
57
|
+
extra_rdoc_files: []
|
58
|
+
|
59
|
+
executables: []
|
60
|
+
|
61
|
+
extensions: []
|
62
|
+
|
63
|
+
requirements: []
|
64
|
+
|
65
|
+
dependencies:
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: ParseTree
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 2.0.2
|
74
|
+
version:
|