messagefactory 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/messagefactory/Factory.rb +5 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ require 'spec/rake/spectask'
13
13
 
14
14
  spec = Gem::Specification.new do |s|
15
15
  s.name = 'messagefactory'
16
- s.version = '0.0.3'
16
+ s.version = '0.0.4'
17
17
  s.has_rdoc = true
18
18
  s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
19
19
  s.summary = 'Objectifies content from an IRC server'
@@ -45,7 +45,11 @@ module MessageFactory
45
45
  load_handlers
46
46
  s = process(string, false)
47
47
  else
48
- raise NoMethodError.new("No handler found to process string: #{string}")
48
+ s = Message.new
49
+ s.direction = :incoming
50
+ s.received = Time.now
51
+ s.raw = string.dup
52
+ s.type = :UNKNOWN
49
53
  end
50
54
  end
51
55
  s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messagefactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - spox