dropmire 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,6 +82,10 @@ module Dropmire
82
82
  @attrs[:last_name] = names[0].capitalize
83
83
  @attrs[:middle_name] = capitalize_or_nil(names[2])
84
84
 
85
+ # Temporary patch here, otherwise the Dropmire::Identity#method_missing
86
+ # won't recognize the middle_name method.
87
+ @attrs[:middle_name] = "" if @attrs[:middle_name].nil?
88
+
85
89
  [@attrs[:first_name], @attrs[:middle_name], @attrs[:last_name]]
86
90
  end
87
91
 
@@ -1,3 +1,3 @@
1
1
  module Dropmire
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/spec/parser_spec.rb CHANGED
@@ -72,7 +72,7 @@ describe Dropmire::Parser do
72
72
  carrot_arr = subject.carrot_string(@demo_text)
73
73
  name_string = carrot_arr.first
74
74
  name_arr = subject.split_name(name_string)
75
- val = ["Connor", nil, "Jacobsen"]
75
+ val = ["Connor", "", "Jacobsen"]
76
76
  expect(subject.names(name_arr)).to eql val
77
77
  end
78
78
  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.6
4
+ version: 0.1.7
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-16 00:00:00.000000000 Z
12
+ date: 2014-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler