flattendb 0.0.2.162 → 0.0.3.240
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 +1 -1
- data/bin/flattendb +6 -2
- data/bin/flattendb.mdb +1 -1
- data/bin/flattendb.mysql +4 -3
- data/lib/flattendb/version.rb +1 -1
- metadata +9 -9
data/README
CHANGED
data/bin/flattendb
CHANGED
@@ -166,8 +166,12 @@ rescue LoadError
|
|
166
166
|
end
|
167
167
|
|
168
168
|
abort "No output file specified" unless $global_options[:outfile]
|
169
|
-
|
170
|
-
|
169
|
+
|
170
|
+
if confile = $global_options[:confile]
|
171
|
+
abort "Configuration file not found: #{confile}" unless File.readable?(confile)
|
172
|
+
else
|
173
|
+
abort "No configuration file specified"
|
174
|
+
end
|
171
175
|
|
172
176
|
$global_options[:infiles].each { |infile|
|
173
177
|
abort "Input file not found: #{infile}" unless File.readable?(infile)
|
data/bin/flattendb.mdb
CHANGED
data/bin/flattendb.mysql
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
###############################################################################
|
31
31
|
#++
|
32
32
|
|
33
|
-
|
33
|
+
unless $type
|
34
34
|
$type = :mysql
|
35
35
|
load File.join(File.dirname(__FILE__), 'flattendb')
|
36
36
|
else
|
@@ -38,8 +38,9 @@ else
|
|
38
38
|
|
39
39
|
case $options[:intype]
|
40
40
|
when :xml
|
41
|
-
|
42
|
-
|
41
|
+
unless IO.read($infile, 6) == '<?xml '
|
42
|
+
abort "Input file doesn't seem to be a valid XML file, XML declaration missing"
|
43
|
+
end
|
43
44
|
when :sql
|
44
45
|
mysql_cmd = 'mysql'
|
45
46
|
dump_cmd = 'mysqldump'
|
data/lib/flattendb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flattendb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3.240
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-05-21 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -57,9 +57,9 @@ executables:
|
|
57
57
|
extensions: []
|
58
58
|
|
59
59
|
extra_rdoc_files:
|
60
|
-
- README
|
61
60
|
- COPYING
|
62
61
|
- ChangeLog
|
62
|
+
- README
|
63
63
|
files:
|
64
64
|
- lib/flattendb/version.rb
|
65
65
|
- lib/flattendb/base.rb
|
@@ -82,15 +82,15 @@ has_rdoc: true
|
|
82
82
|
homepage: http://prometheus.rubyforge.org/flattendb
|
83
83
|
post_install_message:
|
84
84
|
rdoc_options:
|
85
|
+
- --line-numbers
|
85
86
|
- --all
|
86
87
|
- --inline-source
|
87
|
-
- --charset
|
88
|
-
- UTF-8
|
89
|
-
- --main
|
90
|
-
- README
|
91
88
|
- --title
|
92
89
|
- flattendb Application documentation
|
93
|
-
- --
|
90
|
+
- --main
|
91
|
+
- README
|
92
|
+
- --charset
|
93
|
+
- UTF-8
|
94
94
|
require_paths:
|
95
95
|
- lib
|
96
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements: []
|
109
109
|
|
110
110
|
rubyforge_project: prometheus
|
111
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.1.1
|
112
112
|
signing_key:
|
113
113
|
specification_version: 2
|
114
114
|
summary: Flatten relational databases.
|