exodus 1.1.4 → 1.1.5

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.
@@ -1,3 +1,7 @@
1
+ ## v1.1.5
2
+
3
+ * Added more logging on custom migrations
4
+
1
5
  ## v1.1.4
2
6
 
3
7
  * Added rake task: rake db:reset
@@ -58,6 +58,7 @@ module Exodus
58
58
  # Using a list of migrations formats them and removes duplicates
59
59
  # migrations: list of migrations => [[MyMigration, {:my_args => 'some_args'}]]
60
60
  def load_custom(migrations)
61
+ migrations = migrations || []
61
62
  migrations.map {|migration_str, args| format(migration_str, args) }.uniq
62
63
  end
63
64
 
@@ -1,3 +1,3 @@
1
1
  module Exodus
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
@@ -60,6 +60,7 @@ namespace Exodus.configuration.rake_namespace + 'db' do
60
60
  Exodus::Migration.load_custom(Exodus.migrations_info.migrate_custom)
61
61
  end
62
62
 
63
+ puts "No migrations to run have been found" if migrations.empty?
63
64
  Exodus::sort_and_run_migrations('up', migrations, step)
64
65
  end
65
66
  end
@@ -99,6 +100,7 @@ namespace Exodus.configuration.rake_namespace + 'db' do
99
100
  Exodus::Migration.load_custom(Exodus.migrations_info.rollback_custom)
100
101
  end
101
102
 
103
+ puts "No migrations to run have been found" if migrations.empty?
102
104
  Exodus::sort_and_run_migrations('down', migrations, step)
103
105
  end
104
106
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exodus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
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: 2014-01-22 00:00:00.000000000 Z
12
+ date: 2014-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongo_mapper