killbill 7.0.4 → 7.0.5
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/Gemfile.lock +1 -1
- data/NEWS +3 -0
- data/lib/killbill/rake_task.rb +9 -7
- data/lib/killbill/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9a619e496d07d2868bb2f1ae17f2f67ed024515
|
4
|
+
data.tar.gz: 862643c69bbc538adf5cd263d2699c23b91dc700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852589c771737c901723e868cd43f03716f8e62273fc789bf73980787f155c24811a6918bffb8a1056df062b7a011ddbfe41b1df5206999c2d63be24d36006a2
|
7
|
+
data.tar.gz: 14d2be2b5ba3488f5d79a4702c2a0eaf703233cfaa1cfc9cdb6dc29309f50c74473d9dd73794a4e4e3932b6e40c53f4f85a6c423594b5d9520aa9a2aa888259c
|
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
data/lib/killbill/rake_task.rb
CHANGED
@@ -66,8 +66,6 @@ module Killbill
|
|
66
66
|
# Staging area to install gem dependencies
|
67
67
|
# Note the Killbill friendly structure (which we will keep in the tarball)
|
68
68
|
@plugin_gem_target_dir = @plugin_target_dir.join(@gems_dir_path)
|
69
|
-
|
70
|
-
@migration = Killbill::Migration.new(plugin_name || ENV['PLUGIN_NAME'])
|
71
69
|
end
|
72
70
|
|
73
71
|
attr_reader :base
|
@@ -254,27 +252,27 @@ module Killbill
|
|
254
252
|
namespace :db do
|
255
253
|
desc 'Display the current migration version'
|
256
254
|
task :current_version do
|
257
|
-
puts
|
255
|
+
puts migration.current_version
|
258
256
|
end
|
259
257
|
|
260
258
|
desc 'Display the migration SQL'
|
261
259
|
task :sql_for_migration do
|
262
|
-
puts
|
260
|
+
puts migration.sql_for_migration.join("\n")
|
263
261
|
end
|
264
262
|
|
265
263
|
desc 'Run all migrations'
|
266
264
|
task :migrate do
|
267
|
-
|
265
|
+
migration.migrate
|
268
266
|
end
|
269
267
|
|
270
268
|
desc 'Dump the current schema structure (Ruby)'
|
271
269
|
task :ruby_dump do
|
272
|
-
puts
|
270
|
+
puts migration.ruby_dump.string
|
273
271
|
end
|
274
272
|
|
275
273
|
desc 'Dump the current schema structure (SQL)'
|
276
274
|
task :sql_dump do
|
277
|
-
puts
|
275
|
+
puts migration.sql_dump.string
|
278
276
|
end
|
279
277
|
end
|
280
278
|
end
|
@@ -282,6 +280,10 @@ module Killbill
|
|
282
280
|
|
283
281
|
private
|
284
282
|
|
283
|
+
def migration
|
284
|
+
@migration ||= Killbill::Migration.new(@plugin_name || ENV['PLUGIN_NAME'])
|
285
|
+
end
|
286
|
+
|
285
287
|
def plugin_path(plugins_dir, versioned = true)
|
286
288
|
plugin_path = plugins_dir.join(name)
|
287
289
|
versioned ? plugin_path.join(version.to_s) : plugin_path
|
data/lib/killbill/version.rb
CHANGED