paraphraser 0.2.2 → 0.2.3
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/VERSION +1 -1
- data/lib/paraphraser/convertor.rb +5 -0
- data/paraphraser.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.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]
|
data/paraphraser.gemspec
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 2
|
|
8
|
-
-
|
|
9
|
-
version: 0.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: -
|
|
88
|
+
hash: -892620163
|
|
89
89
|
segments:
|
|
90
90
|
- 0
|
|
91
91
|
version: "0"
|