paraphraser 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -14,6 +14,7 @@ module Paraphraser
14
14
  migrations.each do |migration|
15
15
  announce "#{migration.version} : #{migration.name}"
16
16
  migration.migrate(direction)
17
+ update_schema_migrations_table(migration.version)
17
18
  end
18
19
  end
19
20
  end
@@ -53,6 +54,10 @@ module Paraphraser
53
54
  end
54
55
  end
55
56
 
57
+ def update_schema_migrations_table(version)
58
+ connection.execute "INSERT INTO `schema_migrations` (version) VALUES ('#{version}')"
59
+ end
60
+
56
61
  def announce(text)
57
62
  length = [0, 90 - text.length].max
58
63
  print "\n-- %s %s\n" % [text, "-" * length]
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{paraphraser}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vinay Patel"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Vinay Patel
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- hash: -722395295
88
+ hash: -892620163
89
89
  segments:
90
90
  - 0
91
91
  version: "0"