mycroft 0.1.0 → 0.1.1

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.
@@ -34,14 +34,11 @@ module Mycroft
34
34
 
35
35
  def run
36
36
  loop do
37
- if @client.ready?
38
- size = @client.readline
39
- data = @client.read(size.to_i)
40
- parsed = parse_message(data)
41
- unless @@handlers[parsed[:type]].nil?
42
- instance_exec(parsed[:data], &@@handlers[parsed[:type]])
43
- else
44
- end
37
+ size = @client.readline
38
+ data = @client.read(size.to_i)
39
+ parsed = parse_message(data)
40
+ unless @@handlers[parsed[:type]].nil?
41
+ instance_exec(parsed[:data], &@@handlers[parsed[:type]])
45
42
  end
46
43
  on_event_loop if methods.include?(:on_event_loop)
47
44
  end
@@ -1,3 +1,3 @@
1
1
  module Mycroft
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mycroft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-01 00:00:00.000000000 Z
12
+ date: 2014-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler