vmsim 0.2.4 → 1.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.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +69 -0
- data/README.md +36 -0
- data/Rakefile +6 -33
- data/doc/handout.odt +0 -0
- data/lib/archive_builder.rb +1 -1
- data/lib/deploy/deployer.rb +9 -13
- data/lib/version.rb +1 -0
- data/lib/vmsim.rb +5 -0
- data/vmsim.gemspec +20 -87
- metadata +91 -92
- data/VERSION +0 -1
- data/test/adapter/actuator_collection_test.rb +0 -106
- data/test/adapter/sensor_collection_test.rb +0 -51
- data/test/deploy/deployer_test.rb +0 -114
- data/test/deploy/was_run.sh +0 -5
- data/test/devices/devices_test.rb +0 -78
- data/test/hardware/bin_test.rb +0 -57
- data/test/hardware/button_test.rb +0 -23
- data/test/hardware/can_test.rb +0 -11
- data/test/hardware/cash_register_test.rb +0 -157
- data/test/hardware/component_test.rb +0 -37
- data/test/hardware/display_test.rb +0 -94
- data/test/hardware/drawer_test.rb +0 -100
- data/test/hardware/enum_test.rb +0 -33
- data/test/hardware/simulator_test.rb +0 -189
- data/test/test_helper.rb +0 -5
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6205b5aef3fece49e391f10976721152766301b5
|
4
|
+
data.tar.gz: fb996a363d7767b884807fc2a44e1e41968b5294
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 213d2e4e871ccd15c9ed29602fad7d9e90300cf3c28885e5286161d311901133fb76bca02bbfade0f824224c48d0cbcac20dc0c93c16b56509246b5f182e243a
|
7
|
+
data.tar.gz: 3542d823b24c9ecca0bebb64390eb038a9bda403ab9dd0ae8788abe2a6754d81af54bc8f2b56729f768dadbad5c7dae0a15022e83d57f6e16a8c64e84b666c19
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at rob@qwan.eu. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.4.0)
|
5
|
+
builder (3.2.2)
|
6
|
+
descendants_tracker (0.0.4)
|
7
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
8
|
+
diff-lcs (1.2.5)
|
9
|
+
faraday (0.9.2)
|
10
|
+
multipart-post (>= 1.2, < 3)
|
11
|
+
git (1.2.9.1)
|
12
|
+
github_api (0.13.1)
|
13
|
+
addressable (~> 2.4.0)
|
14
|
+
descendants_tracker (~> 0.0.4)
|
15
|
+
faraday (~> 0.8, < 0.10)
|
16
|
+
hashie (>= 3.4)
|
17
|
+
multi_json (>= 1.7.5, < 2.0)
|
18
|
+
oauth2
|
19
|
+
hashie (3.4.3)
|
20
|
+
highline (1.7.8)
|
21
|
+
jeweler (2.0.1)
|
22
|
+
builder
|
23
|
+
bundler (>= 1.0)
|
24
|
+
git (>= 1.2.5)
|
25
|
+
github_api
|
26
|
+
highline (>= 1.6.15)
|
27
|
+
nokogiri (>= 1.5.10)
|
28
|
+
rake
|
29
|
+
rdoc
|
30
|
+
jwt (1.5.2)
|
31
|
+
mini_portile2 (2.0.0)
|
32
|
+
multi_json (1.11.2)
|
33
|
+
multi_xml (0.5.5)
|
34
|
+
multipart-post (2.0.0)
|
35
|
+
nokogiri (1.6.7.1)
|
36
|
+
mini_portile2 (~> 2.0.0.rc2)
|
37
|
+
oauth2 (1.0.0)
|
38
|
+
faraday (>= 0.8, < 0.10)
|
39
|
+
jwt (~> 1.0)
|
40
|
+
multi_json (~> 1.3)
|
41
|
+
multi_xml (~> 0.5)
|
42
|
+
rack (~> 1.2)
|
43
|
+
rack (1.6.4)
|
44
|
+
rake (10.4.2)
|
45
|
+
rdoc (4.2.1)
|
46
|
+
rspec (3.4.0)
|
47
|
+
rspec-core (~> 3.4.0)
|
48
|
+
rspec-expectations (~> 3.4.0)
|
49
|
+
rspec-mocks (~> 3.4.0)
|
50
|
+
rspec-core (3.4.1)
|
51
|
+
rspec-support (~> 3.4.0)
|
52
|
+
rspec-expectations (3.4.0)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.4.0)
|
55
|
+
rspec-mocks (3.4.0)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.4.0)
|
58
|
+
rspec-support (3.4.1)
|
59
|
+
thread_safe (0.3.5)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
jeweler
|
66
|
+
rspec
|
67
|
+
|
68
|
+
BUNDLED WITH
|
69
|
+
1.11.2
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Vmsim
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/vmsim`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'vmsim'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install vmsim
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vmsim. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
data/Rakefile
CHANGED
@@ -1,40 +1,13 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
|
3
|
-
require '
|
4
|
-
require 'rake/testtask'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rspec/core/rake_task'
|
5
4
|
|
6
5
|
|
7
6
|
desc 'Running all unit tests'
|
8
|
-
task :default => :
|
7
|
+
task :default => :spec
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
desc "Running all unit specs"
|
10
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
11
|
+
t.rspec_opts = "--color --format documentation"
|
12
12
|
end
|
13
|
-
|
14
|
-
desc 'Measures test coverage'
|
15
|
-
task :coverage do
|
16
|
-
rm_f "coverage"
|
17
|
-
rm_f "coverage.data"
|
18
|
-
rcov = "rcov --aggregate coverage.data"
|
19
|
-
system("#{rcov} --html test/*test.rb")
|
20
|
-
end
|
21
|
-
|
22
13
|
|
23
|
-
require 'jeweler'
|
24
|
-
Jeweler::Tasks.new do |gem|
|
25
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
26
|
-
gem.name = "vmsim"
|
27
|
-
gem.executables << 'vmsim'
|
28
|
-
gem.executables << 'vmdeploy'
|
29
|
-
gem.license = "MIT"
|
30
|
-
gem.summary = %Q{Vending machine simulator - part of the vendingmachine tdd bdd case}
|
31
|
-
gem.description = %Q{Vending machine; this simulator starts a vendingmachine ui which behaviour can be programmed with control code}
|
32
|
-
gem.email = "info@qwan.it"
|
33
|
-
gem.authors = ["Rob Westgeest, Marc Evers, Willem van den Ende"]
|
34
|
-
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
35
|
-
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
36
|
-
gem.add_runtime_dependency 'gtk2', '>= 1.0.3'
|
37
|
-
gem.add_development_dependency 'mocha', '> 0.9.8'
|
38
|
-
end
|
39
|
-
Jeweler::RubygemsDotOrgTasks.new
|
40
|
-
|
data/doc/handout.odt
CHANGED
Binary file
|
data/lib/archive_builder.rb
CHANGED
@@ -38,7 +38,7 @@ module ArchiveBuilder
|
|
38
38
|
end
|
39
39
|
private
|
40
40
|
def mk_work_dir
|
41
|
-
rm_r(@work_dir) if File.exists?(@work_dir) && @work_dir =~
|
41
|
+
rm_r(@work_dir) if File.exists?(@work_dir) && @work_dir =~ /^#{Dir.tmpdir}/
|
42
42
|
mkdir_p(@work_dir) unless File.exists?(@work_dir)
|
43
43
|
end
|
44
44
|
end
|
data/lib/deploy/deployer.rb
CHANGED
@@ -32,24 +32,18 @@ module Deploy
|
|
32
32
|
def kill
|
33
33
|
read_current_pid
|
34
34
|
kill_running_process
|
35
|
+
clear_current_pid
|
35
36
|
end
|
36
37
|
|
37
38
|
def wait_for
|
38
|
-
|
39
|
+
Process.wait(read_current_pid)
|
40
|
+
clear_current_pid
|
39
41
|
self
|
40
42
|
end
|
41
43
|
|
42
44
|
private
|
43
45
|
def start_deployed_code
|
44
|
-
|
45
|
-
IO.popen(executable) do |io|
|
46
|
-
save_current_pid io.pid
|
47
|
-
while !io.eof? do
|
48
|
-
@log << io.gets
|
49
|
-
end
|
50
|
-
end
|
51
|
-
clear_current_pid
|
52
|
-
end
|
46
|
+
save_current_pid(fork { system(executable) })
|
53
47
|
end
|
54
48
|
|
55
49
|
def install_deployed_code(file_path)
|
@@ -62,9 +56,11 @@ module Deploy
|
|
62
56
|
|
63
57
|
def kill_running_process
|
64
58
|
begin
|
65
|
-
|
66
|
-
|
67
|
-
|
59
|
+
if current_pid
|
60
|
+
system "kill -9 #{current_pid}"
|
61
|
+
Process.wait(current_pid)
|
62
|
+
end
|
63
|
+
rescue
|
68
64
|
# thats fine
|
69
65
|
end
|
70
66
|
end
|
data/lib/version.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
VERSION = "1.0.0"
|
data/lib/vmsim.rb
ADDED
data/vmsim.gemspec
CHANGED
@@ -1,92 +1,25 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "vmsim"
|
8
|
+
spec.version = VERSION
|
9
|
+
spec.authors = ["Rob Westgeest"]
|
10
|
+
spec.email = ["rob@qwan.eu"]
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
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 = ["vmsim", "vmdeploy", "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"
|
12
|
+
spec.summary = "Vending machine simulator"
|
13
|
+
spec.description = "simulates a vending machin"
|
14
|
+
spec.homepage = "http://www.qwan.eu"
|
76
15
|
|
77
|
-
|
78
|
-
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "bin"
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
79
20
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
s.add_dependency(%q<gtk2>, [">= 1.0.3"])
|
85
|
-
s.add_dependency(%q<mocha>, ["> 0.9.8"])
|
86
|
-
end
|
87
|
-
else
|
88
|
-
s.add_dependency(%q<gtk2>, [">= 1.0.3"])
|
89
|
-
s.add_dependency(%q<mocha>, ["> 0.9.8"])
|
90
|
-
end
|
21
|
+
spec.add_runtime_dependency "gtk2"
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
91
25
|
end
|
92
|
-
|
metadata
CHANGED
@@ -1,68 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmsim
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 4
|
10
|
-
version: 0.2.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
- Rob Westgeest
|
6
|
+
authors:
|
7
|
+
- Rob Westgeest
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: gtk2
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 3
|
33
|
-
version: 1.0.3
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
34
20
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: mocha
|
38
21
|
prerelease: false
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
50
34
|
type: :development
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description: simulates a vending machin
|
70
|
+
email:
|
71
|
+
- rob@qwan.eu
|
72
|
+
executables:
|
56
73
|
- vmdeploy
|
74
|
+
- vmsim
|
57
75
|
extensions: []
|
58
|
-
|
59
|
-
|
60
|
-
-
|
61
|
-
|
62
|
-
- .
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- ".autotest"
|
79
|
+
- ".gitignore"
|
80
|
+
- ".rspec"
|
81
|
+
- ".ruby-version"
|
82
|
+
- ".travis.yml"
|
83
|
+
- CODE_OF_CONDUCT.md
|
84
|
+
- Gemfile
|
85
|
+
- Gemfile.lock
|
86
|
+
- README.md
|
63
87
|
- README.txt
|
64
88
|
- Rakefile
|
65
|
-
- VERSION
|
66
89
|
- bin/vmdeploy
|
67
90
|
- bin/vmsim
|
68
91
|
- doc/actuators_and_sensors.txt
|
@@ -93,55 +116,31 @@ files:
|
|
93
116
|
- lib/hardware/enum.rb
|
94
117
|
- lib/hardware/simulator.rb
|
95
118
|
- lib/hardware_adapter.rb
|
119
|
+
- lib/version.rb
|
96
120
|
- lib/vmlog.rb
|
97
|
-
-
|
98
|
-
- test/adapter/sensor_collection_test.rb
|
99
|
-
- test/deploy/deployer_test.rb
|
100
|
-
- test/deploy/was_run.sh
|
101
|
-
- test/devices/devices_test.rb
|
102
|
-
- test/hardware/bin_test.rb
|
103
|
-
- test/hardware/button_test.rb
|
104
|
-
- test/hardware/can_test.rb
|
105
|
-
- test/hardware/cash_register_test.rb
|
106
|
-
- test/hardware/component_test.rb
|
107
|
-
- test/hardware/display_test.rb
|
108
|
-
- test/hardware/drawer_test.rb
|
109
|
-
- test/hardware/enum_test.rb
|
110
|
-
- test/hardware/simulator_test.rb
|
111
|
-
- test/test_helper.rb
|
121
|
+
- lib/vmsim.rb
|
112
122
|
- vmsim.gemspec
|
113
|
-
homepage:
|
114
|
-
licenses:
|
115
|
-
|
123
|
+
homepage: http://www.qwan.eu
|
124
|
+
licenses: []
|
125
|
+
metadata: {}
|
116
126
|
post_install_message:
|
117
127
|
rdoc_options: []
|
118
|
-
|
119
|
-
require_paths:
|
128
|
+
require_paths:
|
120
129
|
- lib
|
121
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
-
|
123
|
-
requirements:
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
124
132
|
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
version: "0"
|
130
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
|
-
requirements:
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
133
137
|
- - ">="
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
|
136
|
-
segments:
|
137
|
-
- 0
|
138
|
-
version: "0"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
139
140
|
requirements: []
|
140
|
-
|
141
141
|
rubyforge_project:
|
142
|
-
rubygems_version:
|
142
|
+
rubygems_version: 2.5.1
|
143
143
|
signing_key:
|
144
|
-
specification_version:
|
145
|
-
summary: Vending machine simulator
|
144
|
+
specification_version: 4
|
145
|
+
summary: Vending machine simulator
|
146
146
|
test_files: []
|
147
|
-
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.4
|