wyrm 0.3.2 → 0.3.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: 110e92d0b4e9b47f86444d239b11f9592ad39221
4
- data.tar.gz: ebc8111aa344dccdabe1291eef825d940e683cba
3
+ metadata.gz: c62a5cbc1df1fd2ae5e73af5674a321ae2c04113
4
+ data.tar.gz: 8e421d58a2cfdb36ab433fccbc5820464318e84b
5
5
  SHA512:
6
- metadata.gz: 7dbf3e13f13bc8aa384583fc29000ff82803ffe47389b06fa3093254490005e961d30f6f1797fccbe50ca4b3baf95f29a33ba45fecd552e38a76313a17d179e8
7
- data.tar.gz: 95e4ab50e865fa38aec23c935eb393ce20996d41000ca2879a4272e37e826d6e348a0a8afe7cb9ff7be77b0d37732e5717c84f5439c483feebb6c5ace4bf6796
6
+ metadata.gz: affd20c4d8423cb9ee3c20d96bf43bfa2de7fc009f2a4fc431828bf2fb08e05fb53b756754887ab6de6acae5cce92955fc59702be131b59f1434e93b409fa73e
7
+ data.tar.gz: e69e16c69c53ba23d2bacce42b5c000b3271076aef00ffa4f5ca32d708cb9f6fd46894412f369bbf6fb321d84a5d1fc02d1262d3f3f70dc6f2720fb8079f1202
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - 2.1.1
6
- - 2.1.2
3
+ - 2.0.0
4
+ - 2.1.7
5
+ - 2.2.3
7
6
  script: bundle exec rspec spec
data/History.txt CHANGED
@@ -1,2 +1,5 @@
1
+ == 0.3.3
2
+ * minor fix when src/dst directory not found
3
+
1
4
  == 0.3.2
2
5
  * update for >=sequel-4.10.0 internal syntax (Dataset#clause_sql removed)
data/lib/wyrm/restore.rb CHANGED
@@ -41,6 +41,7 @@ class Wyrm::Restore
41
41
  # sequel wants migrations numbered, but it's a bit of an annoyance for this.
42
42
  def find_single( glob )
43
43
  candidates = Pathname.glob container + glob
44
+ raise "no candidates for #{glob}. Probably #{container} does not have wyrm files." unless candidates.size == 1
44
45
  raise "too many #{candidates.inspect} for #{glob}" unless candidates.size == 1
45
46
  candidates.first
46
47
  end
@@ -56,16 +56,15 @@ module Wyrm::SchemaTools
56
56
  else
57
57
  raise
58
58
  end
59
-
60
59
  end
61
60
  end
62
61
 
63
62
  # this should be temporary
64
- if tables.sort == foreign_keyed_tables.sort
63
+ if tables.any? && tables.sort == foreign_keyed_tables.sort
65
64
  raise "can't remove #{tables.inspect} because they have mutual foreign keys"
66
65
  end
67
66
 
68
- # recursively delete tables
67
+ # recursively delete tables. Shuffle as kak workaround for dependency loops.
69
68
  drop_tables foreign_keyed_tables.shuffle unless foreign_keyed_tables.empty?
70
69
  end
71
70
 
data/lib/wyrm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wyrm
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.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.3.2
4
+ version: 0.3.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: 2014-10-28 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.1.11
213
+ rubygems_version: 2.4.8
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Transfer from one SQL rdbms to another