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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/joyce.rb +5 -3
  3. data/lib/joyce/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc2c30bbb31acf3d09e48b999632bfa3fc088f2d
4
- data.tar.gz: b1d12f30d0b2173b8d16d6dee1359722b7fe4e5a
3
+ metadata.gz: 5b4a10271be6166e29b0ebcb1032e5328791249a
4
+ data.tar.gz: 2f51e6729b9bcbc0ec8f1d1aeee037614164ad2f
5
5
  SHA512:
6
- metadata.gz: f44031c862c06e85c7057931f42cfad3fe18fb523ce7d58d44a5106a72c72f9d96ac4a036c698b09f658dc4b9f67913836b871c950c29e7c531e27410302b423
7
- data.tar.gz: 8a613409719e53c1bd0c90c66315040fd3c5db2af82c56c665b3ac155d288bda7c59500ab2235d7ea0589d5fe8ab671f1737444f45ad4c34d783a06ba512e3f8
6
+ metadata.gz: 31b221d3b52ea662df840cf4b6108e0a7fa81ebe3db80734b4a17903e3bd5848da95072aa42d8b0da6234eb5c31d16cbeea7e5be2662eb91cc4b0a8444183669
7
+ data.tar.gz: f2739b4a84dad228d86f1982444a2e32f672da49493f0c675d84864509e7a83c8ff665905fedbdb9ac58990f019cd2c6e60770e902effa0e2173f544fcb39f7a
@@ -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
- require 'action_view' # just for distance of time in words..
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 then
39
+ if id == Gosu::MsLeft
40
40
  app.click
41
+ elsif id == Gosu::KbEscape
42
+ close
41
43
  end
42
44
  end
43
45
 
@@ -1,4 +1,4 @@
1
1
  module Joyce
2
2
  # joyce version
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joyce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman