import_everything 0.1.5 → 0.1.6

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.5
1
+ 0.1.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "import_everything"
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Harris"]
@@ -32,7 +32,7 @@ module ImportEverything
32
32
  # Determines what parser class should be used for this file
33
33
  def parser_class
34
34
  h = {'sqlite' => SqliteParser, 'sqlite3' => SqliteParser, 'csv' => CsvParser, 'xml' => XmlParser, 'sql' => SqlInsertParser, 'dmp' => SqlInsertParser, 'html' => TableParser}
35
- h = h.merge('yaml' => YamlParser, 'yml' => 'YamlParser')
35
+ h = h.merge('yaml' => YamlParser, 'yml' => YamlParser)
36
36
  h[ext].tap { |x| return x if x }
37
37
  h.each do |k,klass|
38
38
  return klass if ext =~ /^#{k}\d\d/
data/vol/web_test.rb CHANGED
@@ -28,6 +28,10 @@ insert into players (name,hr) values ('Babe',755);"
28
28
  rows = get_parsed sql, "widgets.sql"
29
29
  pp rows
30
30
 
31
+ yaml = File.read("spec/data/database.yml")
32
+ rows = get_parsed yaml, "database.yml"
33
+ pp rows
34
+
31
35
  if false
32
36
 
33
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: import_everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  segments:
205
205
  - 0
206
- hash: 4403534682600032383
206
+ hash: 1595779518523233277
207
207
  required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  none: false
209
209
  requirements: