hydra-migrate 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +3 -0
- data/lib/hydra/migrate/dispatcher.rb +1 -5
- data/lib/hydra/migrate/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/unit/migrate_spec.rb +1 -1
- metadata +2 -2
data/HISTORY.md
CHANGED
@@ -61,11 +61,7 @@ module Hydra
|
|
61
61
|
migration[:block].call(object, migration[:to], self)
|
62
62
|
object.migrationInfo.migrate(migration[:to])
|
63
63
|
object.current_migration = migration[:to]
|
64
|
-
unless opts[:dry_run]
|
65
|
-
unless object.save
|
66
|
-
raise %{Cannot save #{object.pid}:\n#{object.errors.to_a.join("\n")}}
|
67
|
-
end
|
68
|
-
end
|
64
|
+
object.save(:validate=>false) unless opts[:dry_run]
|
69
65
|
end
|
70
66
|
object
|
71
67
|
}
|
data/spec/spec_helper.rb
CHANGED
data/spec/unit/migrate_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-migrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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: 2013-08-
|
12
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active-fedora
|