migration_bundler 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/migration_bundler/targets/maven/project/build.gradle +2 -2
- data/lib/migration_bundler/targets/sqlite/sqlite_target.rb +1 -1
- data/lib/migration_bundler/version.rb +1 -1
- data/migration_bundler.gemspec +2 -2
- data/spec/sandbox/sqlite/.migration_bundler.yml +3 -1
- data/spec/targets/maven_target_spec.rb +20 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca82042d4b667d2d4b07183bfb1c2427358431d
|
4
|
+
data.tar.gz: 031330b32b2638a72b334b41fe2e9cc3e60ca4be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14982d3e2f2b6c7a1d1cbfcd32620660e87be5642baac967c15ada5a408a501a561d46ccac1553e60003396f2366743fc16611378f94c0e7edc5cfc148de80f2
|
7
|
+
data.tar.gz: 9c8b2319019da2799089463ab15e523cbb4a24e60bb3ac424675fdc644d32ec2f624b1084e1ebeb3b2378011a198b63653a28c23d88460abcc54ea9e25f7abc6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -29,14 +29,14 @@ repositories {
|
|
29
29
|
* Uploading
|
30
30
|
************************************************/
|
31
31
|
task Jar(type: Jar) {
|
32
|
-
jar.archiveName = "
|
32
|
+
jar.archiveName = "migrationbundler-" + version + ".jar"
|
33
33
|
}
|
34
34
|
|
35
35
|
publishing {
|
36
36
|
publications {
|
37
37
|
mavenJava(MavenPublication) {
|
38
38
|
groupId "com.layer"
|
39
|
-
artifactId "
|
39
|
+
artifactId "migrationbundler"
|
40
40
|
from components.java
|
41
41
|
}
|
42
42
|
}
|
@@ -58,7 +58,7 @@ module MigrationBundler
|
|
58
58
|
say "Dumping rows from '#{table_name}'..."
|
59
59
|
with_padding do
|
60
60
|
row_statements = database.dump_rows(table_name)
|
61
|
-
f.puts row_statements.join("\n")
|
61
|
+
f.puts row_statements.join("\n\n")
|
62
62
|
say "wrote #{row_statements.size} rows.", :green
|
63
63
|
end
|
64
64
|
end
|
data/migration_bundler.gemspec
CHANGED
@@ -5,8 +5,8 @@ require 'migration_bundler/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'migration_bundler'
|
8
|
-
s.version = '1.3.
|
9
|
-
s.date = '2014-
|
8
|
+
s.version = '1.3.2'
|
9
|
+
s.date = '2014-07-01'
|
10
10
|
s.summary = "A flexible database schema management system."
|
11
11
|
s.description = "Migration Bundler is a complete database schema management system providing migrations, dump/load, and packaging of schema artifacts."
|
12
12
|
s.authors = ["Blake Watters"]
|
@@ -55,7 +55,7 @@ describe MigrationBundler::Targets::MavenTarget do
|
|
55
55
|
expect(Dir.entries(File.join(project_root, 'project/src/main/resources/migrations')).size).not_to eq(2)
|
56
56
|
end
|
57
57
|
|
58
|
-
it "should have project/build/libs/
|
58
|
+
it "should have project/build/libs/migrationbundler-[version].jar files" do
|
59
59
|
expect(File.file?(built_jar_path)).to eq(true)
|
60
60
|
end
|
61
61
|
|
@@ -102,12 +102,25 @@ describe MigrationBundler::Targets::MavenTarget do
|
|
102
102
|
|
103
103
|
describe '#push' do
|
104
104
|
before(:each) do
|
105
|
-
|
106
|
-
|
107
|
-
|
105
|
+
# Put config into the YAML
|
106
|
+
yaml_path = File.join(project_root, '.migration_bundler.yml')
|
107
|
+
project = YAML.load(File.read(yaml_path))
|
108
|
+
project['config']['maven.url'] = File.join(project_root, "maven")
|
109
|
+
project['config']['maven.username'] = 'none'
|
110
|
+
project['config']['maven.password'] = 'none'
|
111
|
+
File.open(yaml_path, 'w') { |f| f << YAML.dump(project) }
|
112
|
+
|
113
|
+
Dir.chdir(project_root) do
|
114
|
+
`git add .`
|
115
|
+
`git commit --no-status -m 'Adding files' .`
|
116
|
+
`git tag 20140523123443021`
|
117
|
+
end
|
118
|
+
|
119
|
+
invoke!(['generate', '--quiet'])
|
108
120
|
end
|
109
121
|
|
110
|
-
it "should have
|
122
|
+
it "should have migrationbundler-[version].jar file in the local Maven" do
|
123
|
+
invoke!(%w{push --quiet})
|
111
124
|
expect(File.file?(maven_jar_path)).to eq(true)
|
112
125
|
end
|
113
126
|
end
|
@@ -146,11 +159,11 @@ describe MigrationBundler::Targets::MavenTarget do
|
|
146
159
|
end
|
147
160
|
|
148
161
|
def maven_jar_path
|
149
|
-
File.join(project_root, "maven/com/layer/
|
162
|
+
File.join(project_root, "maven/com/layer/migrationbundler/20140523123443021/migrationbundler-20140523123443021.jar")
|
150
163
|
end
|
151
164
|
|
152
165
|
def built_jar_path
|
153
|
-
File.join(project_root, "project/build/libs/
|
166
|
+
File.join(project_root, "project/build/libs/migrationbundler-20140523123443021.jar")
|
154
167
|
end
|
155
168
|
|
156
169
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migration_bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Watters
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|