wyrm 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25ce5387e1498b4e6e76915889bbe11f5cb4e008
4
- data.tar.gz: dc86f010e4fbb7da91f58ea7a0bb99b2faf80591
3
+ metadata.gz: 31f0b3d15006e2d0bf1d7cd6012c6d0ba844d2f6
4
+ data.tar.gz: a129013c88325dd61d3ac29cb5d466b7a8d33741
5
5
  SHA512:
6
- metadata.gz: c533c2238d722afdcb4c43c1e395df198e9ec37ce47f680b12f6b1d208a6fef7d2186919f356082371f28a716407a58c008f8482c50d0d33529828e7a27d4790
7
- data.tar.gz: d8161add55bb09b8a6a44052640342beba85f74fb3c6aee124a48816628247aa7df3bb672d9061579d95d82a0e92b13cd3d2a25e22bff744802214af79d95661
6
+ metadata.gz: fe6e7c7064fc540ad5c697f9ff684287448656bc6f01ef7a07d29d536418524e3c71315bee680e6ac22bcb2f60aed25be3c93c6b3446a9ec407ccfdf5dd0a747
7
+ data.tar.gz: f31b269e9e024fae193a0270c2bb06d81fc28f6be09331957a6a3b23470fb8bda3e4c3ed1d371b30988273d2a753cd003ec86a1b82d11ae22685eaa45528ef06
data/lib/wyrm/db_pump.rb CHANGED
@@ -4,7 +4,7 @@ require 'ostruct'
4
4
  require 'logger'
5
5
  require 'fastandand'
6
6
 
7
- Sequel.extension :migration, :schema_dumper, :pagination
7
+ Sequel.extension :migration
8
8
 
9
9
  # TODO possibly use Gem::Package::TarWriter to write tar files
10
10
  # TODO when restoring, could use a SizeQueue to make sure the db is kept busy
@@ -45,6 +45,7 @@ class DbPump
45
45
  @primary_keys = nil
46
46
  @table_dataset = nil
47
47
  @db = other_db
48
+ @db.extension :pagination
48
49
  end
49
50
 
50
51
  def dry_run?; dry_run; end
@@ -18,6 +18,7 @@ end
18
18
  # ds.dump_tables
19
19
  class DumpSchema
20
20
  def initialize( src_db, container = nil, pump: nil )
21
+ src_db.extension :schema_dumper
21
22
  @src_db = src_db
22
23
  @container = Pathname(container)
23
24
  @pump = make_pump( pump )
@@ -1,4 +1,5 @@
1
1
  require 'logger'
2
+ require 'wyrm/db_pump'
2
3
 
3
4
  # Load a schema from a set of dump files (from DumpSchema)
4
5
  # and restore the table data
data/lib/wyrm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wyrm
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wyrm
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
  - John Anderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-02 00:00:00.000000000 Z
11
+ date: 2013-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel