contact_parser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +3 -3
- data/contact_parser.gemspec +2 -2
- data/lib/contact_parser/version.rb +1 -1
- data/lib/contact_parser.rb +2 -2
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cc69895ea6926905528970b78614569ba79d3e7ed95050799a2edae8a9e701e0
|
4
|
+
data.tar.gz: 3ddf9df1626f11e20482d6a248fbfa3d164ba37f2d31f59604514c5215acfa73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dce15541aa31e7ae9fdb72061fc1aed188b39b6f6cf1256cb17d87b8c61d8864f4ec109c9a04f4752466699a24427f6e5a1ccacad2d209cdc2e560145a85de9
|
7
|
+
data.tar.gz: 3debeceb30d376e75eb3b290db704268e2a87779c754c3b80f50d34660c20d3af482ccb87c328c90179dbdb1622fba8c08b6b07007c5e06fcb34b81b81a691fe
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ Example:
|
|
27
27
|
|
28
28
|
```ruby
|
29
29
|
contacts = "Darth Vader <darth@vader.com>, Oops Sanderson <oops@gmail>, Han Solo <han@solo.com>, Mace X Windu <mace@windu.com>, Yoda <yoda@lightsaber.com>, Leia Organa leia@organa.com"
|
30
|
-
ContactParser.new(contacts).bulk_parse
|
30
|
+
ContactParser.new(contacts).bulk_parse
|
31
31
|
```
|
32
32
|
|
33
33
|
Will return the hash:
|
@@ -71,7 +71,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
71
71
|
|
72
72
|
## Contributing
|
73
73
|
|
74
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
74
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jordanhudgens/contact_parser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
75
75
|
|
76
76
|
## License
|
77
77
|
|
@@ -79,4 +79,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
79
79
|
|
80
80
|
## Code of Conduct
|
81
81
|
|
82
|
-
Everyone interacting in the ContactParser project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
82
|
+
Everyone interacting in the ContactParser project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jordanhudgens/contact_parser/blob/master/CODE_OF_CONDUCT.md).
|
data/contact_parser.gemspec
CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
27
|
|
28
|
-
spec.add_dependency 'email_address', '~> 0.
|
28
|
+
spec.add_dependency 'email_address', '~> 0.2.4'
|
29
29
|
end
|
data/lib/contact_parser.rb
CHANGED
@@ -14,11 +14,11 @@ class ContactParser
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def split_records
|
17
|
-
@str.split(',')
|
17
|
+
@str.split(',').reject(&:empty?)
|
18
18
|
end
|
19
19
|
|
20
20
|
def split_names_and_email(split_records_array)
|
21
|
-
split_records_array.map { |e| e.split(' ') }
|
21
|
+
split_records_array.map { |e| e.split(' ') }.reject(&:empty?)
|
22
22
|
end
|
23
23
|
|
24
24
|
def remove_angle_bracket_from_emails(name_and_email_array)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hudgens
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.2.4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.2.4
|
69
69
|
description: Includes email and presence validations.
|
70
70
|
email:
|
71
71
|
- jordan@wow.com
|
@@ -90,7 +90,7 @@ homepage: https://github.com/jordanhudgens/contact_parser
|
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata: {}
|
93
|
-
post_install_message:
|
93
|
+
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|
96
96
|
- lib
|
@@ -105,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
|
109
|
-
|
110
|
-
signing_key:
|
108
|
+
rubygems_version: 3.2.22
|
109
|
+
signing_key:
|
111
110
|
specification_version: 4
|
112
111
|
summary: Parses a basic set of names and email addresses and outputs a hash.
|
113
112
|
test_files: []
|