promotion 1.4.3 → 1.4.4
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/CHANGELOG +3 -0
- data/lib/promotion/evolver.rb +2 -4
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/promotion/evolver.rb
CHANGED
|
@@ -54,7 +54,7 @@ class Evolver
|
|
|
54
54
|
versionFile = File.new(versionFilename, 'w')
|
|
55
55
|
versionFile.puts(completed)
|
|
56
56
|
versionFile.close()
|
|
57
|
-
puts(" to version #{completed} ")
|
|
57
|
+
puts("Evolved the database to version #{completed} ")
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Starts the database evolution:
|
|
@@ -69,9 +69,7 @@ class Evolver
|
|
|
69
69
|
migrations.reject! { |v| v <= @currentVersion }
|
|
70
70
|
migrations.reject! { |v| v > @target } unless @target == 0
|
|
71
71
|
@target = migrations.last.to_i
|
|
72
|
-
if @target
|
|
73
|
-
print("Evolving the database")
|
|
74
|
-
else
|
|
72
|
+
if @target <= @currentVersion
|
|
75
73
|
puts("Already at version #{@currentVersion}.")
|
|
76
74
|
exit 0
|
|
77
75
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: promotion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 1.4.
|
|
9
|
+
- 4
|
|
10
|
+
version: 1.4.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Richard Kernahan
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-
|
|
18
|
+
date: 2013-04-04 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: log4r
|