datacatalog-importer 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{datacatalog-importer}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David James"]
data/lib/utility.rb CHANGED
@@ -65,14 +65,14 @@ module DataCatalog
65
65
  def self.parse_csv_from_uri(uri)
66
66
  puts "Fetching #{uri}..."
67
67
  open(uri, headers) do |io|
68
- Nokogiri::HTML::Document.parse(io)
68
+ FasterCSV.parse(io)
69
69
  end
70
70
  end
71
71
 
72
72
  def self.parse_html_from_uri(uri)
73
73
  puts "Fetching #{uri}..."
74
74
  open(uri, headers) do |io|
75
- FasterCSV.parse(io)
75
+ Nokogiri::HTML::Document.parse(io)
76
76
  end
77
77
  end
78
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacatalog-importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David James