migration_bundler 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ec2212098914eb16d0ed82047ec6de592166204
4
- data.tar.gz: 6f8c7c07c7f1246e2581c61bebd08f720936db90
3
+ metadata.gz: 5ca82042d4b667d2d4b07183bfb1c2427358431d
4
+ data.tar.gz: 031330b32b2638a72b334b41fe2e9cc3e60ca4be
5
5
  SHA512:
6
- metadata.gz: 01739a8ad7e9b04285d94b4bc32b4bbb7ab08063dc98b646af49726b6cc266efbe1f099e6eec4e17539dd3fb61e81f5d819221c90fe93722f582ca049e86a35f
7
- data.tar.gz: 4a5702c94dc8e7b4b9d7a5880664f5d4d3638e2e4aeff2993ebe65f83179822892923e71f4b9bc88deace058c4ff6c624ca35a269e1531fc37bd99fcb3036cde
6
+ metadata.gz: 14982d3e2f2b6c7a1d1cbfcd32620660e87be5642baac967c15ada5a408a501a561d46ccac1553e60003396f2366743fc16611378f94c0e7edc5cfc148de80f2
7
+ data.tar.gz: 9c8b2319019da2799089463ab15e523cbb4a24e60bb3ac424675fdc644d32ec2f624b1084e1ebeb3b2378011a198b63653a28c23d88460abcc54ea9e25f7abc6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.3.2
2
+
3
+ * Various bugfixes for Android/Maven support.
4
+
1
5
  ## v1.3.1
2
6
 
3
7
  * Enhanced support for dumping Cassandra columns.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- migration_bundler (1.3.1)
4
+ migration_bundler (1.3.2)
5
5
  cql-rb (~> 2.0.0)
6
6
  sqlite3 (~> 1.3.9)
7
7
  thor (~> 0.19.1)
@@ -29,14 +29,14 @@ repositories {
29
29
  * Uploading
30
30
  ************************************************/
31
31
  task Jar(type: Jar) {
32
- jar.archiveName = "MigrationBundler-" + version + ".jar"
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 "MigrationBundler"
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
@@ -1,3 +1,3 @@
1
1
  module MigrationBundler
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -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.1'
9
- s.date = '2014-06-26'
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"]
@@ -4,6 +4,8 @@ targets:
4
4
  - cocoapods
5
5
  config:
6
6
  cocoapods.repo: example_specs_repo
7
- maven.url: "http://maven.layer.com:1234/nexus"
7
+ maven.url: http://maven.layer.com:1234/nexus
8
+ maven.username: none
9
+ maven.password: none
8
10
  db.dump_tables:
9
11
  - schema_migrations
@@ -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/MigrationBundler-[version].jar files" do
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
- set_config
106
- invoke!(%w{generate --quiet})
107
- invoke!(%w{push --quiet})
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 MigrationBundler-[version].jar file in the local Maven" do
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/MigrationBundler/20140523123443021/MigrationBundler-20140523123443021.jar")
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/MigrationBundler-20140523123443021.jar")
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.1
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-06-26 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor