wraithdb 0.0.5 → 0.0.6
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/.gitignore +1 -0
- data/lib/gems/activerecord-import.rb +3 -2
- data/lib/gems/db-charmer.rb +1 -0
- data/lib/rails/3.0/active_record/base.rb +1 -0
- data/lib/wraithdb/adapters/default_adapter.rb +1 -1
- data/lib/wraithdb/column.rb +1 -1
- data/lib/wraithdb/schema.rb +2 -2
- data/lib/wraithdb/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
@@ -6,8 +6,9 @@ module ActiveRecord
|
|
6
6
|
begin
|
7
7
|
ActiveSupport.run_load_hooks(:active_record_connection_established, connection)
|
8
8
|
rescue StandardError => e
|
9
|
-
# ActiveImport will not work but this shouldn't be an issue as it's
|
10
|
-
# If the DB is down we won't be importing
|
9
|
+
# ActiveImport will not work but this shouldn't be an issue as it's
|
10
|
+
# only used in Rake tasks. If the DB is down we won't be importing
|
11
|
+
# anything in a rake task anyhow.
|
11
12
|
end
|
12
13
|
end
|
13
14
|
alias establish_connection establish_connection_with_activerecord_import
|
data/lib/gems/db-charmer.rb
CHANGED
data/lib/wraithdb/column.rb
CHANGED
@@ -7,7 +7,7 @@ module WraithDB
|
|
7
7
|
@limit = column_definition.limit
|
8
8
|
@precision = column_definition.precision
|
9
9
|
@scale = column_definition.scale
|
10
|
-
@type = (column_definition.type == :primary_key) ? :integer : column_definition.type
|
10
|
+
@type = (column_definition.type == :primary_key) ? :integer : column_definition.type.to_sym
|
11
11
|
@default = column_definition.default
|
12
12
|
@primary = column_definition.type == :primary_key
|
13
13
|
@coder = nil
|
data/lib/wraithdb/schema.rb
CHANGED
@@ -9,8 +9,9 @@ module WraithDB
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def connection
|
12
|
-
load
|
13
12
|
@connection ||= build_connection
|
13
|
+
load
|
14
|
+
@connection
|
14
15
|
end
|
15
16
|
|
16
17
|
def build_connection
|
@@ -41,7 +42,6 @@ module WraithDB
|
|
41
42
|
else
|
42
43
|
raise StandardError.new("Invalid format for #{file}.")
|
43
44
|
end
|
44
|
-
|
45
45
|
instance_eval(source)
|
46
46
|
end
|
47
47
|
end
|
data/lib/wraithdb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wraithdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|