vmsim 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +27 -0
- data/README.txt +1 -0
- data/Rakefile +40 -0
- data/VERSION +1 -0
- data/bin/vmdeploy +23 -0
- data/bin/vmsim +37 -0
- data/doc/actuators_and_sensors.txt +32 -0
- data/doc/handout.odt +0 -0
- data/doc/machine.jpg +0 -0
- data/doc/todo.txt +25 -0
- data/lib/adapter/actuator_collection.rb +61 -0
- data/lib/adapter/sensor_collection.rb +57 -0
- data/lib/archive_builder.rb +64 -0
- data/lib/control/main.rb +21 -0
- data/lib/control.rb +3 -0
- data/lib/deploy/deployer.rb +96 -0
- data/lib/deploy.rb +1 -0
- data/lib/devices/devices.rb +73 -0
- data/lib/devices.rb +1 -0
- data/lib/gui/SimulatorGui.gtk +289 -0
- data/lib/gui/simulator_gtk.rb +57 -0
- data/lib/gui/simulator_gui.rb +64 -0
- data/lib/gui.rb +2 -0
- data/lib/hardware/bin.rb +28 -0
- data/lib/hardware/button.rb +18 -0
- data/lib/hardware/can.rb +9 -0
- data/lib/hardware/cash_register.rb +79 -0
- data/lib/hardware/component.rb +56 -0
- data/lib/hardware/display.rb +29 -0
- data/lib/hardware/drawer.rb +45 -0
- data/lib/hardware/enum.rb +20 -0
- data/lib/hardware/simulator.rb +98 -0
- data/lib/hardware.rb +10 -0
- data/lib/hardware_adapter.rb +11 -0
- data/lib/vmlog.rb +5 -0
- data/test/adapter/actuator_collection_test.rb +106 -0
- data/test/adapter/sensor_collection_test.rb +51 -0
- data/test/deploy/deployer_test.rb +114 -0
- data/test/deploy/was_run.sh +5 -0
- data/test/devices/devices_test.rb +78 -0
- data/test/hardware/bin_test.rb +57 -0
- data/test/hardware/button_test.rb +23 -0
- data/test/hardware/can_test.rb +11 -0
- data/test/hardware/cash_register_test.rb +157 -0
- data/test/hardware/component_test.rb +37 -0
- data/test/hardware/display_test.rb +94 -0
- data/test/hardware/drawer_test.rb +100 -0
- data/test/hardware/enum_test.rb +33 -0
- data/test/hardware/simulator_test.rb +189 -0
- data/test/test_helper.rb +5 -0
- data/vmsim.gemspec +89 -0
- metadata +131 -0
data/vmsim.gemspec
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "vmsim"
|
8
|
+
s.version = "0.2.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Rob Westgeest, Marc Evers, Willem van den Ende"]
|
12
|
+
s.date = "2012-05-15"
|
13
|
+
s.description = "Vending machine; this simulator starts a vendingmachine ui which behaviour can be programmed with control code"
|
14
|
+
s.email = "info@qwan.it"
|
15
|
+
s.executables = ["vmdeploy", "vmsim", "vmsim", "vmdeploy"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"README.txt"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".autotest",
|
21
|
+
"README.txt",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"bin/vmdeploy",
|
25
|
+
"bin/vmsim",
|
26
|
+
"doc/actuators_and_sensors.txt",
|
27
|
+
"doc/handout.odt",
|
28
|
+
"doc/machine.jpg",
|
29
|
+
"doc/todo.txt",
|
30
|
+
"lib/adapter/actuator_collection.rb",
|
31
|
+
"lib/adapter/sensor_collection.rb",
|
32
|
+
"lib/archive_builder.rb",
|
33
|
+
"lib/control.rb",
|
34
|
+
"lib/control/main.rb",
|
35
|
+
"lib/deploy.rb",
|
36
|
+
"lib/deploy/deployer.rb",
|
37
|
+
"lib/devices.rb",
|
38
|
+
"lib/devices/devices.rb",
|
39
|
+
"lib/gui.rb",
|
40
|
+
"lib/gui/SimulatorGui.gtk",
|
41
|
+
"lib/gui/simulator_gtk.rb",
|
42
|
+
"lib/gui/simulator_gui.rb",
|
43
|
+
"lib/hardware.rb",
|
44
|
+
"lib/hardware/bin.rb",
|
45
|
+
"lib/hardware/button.rb",
|
46
|
+
"lib/hardware/can.rb",
|
47
|
+
"lib/hardware/cash_register.rb",
|
48
|
+
"lib/hardware/component.rb",
|
49
|
+
"lib/hardware/display.rb",
|
50
|
+
"lib/hardware/drawer.rb",
|
51
|
+
"lib/hardware/enum.rb",
|
52
|
+
"lib/hardware/simulator.rb",
|
53
|
+
"lib/hardware_adapter.rb",
|
54
|
+
"lib/vmlog.rb",
|
55
|
+
"test/adapter/actuator_collection_test.rb",
|
56
|
+
"test/adapter/sensor_collection_test.rb",
|
57
|
+
"test/deploy/deployer_test.rb",
|
58
|
+
"test/deploy/was_run.sh",
|
59
|
+
"test/devices/devices_test.rb",
|
60
|
+
"test/hardware/bin_test.rb",
|
61
|
+
"test/hardware/button_test.rb",
|
62
|
+
"test/hardware/can_test.rb",
|
63
|
+
"test/hardware/cash_register_test.rb",
|
64
|
+
"test/hardware/component_test.rb",
|
65
|
+
"test/hardware/display_test.rb",
|
66
|
+
"test/hardware/drawer_test.rb",
|
67
|
+
"test/hardware/enum_test.rb",
|
68
|
+
"test/hardware/simulator_test.rb",
|
69
|
+
"test/test_helper.rb",
|
70
|
+
"vmsim.gemspec"
|
71
|
+
]
|
72
|
+
s.licenses = ["MIT"]
|
73
|
+
s.require_paths = ["lib"]
|
74
|
+
s.rubygems_version = "1.8.24"
|
75
|
+
s.summary = "Vending machine simulator - part of the vendingmachine tdd bdd case"
|
76
|
+
|
77
|
+
if s.respond_to? :specification_version then
|
78
|
+
s.specification_version = 3
|
79
|
+
|
80
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
81
|
+
s.add_development_dependency(%q<mocha>, ["> 0.9.8"])
|
82
|
+
else
|
83
|
+
s.add_dependency(%q<mocha>, ["> 0.9.8"])
|
84
|
+
end
|
85
|
+
else
|
86
|
+
s.add_dependency(%q<mocha>, ["> 0.9.8"])
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vmsim
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Rob Westgeest, Marc Evers, Willem van den Ende
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-15 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: mocha
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 43
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 9
|
32
|
+
- 8
|
33
|
+
version: 0.9.8
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
36
|
+
description: Vending machine; this simulator starts a vendingmachine ui which behaviour can be programmed with control code
|
37
|
+
email: info@qwan.it
|
38
|
+
executables:
|
39
|
+
- vmdeploy
|
40
|
+
- vmsim
|
41
|
+
extensions: []
|
42
|
+
|
43
|
+
extra_rdoc_files:
|
44
|
+
- README.txt
|
45
|
+
files:
|
46
|
+
- .autotest
|
47
|
+
- README.txt
|
48
|
+
- Rakefile
|
49
|
+
- VERSION
|
50
|
+
- bin/vmdeploy
|
51
|
+
- bin/vmsim
|
52
|
+
- doc/actuators_and_sensors.txt
|
53
|
+
- doc/handout.odt
|
54
|
+
- doc/machine.jpg
|
55
|
+
- doc/todo.txt
|
56
|
+
- lib/adapter/actuator_collection.rb
|
57
|
+
- lib/adapter/sensor_collection.rb
|
58
|
+
- lib/archive_builder.rb
|
59
|
+
- lib/control.rb
|
60
|
+
- lib/control/main.rb
|
61
|
+
- lib/deploy.rb
|
62
|
+
- lib/deploy/deployer.rb
|
63
|
+
- lib/devices.rb
|
64
|
+
- lib/devices/devices.rb
|
65
|
+
- lib/gui.rb
|
66
|
+
- lib/gui/SimulatorGui.gtk
|
67
|
+
- lib/gui/simulator_gtk.rb
|
68
|
+
- lib/gui/simulator_gui.rb
|
69
|
+
- lib/hardware.rb
|
70
|
+
- lib/hardware/bin.rb
|
71
|
+
- lib/hardware/button.rb
|
72
|
+
- lib/hardware/can.rb
|
73
|
+
- lib/hardware/cash_register.rb
|
74
|
+
- lib/hardware/component.rb
|
75
|
+
- lib/hardware/display.rb
|
76
|
+
- lib/hardware/drawer.rb
|
77
|
+
- lib/hardware/enum.rb
|
78
|
+
- lib/hardware/simulator.rb
|
79
|
+
- lib/hardware_adapter.rb
|
80
|
+
- lib/vmlog.rb
|
81
|
+
- test/adapter/actuator_collection_test.rb
|
82
|
+
- test/adapter/sensor_collection_test.rb
|
83
|
+
- test/deploy/deployer_test.rb
|
84
|
+
- test/deploy/was_run.sh
|
85
|
+
- test/devices/devices_test.rb
|
86
|
+
- test/hardware/bin_test.rb
|
87
|
+
- test/hardware/button_test.rb
|
88
|
+
- test/hardware/can_test.rb
|
89
|
+
- test/hardware/cash_register_test.rb
|
90
|
+
- test/hardware/component_test.rb
|
91
|
+
- test/hardware/display_test.rb
|
92
|
+
- test/hardware/drawer_test.rb
|
93
|
+
- test/hardware/enum_test.rb
|
94
|
+
- test/hardware/simulator_test.rb
|
95
|
+
- test/test_helper.rb
|
96
|
+
- vmsim.gemspec
|
97
|
+
homepage:
|
98
|
+
licenses:
|
99
|
+
- MIT
|
100
|
+
post_install_message:
|
101
|
+
rdoc_options: []
|
102
|
+
|
103
|
+
require_paths:
|
104
|
+
- lib
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
hash: 3
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
version: "0"
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
requirements: []
|
124
|
+
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 1.8.24
|
127
|
+
signing_key:
|
128
|
+
specification_version: 3
|
129
|
+
summary: Vending machine simulator - part of the vendingmachine tdd bdd case
|
130
|
+
test_files: []
|
131
|
+
|