tg-can-controls-gateway 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Capfile +8 -0
- data/README +243 -0
- data/Rakefile +54 -0
- data/VERSION +1 -0
- data/app/controllers/application_controller.rb +10 -0
- data/app/helpers/application_helper.rb +3 -0
- data/bin/can_controls_gateway +36 -0
- data/doc/090630_Gestentracking_RFID.pdf +0 -0
- data/doc/README_FOR_APP +3 -0
- data/doc/home.png +0 -0
- data/doc/life.png +0 -0
- data/doc/preshow.png +0 -0
- data/doc/recognition-message-example.xml +69 -0
- data/etc/init-script_debian +56 -0
- data/lib/can-controls-gateway.rb +4 -0
- data/lib/ccg_logger.rb +6 -0
- data/lib/cursor_vector.rb +60 -0
- data/lib/dispatcher.rb +85 -0
- data/lib/osc_broadcast_receiver.rb +41 -0
- data/lib/osc_broadcast_sender.rb +44 -0
- data/lib/osc_package.rb +56 -0
- data/lib/osc_to_rca_dispatcher.rb +42 -0
- data/lib/ping.rb +84 -0
- data/lib/raw_event.rb +33 -0
- data/lib/rca_command.rb +42 -0
- data/lib/runner.rb +97 -0
- data/lib/server.rb +45 -0
- data/lib/settings.rb +17 -0
- data/log/development.log +0 -0
- data/log/production.log +0 -0
- data/log/server.log +0 -0
- data/log/test.log +0 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/favicon.ico +0 -0
- data/public/images/gesten/1.png +0 -0
- data/public/images/gesten/10.png +0 -0
- data/public/images/gesten/11.png +0 -0
- data/public/images/gesten/2.png +0 -0
- data/public/images/gesten/3.png +0 -0
- data/public/images/gesten/4.png +0 -0
- data/public/images/gesten/5.png +0 -0
- data/public/images/gesten/6.png +0 -0
- data/public/images/gesten/7.png +0 -0
- data/public/images/gesten/8.png +0 -0
- data/public/images/gesten/9.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/index.html +275 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +973 -0
- data/public/javascripts/effects.js +1128 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/robots.txt +5 -0
- data/script/about +4 -0
- data/script/console +3 -0
- data/script/dbconsole +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/spec/can-controls-gateway/rca_command_spec.rb +31 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +10 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +38 -0
- metadata +167 -0
data/public/robots.txt
ADDED
data/script/about
ADDED
data/script/console
ADDED
data/script/dbconsole
ADDED
data/script/destroy
ADDED
data/script/generate
ADDED
data/script/plugin
ADDED
data/script/runner
ADDED
data/script/server
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require File.expand_path("#{File.dirname(__FILE__)}/../spec_helper")
|
2
|
+
|
3
|
+
include CanControlsGateway
|
4
|
+
|
5
|
+
describe CanControlsGateway::RcaCommand do
|
6
|
+
it "should find the class" do
|
7
|
+
CanControlsGateway::RcaCommand.should_not == nil
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should init form c'tor args" do
|
11
|
+
rca = RcaCommand.new(
|
12
|
+
"http://localhost:4042/commands",
|
13
|
+
'input_dispatcher', {'action' => 'confirm'}
|
14
|
+
)
|
15
|
+
rca.target.should == 'input_dispatcher'
|
16
|
+
rca.rci_uri.should == 'http://localhost:4042/commands'
|
17
|
+
rca.arguments.should == 'action%3Dconfirm'
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "with a rca command" do
|
21
|
+
before :each do
|
22
|
+
@rca = RcaCommand.new "http://localhost:4042/commands", 'input_dispatcher'
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should prepare commmand args" do
|
26
|
+
args = {"foo" => "bar", "fnord" => "hukl"}
|
27
|
+
@rca.send(:prepare_command_arguments, args).
|
28
|
+
should == "fnord%3Dhukl%26foo%3Dbar"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--backtrace --debugger
|
data/spec/spec_helper.rb
ADDED
data/test/test_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
7
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
8
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
9
|
+
# between every test method. Fewer database queries means faster tests.
|
10
|
+
#
|
11
|
+
# Read Mike Clark's excellent walkthrough at
|
12
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
13
|
+
#
|
14
|
+
# Every Active Record database supports transactions except MyISAM tables
|
15
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
16
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
17
|
+
# is recommended.
|
18
|
+
#
|
19
|
+
# The only drawback to using transactional fixtures is when you actually
|
20
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
21
|
+
# any transactions started in your code will be automatically rolled back.
|
22
|
+
#self.use_transactional_fixtures = true
|
23
|
+
|
24
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
25
|
+
# would need people(:david). If you don't want to migrate your existing
|
26
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
27
|
+
# instantiated fixtures translates to a database query per test method),
|
28
|
+
# then set this back to true.
|
29
|
+
#self.use_instantiated_fixtures = false
|
30
|
+
|
31
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
32
|
+
#
|
33
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
34
|
+
# -- they do not yet inherit this setting
|
35
|
+
#fixtures :all
|
36
|
+
|
37
|
+
# Add more helper methods to be used by all tests here...
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tg-can-controls-gateway
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- art+com/andreas marr
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-01 00:00:00 +01:00
|
13
|
+
default_executable: can_controls_gateway
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: applix
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: gom-script
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: eventmachine
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.12.10
|
54
|
+
version:
|
55
|
+
description: to be written
|
56
|
+
email: entwicklung.t-gallery@artcom.de
|
57
|
+
executables:
|
58
|
+
- can_controls_gateway
|
59
|
+
extensions: []
|
60
|
+
|
61
|
+
extra_rdoc_files:
|
62
|
+
- README
|
63
|
+
files:
|
64
|
+
- .gitignore
|
65
|
+
- Capfile
|
66
|
+
- README
|
67
|
+
- Rakefile
|
68
|
+
- VERSION
|
69
|
+
- app/controllers/application_controller.rb
|
70
|
+
- app/helpers/application_helper.rb
|
71
|
+
- bin/can_controls_gateway
|
72
|
+
- doc/090630_Gestentracking_RFID.pdf
|
73
|
+
- doc/README_FOR_APP
|
74
|
+
- doc/home.png
|
75
|
+
- doc/life.png
|
76
|
+
- doc/preshow.png
|
77
|
+
- doc/recognition-message-example.xml
|
78
|
+
- etc/init-script_debian
|
79
|
+
- lib/can-controls-gateway.rb
|
80
|
+
- lib/ccg_logger.rb
|
81
|
+
- lib/cursor_vector.rb
|
82
|
+
- lib/dispatcher.rb
|
83
|
+
- lib/osc_broadcast_receiver.rb
|
84
|
+
- lib/osc_broadcast_sender.rb
|
85
|
+
- lib/osc_package.rb
|
86
|
+
- lib/osc_to_rca_dispatcher.rb
|
87
|
+
- lib/ping.rb
|
88
|
+
- lib/raw_event.rb
|
89
|
+
- lib/rca_command.rb
|
90
|
+
- lib/runner.rb
|
91
|
+
- lib/server.rb
|
92
|
+
- lib/settings.rb
|
93
|
+
- log/development.log
|
94
|
+
- log/production.log
|
95
|
+
- log/server.log
|
96
|
+
- log/test.log
|
97
|
+
- public/404.html
|
98
|
+
- public/422.html
|
99
|
+
- public/500.html
|
100
|
+
- public/favicon.ico
|
101
|
+
- public/images/gesten/1.png
|
102
|
+
- public/images/gesten/10.png
|
103
|
+
- public/images/gesten/11.png
|
104
|
+
- public/images/gesten/2.png
|
105
|
+
- public/images/gesten/3.png
|
106
|
+
- public/images/gesten/4.png
|
107
|
+
- public/images/gesten/5.png
|
108
|
+
- public/images/gesten/6.png
|
109
|
+
- public/images/gesten/7.png
|
110
|
+
- public/images/gesten/8.png
|
111
|
+
- public/images/gesten/9.png
|
112
|
+
- public/images/rails.png
|
113
|
+
- public/index.html
|
114
|
+
- public/javascripts/application.js
|
115
|
+
- public/javascripts/controls.js
|
116
|
+
- public/javascripts/dragdrop.js
|
117
|
+
- public/javascripts/effects.js
|
118
|
+
- public/javascripts/prototype.js
|
119
|
+
- public/robots.txt
|
120
|
+
- script/about
|
121
|
+
- script/console
|
122
|
+
- script/dbconsole
|
123
|
+
- script/destroy
|
124
|
+
- script/generate
|
125
|
+
- script/performance/benchmarker
|
126
|
+
- script/performance/profiler
|
127
|
+
- script/plugin
|
128
|
+
- script/runner
|
129
|
+
- script/server
|
130
|
+
- spec/can-controls-gateway/rca_command_spec.rb
|
131
|
+
- spec/spec.opts
|
132
|
+
- spec/spec_helper.rb
|
133
|
+
- test/performance/browsing_test.rb
|
134
|
+
- test/test_helper.rb
|
135
|
+
has_rdoc: true
|
136
|
+
homepage: http://artcom.de/
|
137
|
+
licenses: []
|
138
|
+
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options:
|
141
|
+
- --charset=UTF-8
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: "0"
|
149
|
+
version:
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: "0"
|
155
|
+
version:
|
156
|
+
requirements: []
|
157
|
+
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 1.3.5
|
160
|
+
signing_key:
|
161
|
+
specification_version: 3
|
162
|
+
summary: mapping CC gesture events to RCA
|
163
|
+
test_files:
|
164
|
+
- spec/can-controls-gateway/rca_command_spec.rb
|
165
|
+
- spec/spec_helper.rb
|
166
|
+
- test/performance/browsing_test.rb
|
167
|
+
- test/test_helper.rb
|