vedeu 0.0.12 → 0.0.13

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: a3489de1de7dba2be8959a6f31fedda506ab98d9
4
- data.tar.gz: 86ccc8058d098ecadee5ce5b921858a9894df14b
3
+ metadata.gz: 471c1ceac680dd828ec4350a534b5fce10e98bc1
4
+ data.tar.gz: dc875e0fecea6e2ad99c1eb3ee4f0be41caa3028
5
5
  SHA512:
6
- metadata.gz: b04a568a44e0c7eb891f10ffb72f94f19370e9652ad17850291665f7873b9b3901117a01353d2429f74bfa94f7d068a1aa52eff9eaf87adcde4eb39f983ed4dc
7
- data.tar.gz: 996e9e94f5009f3e75d994a397b17bb83545332f370efcad301a1553d58c870e42407d0d61bb9386916aeaba1c70e99143c11ba9672bf21dccfe568130cbbe38
6
+ metadata.gz: dbdc5b0b33aa74ec0a9b04ef416d223dae0ffc6167ce0289490e3e3d906fe7977e181f73593d4a0a5f9471fc14740e9dc8baaa3dc68fff061be2d4b2d6bd2d43
7
+ data.tar.gz: 7f1f5dbb00aa4542f2a026a5ef643fdbe7b9f4908c87518291ffae5a287e8e30b16772ad3c66bde75578699308a84d7115ac2478ecbb6b11d6bdeb86428a3660
@@ -9,6 +9,12 @@ module Vedeu
9
9
  def initialize; end
10
10
 
11
11
  def capture
12
+ Queue.enqueue(input)
13
+ end
14
+
15
+ private
16
+
17
+ def input
12
18
  Terminal.input
13
19
  end
14
20
  end
@@ -8,7 +8,7 @@ module Vedeu
8
8
 
9
9
  def enqueue(result)
10
10
  store.unshift(result)
11
- self
11
+ store
12
12
  end
13
13
 
14
14
  def size
@@ -1,6 +1,6 @@
1
1
  module Vedeu
2
2
  class Interface
3
- attr_accessor :id, :attributes, :active, :geometry, :name, :result
3
+ attr_accessor :id, :attributes, :active, :geometry, :name
4
4
 
5
5
  class << self
6
6
  def create(attributes = {})
@@ -14,7 +14,6 @@ module Vedeu
14
14
  @active = false
15
15
  @geometry = attributes[:geometry]
16
16
  @name = attributes[:name]
17
- @result = nil
18
17
  end
19
18
 
20
19
  def create
data/lib/vedeu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vedeu
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -10,7 +10,9 @@ module Vedeu
10
10
  describe '.capture' do
11
11
  let(:subject) { described_class.capture }
12
12
 
13
- it { subject.must_be_instance_of(String) }
13
+ it { subject.must_be_instance_of(Array) }
14
+
15
+ it { subject.wont_be_empty }
14
16
  end
15
17
  end
16
18
  end
@@ -39,7 +39,7 @@ module Vedeu
39
39
  context 'or the result is anything else' do
40
40
  let(:result) { :something_else }
41
41
 
42
- it { subject.must_be_instance_of(Module) }
42
+ it { subject.must_be_instance_of(Array) }
43
43
  end
44
44
  end
45
45
 
@@ -59,7 +59,7 @@ module Vedeu
59
59
  context 'or the result is anything else' do
60
60
  let(:result) { :something_else }
61
61
 
62
- it { subject.must_be_instance_of(Module) }
62
+ it { subject.must_be_instance_of(Array) }
63
63
  end
64
64
  end
65
65
  end
@@ -26,7 +26,7 @@ module Vedeu
26
26
  let(:subject) { described_class.enqueue(result) }
27
27
  let(:result) { :result }
28
28
 
29
- it { subject.must_be_instance_of(Module) }
29
+ it { subject.must_be_instance_of(Array) }
30
30
 
31
31
  it { subject.size.must_equal(1) }
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-12 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba