factor 0.6.4 → 0.6.5

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: 26eb148636a08597d3d15057a3536d5b1780f9c8
4
- data.tar.gz: 87b420da894fa98fd2f9e151982a63008ea452cd
3
+ metadata.gz: de59489e42da320e68f586ec424afe9ca68ca25a
4
+ data.tar.gz: 314cc835b4304aa42a40d3827e4abe24f648a50d
5
5
  SHA512:
6
- metadata.gz: 90c063260db5e9fc933991d4bedfb17b52c52e1908f5fbb0a1ab53fd5acfbf03eca4027947b99c854aea968fbfd732f7db69d3d1096c2fe6783be2a37e665d37
7
- data.tar.gz: fb996d555b5542c5dda46e198e2fb84cf8a642308843a4d4edaa2946f4985e3ff68b5058b4fa495c952fc18a832acddc47f04406b469415bce1536002278bb58
6
+ metadata.gz: 9e240a8437547554f5aeb5036315057e23a5dffb2477c0ad6bd12a3dfd4511f961763d14daaa2cdcf0c98b29b9015868b3b3e594d1264fc322587ec55cbb5f5d
7
+ data.tar.gz: 9c56560e8cf41062d0629042d01e4bbcbea5102dd452cca4df67a3fb4883ccddbab2170ec98f122224465b1b05130f3e476756f1b13249a6b5c359e49a2f03b3
@@ -21,6 +21,14 @@ module Factor
21
21
  @hash_table
22
22
  end
23
23
 
24
+ def to_s
25
+ @hast_table.to_s
26
+ end
27
+
28
+ def inspect
29
+ @hash_table.inspect
30
+ end
31
+
24
32
  def [](idx)
25
33
  hash = marshal_dump
26
34
  hash[idx.to_sym]
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Primary Factor.io module
4
4
  module Factor
5
- VERSION = '0.6.4'
5
+ VERSION = '0.6.5'
6
6
  end
@@ -73,7 +73,7 @@ module Factor
73
73
 
74
74
  caller.on :start_workflow do |data|
75
75
  success "Listener '#{address}' triggered"
76
- block.call(Factor::Common.simple_object_convert(data))
76
+ block.call(Factor::Common.simple_object_convert(data['payload']))
77
77
  end
78
78
 
79
79
  caller.on :fail do |info|
@@ -128,7 +128,7 @@ module Factor
128
128
  caller.on :return do |data|
129
129
  success "Action '#{address}' responded"
130
130
  caller.close
131
- block.call(Factor::Common.simple_object_convert(data))
131
+ block.call(Factor::Common.simple_object_convert(data['payload']))
132
132
  end
133
133
 
134
134
  caller.on :close do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Skierkowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-12 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander