MissionHub 1.0rc8 → 1.0rc9

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,13 @@ module MissionHub
34
34
  if message.is_a?(String) or message.is_a?(Hash) or message.is_a?(Array)
35
35
  if id.is_a?(Integer)
36
36
  if message.is_a?(Array)
37
- message = Hash[ *message.collect { |v| [ v, v ] }.flatten ]
37
+ h = {}
38
+ count = 0
39
+ message.each do |v|
40
+ h[count] = v
41
+ count += 1
42
+ end
43
+ message = h
38
44
  end
39
45
  @answers[id] = message
40
46
  else
@@ -1,3 +1,3 @@
1
1
  module MissionHub
2
- VERSION = "1.0rc8"
2
+ VERSION = "1.0rc9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MissionHub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0rc8
4
+ version: 1.0rc9
5
5
  prerelease: 3
6
6
  platform: ruby
7
7
  authors: