flattendb 0.0.2.162 → 0.0.3.240

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to flattendb version 0.0.2
5
+ This documentation refers to flattendb version 0.0.3
6
6
 
7
7
 
8
8
  == DESCRIPTION
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
- abort "No configuration file specified" unless $global_options[:confile]
170
- abort "Configuration file not found: #{confile}" unless File.readable?(confile)
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
@@ -30,7 +30,7 @@
30
30
  ###############################################################################
31
31
  #++
32
32
 
33
- if $0 == __FILE__
33
+ unless $type
34
34
  $type = :mdb
35
35
  load File.join(File.dirname(__FILE__), 'flattendb')
36
36
  else
data/bin/flattendb.mysql CHANGED
@@ -30,7 +30,7 @@
30
30
  ###############################################################################
31
31
  #++
32
32
 
33
- if $0 == __FILE__
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
- abort "Input file doesn't seem to be a valid XML file, XML declaration missing" \
42
- unless IO.read($infile, 6) == '<?xml '
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'
@@ -32,7 +32,7 @@ module FlattenDB
32
32
 
33
33
  MAJOR = 0
34
34
  MINOR = 0
35
- TINY = 2
35
+ TINY = 3
36
36
 
37
37
  class << self
38
38
 
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.2.162
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-01-08 00:00:00 +01:00
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
- - --line-numbers
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.0.1
111
+ rubygems_version: 1.1.1
112
112
  signing_key:
113
113
  specification_version: 2
114
114
  summary: Flatten relational databases.