joyce 0.2.2 → 0.2.3
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 +4 -4
- data/lib/joyce.rb +5 -3
- data/lib/joyce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b4a10271be6166e29b0ebcb1032e5328791249a
|
|
4
|
+
data.tar.gz: 2f51e6729b9bcbc0ec8f1d1aeee037614164ad2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31b221d3b52ea662df840cf4b6108e0a7fa81ebe3db80734b4a17903e3bd5848da95072aa42d8b0da6234eb5c31d16cbeea7e5be2662eb91cc4b0a8444183669
|
|
7
|
+
data.tar.gz: f2739b4a84dad228d86f1982444a2e32f672da49493f0c675d84864509e7a83c8ff665905fedbdb9ac58990f019cd2c6e60770e902effa0e2173f544fcb39f7a
|
data/lib/joyce.rb
CHANGED
|
@@ -3,7 +3,8 @@ require 'redis' # TODO move require to mc/remote_sim?
|
|
|
3
3
|
require 'metacosm'
|
|
4
4
|
require 'metacosm/remote_simulation'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# TODO i think this can be moved to example/example's Gemfile
|
|
7
|
+
require 'action_view' # just for distance of time in words..
|
|
7
8
|
include ActionView::Helpers::DateHelper
|
|
8
9
|
|
|
9
10
|
require 'joyce/version'
|
|
@@ -11,7 +12,6 @@ require 'joyce/application'
|
|
|
11
12
|
require 'joyce/application_view'
|
|
12
13
|
|
|
13
14
|
module Joyce
|
|
14
|
-
# TODO move to joyce config?
|
|
15
15
|
EVENT_STREAM = :joyce_event_stream
|
|
16
16
|
COMMAND_QUEUE = :joyce_command_queue
|
|
17
17
|
|
|
@@ -36,8 +36,10 @@ module Joyce
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def button_down(id)
|
|
39
|
-
if id == Gosu::MsLeft
|
|
39
|
+
if id == Gosu::MsLeft
|
|
40
40
|
app.click
|
|
41
|
+
elsif id == Gosu::KbEscape
|
|
42
|
+
close
|
|
41
43
|
end
|
|
42
44
|
end
|
|
43
45
|
|
data/lib/joyce/version.rb
CHANGED