dropmire 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dropmire/parser.rb +4 -0
- data/lib/dropmire/version.rb +1 -1
- data/spec/parser_spec.rb +1 -1
- metadata +2 -2
data/lib/dropmire/parser.rb
CHANGED
@@ -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
|
|
data/lib/dropmire/version.rb
CHANGED
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",
|
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.
|
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-
|
12
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|