metacosm 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 224aac2406fa13d01f77c4ed0433de62ec37558b
4
- data.tar.gz: 04b4697fb0d3e950d05809514d7cf63c75cdcc4e
3
+ metadata.gz: 8bf995dc9e13f527b341c13acda3200cc8d8207a
4
+ data.tar.gz: 35dee47dcd5ffbee7199e5a72230a4262fe983af
5
5
  SHA512:
6
- metadata.gz: a8aedcf0cb7e15579c97c32a9ce1429ce7ff7235fa65b43d558924ca3c099266877b653cc3149f3053dbb9ba56d9516ef5fd0f90bd825c63e5d10f92883d9114
7
- data.tar.gz: b3c59db7a32735a4f459c33731d2618f9e1b95aa260e64b5ec07b290362763199816f6f380b7eb8ff94349a3e7752aca34e01345d1ef430d45421bf8cca68b05
6
+ metadata.gz: 001c9ce2735c2e64b6976401d413d83ba0967c263462970d123085aaeb59b197a0bc7d412b46f8744a4316d8de08541261d3d15b6123aebd69a17452d6549d04
7
+ data.tar.gz: 71d9e72d5217763eba8e8daa0bf8d5068141cb4f1674ef44d57b011a19e4c6658b6ad0c7797103f063087e4e4748eec9e0e2b83e0a35f55fbc1d3200eabae23f
data/README.md CHANGED
@@ -23,7 +23,10 @@ Models only transform their state in response to commands, so their state can be
23
23
 
24
24
  ## Examples
25
25
 
26
- A Fizzbuzz implementation contrived enough to show off many of the features of the framework.
26
+
27
+ Below is a Fizzbuzz implementation contrived enough to show off many of the features of the framework.
28
+
29
+ You may also want to [look at this repository](https://github.com/jweissman/gol) which implements Conway's game of life using metacosm and gosu.
27
30
 
28
31
  ````ruby
29
32
  require 'metacosm'
data/lib/metacosm.rb CHANGED
@@ -5,6 +5,8 @@ require 'metacosm/version'
5
5
  require 'metacosm/model'
6
6
  require 'metacosm/simulation'
7
7
 
8
+ Thread.abort_on_exception=true
9
+
8
10
  module Metacosm
9
11
  class View
10
12
  include PassiveRecord
@@ -63,6 +63,7 @@ module Metacosm
63
63
 
64
64
  def clear!
65
65
  @events = []
66
+ @command_queue.clear
66
67
  end
67
68
 
68
69
  protected
@@ -1,4 +1,4 @@
1
1
  module Metacosm
2
2
  # metacosm version
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metacosm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: passive_record