xml_contacts_extractor 0.0.4 → 0.0.5

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.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # XmlContactsExtractor
2
2
 
3
- Extracts contact information from XML.
3
+ Extracts contact information from XML. Dictionary based information extractor from any valid XML. Dependent on Nokogiri.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,24 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Create an instance
22
+
23
+ obj = XmlContactsExtractor::Search.new
24
+
25
+ Extract elements from XML
26
+
27
+ a.extract_contacts(xml)
28
+
29
+ Use contact info
30
+
31
+ a.fname
32
+ a.lname
33
+ a.email
34
+ a.phone
35
+ a.address
36
+ a.city
37
+ a.state
38
+ a.zip
22
39
 
23
40
  ## Contributing
24
41
 
@@ -1,3 +1,3 @@
1
1
  module XmlContactsExtractor
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = XmlContactsExtractor::VERSION
9
9
  spec.authors = ["Yogesh Pendharkar"]
10
10
  spec.email = ["yogesh.pendharkar@gmail.com"]
11
- spec.description = %q{Extracts contact information from XML}
11
+ spec.description = %q{Extracts contact information from XML. Dictionary based information extractor from any valid XML.}
12
12
  spec.summary = %q{Extracts contact information from XML}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/ypendharkar/XML-Contacts-Extractor"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.add_runtime_dependency "nokogiri"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml_contacts_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,7 +75,8 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- description: Extracts contact information from XML
78
+ description: Extracts contact information from XML. Dictionary based information extractor
79
+ from any valid XML.
79
80
  email:
80
81
  - yogesh.pendharkar@gmail.com
81
82
  executables: []
@@ -90,7 +91,7 @@ files:
90
91
  - lib/xml_contacts_extractor.rb
91
92
  - lib/xml_contacts_extractor/version.rb
92
93
  - xml_contacts_extractor.gemspec
93
- homepage: ''
94
+ homepage: https://github.com/ypendharkar/XML-Contacts-Extractor
94
95
  licenses:
95
96
  - MIT
96
97
  post_install_message: