dropmire 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require File.join(File.dirname(__FILE__), 'error')
2
+
1
3
  module Dropmire
2
4
  class ParseError < Error
3
5
  def initialize(message="Malformed input string", text=nil)
@@ -1,3 +1,3 @@
1
1
  module Dropmire
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -14,5 +14,10 @@ describe Dropmire::Validator do
14
14
  @text2 = """%FLTALLAHASSEEJACOBSEN$CONNOR$ALAN^6357 SINKOLA DR^ ?;6360101021210193207=1506199306070=?+! 323124522 E 1602 ECCECC00000?"""
15
15
  expect { Dropmire::Validator.new(@text2) }.to raise_error
16
16
  end
17
+
18
+ it "raises exception for empty string" do
19
+ @text2 = ""
20
+ expect { Dropmire::Validator.new(@text2) }.to raise_error
21
+ end
17
22
  end
18
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropmire
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
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-11-19 00:00:00.000000000 Z
12
+ date: 2014-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler