prick 0.29.0 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/exe/prick +1 -1
  3. data/lib/{builder → prick/builder}/batch.rb +1 -1
  4. data/lib/{builder → prick/builder}/builder.rb +5 -5
  5. data/lib/{subcommand → prick/subcommand}/prick-build.rb +1 -1
  6. data/lib/{subcommand → prick/subcommand}/prick-clean.rb +1 -1
  7. data/lib/{subcommand → prick/subcommand}/prick-drop.rb +1 -1
  8. data/lib/{subcommand → prick/subcommand}/prick-fox.rb +1 -1
  9. data/lib/{subcommand → prick/subcommand}/prick-make.rb +1 -1
  10. data/lib/{subcommand → prick/subcommand}/prick-setup.rb +1 -1
  11. data/lib/{subcommand → prick/subcommand}/prick-teardown.rb +1 -1
  12. data/lib/prick/version.rb +1 -1
  13. data/lib/prick.rb +22 -22
  14. metadata +40 -41
  15. data/lib/share/init/.prick-context +0 -2
  16. /data/lib/{builder → prick/builder}/node.rb +0 -0
  17. /data/lib/{builder → prick/builder}/node_pool.rb +0 -0
  18. /data/lib/{builder → prick/builder}/parser.rb +0 -0
  19. /data/lib/{ext → prick/ext}/expand_variables.rb +0 -0
  20. /data/lib/{local → prick/local}/ansi.rb +0 -0
  21. /data/lib/{local → prick/local}/command.rb +0 -0
  22. /data/lib/{local → prick/local}/git.rb +0 -0
  23. /data/lib/{local → prick/local}/timer.rb +0 -0
  24. /data/lib/{share → prick/share}/init/.gitignore +0 -0
  25. /data/lib/{share → prick/share}/init/.rspec +0 -0
  26. /data/lib/{share → prick/share}/init/migration/.keep +0 -0
  27. /data/lib/{share → prick/share}/init/prick.yml +0 -0
  28. /data/lib/{share → prick/share}/init/schema/.keep +0 -0
  29. /data/lib/{share → prick/share}/init/schema/build.yml +0 -0
  30. /data/lib/{share → prick/share}/init/schema/prick/.keep +0 -0
  31. /data/lib/{share → prick/share}/init/schema/prick/build.yml +0 -0
  32. /data/lib/{share → prick/share}/init/schema/prick/data.sql +0 -0
  33. /data/lib/{share → prick/share}/init/schema/prick/tables.sql +0 -0
  34. /data/lib/{share → prick/share}/init/schema/public/.keep +0 -0
  35. /data/lib/{share → prick/share}/init/spec/prick_helper.rb +0 -0
  36. /data/lib/{share → prick/share}/init/spec/prick_spec.rb +0 -0
  37. /data/lib/{share → prick/share}/init/spec/spec_helper.rb +0 -0
  38. /data/lib/{share → prick/share}/migrate/migration/build.yml +0 -0
  39. /data/lib/{share → prick/share}/migrate/migration/diff.after-tables.sql +0 -0
  40. /data/lib/{share → prick/share}/migrate/migration/diff.before-tables.sql +0 -0
  41. /data/lib/{share → prick/share}/migrate/migration/diff.tables.sql +0 -0
  42. /data/lib/{subcommand → prick/subcommand}/prick-create.rb +0 -0
  43. /data/lib/{subcommand → prick/subcommand}/prick-init.rb +0 -0
  44. /data/lib/{subcommand → prick/subcommand}/prick-migrate.rb +0 -0
  45. /data/lib/{subcommand → prick/subcommand}/prick-release.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec055b6544046998736dddf822f2ff0563c6e16deeae039f586ec96651ce5b65
4
- data.tar.gz: 2687ec86827fc0c808a916462b34f7b71ab993fe0d7d5ef5444d4f5775ce91e2
3
+ metadata.gz: 9adeed165a7d8ed45d92f1a77965b3a832253229fb6c9def477e1061b9dbf564
4
+ data.tar.gz: 864f9b07abf66a22e9f40e3220211421474dfac3732f5669946004ab7b0e8cc1
5
5
  SHA512:
6
- metadata.gz: c278a8a151aefeb23c40dc2468fd271e14b45a031f73942453157b3e8789209fa55094bde9d92276fa85c530c204795e8474bd688ccfca139b7945501f373e73
7
- data.tar.gz: 4d2df4c44b4c10e13d89ee584e5c1839b963d5c7bff42f5618c20b66173f540383cf1bc3059670a5af4922c4ad594a5ceaddc617cdbf2f54a60f2c8a96ce4653
6
+ metadata.gz: 053e676f6d9afa514b69b1b9c16d357e48903e84ee04b9c1af8e3351d33a016f2fb10d32f939240dc184b85338f3cface09421311c29308f8b202b04a941f47a
7
+ data.tar.gz: 4fc355dde8d3ef88b2d482cafd95cdc6206913e86ca4d1bdfe0df75a9b30ecc3afe4dd5ec58370ba47fd1150ca19cf27ecb177d53cce1057fd4a4211e294325a
data/exe/prick CHANGED
@@ -13,8 +13,8 @@ begin
13
13
  # Bootsnap.instrumentation = ->(event, path) { puts "#{event} #{path}" }
14
14
  end
15
15
 
16
- require 'prick.rb'
17
16
  require 'shellopts'
17
+ require_relative '../lib/prick.rb'
18
18
 
19
19
  include ShellOpts
20
20
  include Prick
@@ -1,7 +1,7 @@
1
1
  module Prick
2
2
  module Build
3
3
  class BuildBatch
4
- include Timer
4
+ include ::Timer
5
5
 
6
6
  attr_reader :builder
7
7
  forward_to :builder, :conn
@@ -1,9 +1,9 @@
1
- require 'local/command'
1
+ require_relative '../local/command'
2
2
 
3
- require 'builder/node.rb'
4
- require 'builder/node_pool.rb'
5
- require 'builder/batch.rb'
6
- require 'builder/parser.rb'
3
+ require_relative './node.rb'
4
+ require_relative './node_pool.rb'
5
+ require_relative './batch.rb'
6
+ require_relative './parser.rb'
7
7
 
8
8
  include Constrain
9
9
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.build(
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  # Drop users and empty database. This has the same as effect as
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.drop_user(username) # No database so does not cascade
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.fox(database, username, files)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.make(database, username, schema, timer: nil, dump: nil)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.setup(database, username)
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'builder/builder.rb'
3
+ require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.teardown(database, username)
data/lib/prick/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.29.0"
4
+ VERSION = "0.29.2"
5
5
  end
data/lib/prick.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'prick/version.rb'
1
+ require_relative 'prick/version.rb'
2
2
 
3
3
  require 'pg_conn'
4
4
 
@@ -11,18 +11,18 @@ module Prick
11
11
  class Fail < RuntimeError; end
12
12
  end
13
13
 
14
- require 'prick/constants.rb'
15
- require 'ext/expand_variables.rb'
14
+ require_relative 'prick/constants.rb'
15
+ require_relative 'prick/ext/expand_variables.rb'
16
16
 
17
- require 'local/command.rb'
18
- require 'local/git.rb'
19
- require 'local/timer.rb'
20
- require 'local/ansi.rb'
17
+ require_relative 'prick/local/command.rb'
18
+ require_relative 'prick/local/git.rb'
19
+ require_relative 'prick/local/timer.rb'
20
+ require_relative 'prick/local/ansi.rb'
21
21
 
22
- require 'prick/environment.rb'
23
- require 'prick/state.rb'
24
- require 'prick/prick_version.rb'
25
- require 'prick/diff.rb'
22
+ require_relative 'prick/environment.rb'
23
+ require_relative 'prick/state.rb'
24
+ require_relative 'prick/prick_version.rb'
25
+ require_relative 'prick/diff.rb'
26
26
 
27
27
  module Prick
28
28
  module SubCommand
@@ -32,17 +32,17 @@ module Prick
32
32
  end
33
33
  end
34
34
 
35
- require 'subcommand/prick-init.rb'
36
- require 'subcommand/prick-setup.rb'
37
- require 'subcommand/prick-teardown.rb'
38
- require 'subcommand/prick-clean.rb'
39
- require 'subcommand/prick-create.rb'
40
- require 'subcommand/prick-build.rb'
41
- require 'subcommand/prick-make.rb'
42
- require 'subcommand/prick-fox.rb'
43
- require 'subcommand/prick-drop.rb'
44
- require 'subcommand/prick-release.rb'
45
- require 'subcommand/prick-migrate.rb'
35
+ require_relative 'prick/subcommand/prick-init.rb'
36
+ require_relative 'prick/subcommand/prick-setup.rb'
37
+ require_relative 'prick/subcommand/prick-teardown.rb'
38
+ require_relative 'prick/subcommand/prick-clean.rb'
39
+ require_relative 'prick/subcommand/prick-create.rb'
40
+ require_relative 'prick/subcommand/prick-build.rb'
41
+ require_relative 'prick/subcommand/prick-make.rb'
42
+ require_relative 'prick/subcommand/prick-fox.rb'
43
+ require_relative 'prick/subcommand/prick-drop.rb'
44
+ require_relative 'prick/subcommand/prick-release.rb'
45
+ require_relative 'prick/subcommand/prick-migrate.rb'
46
46
 
47
47
  module Prick
48
48
  @state = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.29.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
@@ -182,53 +182,52 @@ files:
182
182
  - bin/setup
183
183
  - doc/build-yml.txt
184
184
  - exe/prick
185
- - lib/builder/batch.rb
186
- - lib/builder/builder.rb
187
- - lib/builder/node.rb
188
- - lib/builder/node_pool.rb
189
- - lib/builder/parser.rb
190
- - lib/ext/expand_variables.rb
191
- - lib/local/ansi.rb
192
- - lib/local/command.rb
193
- - lib/local/git.rb
194
- - lib/local/timer.rb
195
185
  - lib/prick.rb
186
+ - lib/prick/builder/batch.rb
187
+ - lib/prick/builder/builder.rb
188
+ - lib/prick/builder/node.rb
189
+ - lib/prick/builder/node_pool.rb
190
+ - lib/prick/builder/parser.rb
196
191
  - lib/prick/constants.rb
197
192
  - lib/prick/diff.rb
198
193
  - lib/prick/environment.rb
194
+ - lib/prick/ext/expand_variables.rb
195
+ - lib/prick/local/ansi.rb
196
+ - lib/prick/local/command.rb
197
+ - lib/prick/local/git.rb
198
+ - lib/prick/local/timer.rb
199
199
  - lib/prick/prick_version.rb
200
+ - lib/prick/share/init/.gitignore
201
+ - lib/prick/share/init/.rspec
202
+ - lib/prick/share/init/migration/.keep
203
+ - lib/prick/share/init/prick.yml
204
+ - lib/prick/share/init/schema/.keep
205
+ - lib/prick/share/init/schema/build.yml
206
+ - lib/prick/share/init/schema/prick/.keep
207
+ - lib/prick/share/init/schema/prick/build.yml
208
+ - lib/prick/share/init/schema/prick/data.sql
209
+ - lib/prick/share/init/schema/prick/tables.sql
210
+ - lib/prick/share/init/schema/public/.keep
211
+ - lib/prick/share/init/spec/prick_helper.rb
212
+ - lib/prick/share/init/spec/prick_spec.rb
213
+ - lib/prick/share/init/spec/spec_helper.rb
214
+ - lib/prick/share/migrate/migration/build.yml
215
+ - lib/prick/share/migrate/migration/diff.after-tables.sql
216
+ - lib/prick/share/migrate/migration/diff.before-tables.sql
217
+ - lib/prick/share/migrate/migration/diff.tables.sql
200
218
  - lib/prick/state.rb
219
+ - lib/prick/subcommand/prick-build.rb
220
+ - lib/prick/subcommand/prick-clean.rb
221
+ - lib/prick/subcommand/prick-create.rb
222
+ - lib/prick/subcommand/prick-drop.rb
223
+ - lib/prick/subcommand/prick-fox.rb
224
+ - lib/prick/subcommand/prick-init.rb
225
+ - lib/prick/subcommand/prick-make.rb
226
+ - lib/prick/subcommand/prick-migrate.rb
227
+ - lib/prick/subcommand/prick-release.rb
228
+ - lib/prick/subcommand/prick-setup.rb
229
+ - lib/prick/subcommand/prick-teardown.rb
201
230
  - lib/prick/version.rb
202
- - lib/share/init/.gitignore
203
- - lib/share/init/.prick-context
204
- - lib/share/init/.rspec
205
- - lib/share/init/migration/.keep
206
- - lib/share/init/prick.yml
207
- - lib/share/init/schema/.keep
208
- - lib/share/init/schema/build.yml
209
- - lib/share/init/schema/prick/.keep
210
- - lib/share/init/schema/prick/build.yml
211
- - lib/share/init/schema/prick/data.sql
212
- - lib/share/init/schema/prick/tables.sql
213
- - lib/share/init/schema/public/.keep
214
- - lib/share/init/spec/prick_helper.rb
215
- - lib/share/init/spec/prick_spec.rb
216
- - lib/share/init/spec/spec_helper.rb
217
- - lib/share/migrate/migration/build.yml
218
- - lib/share/migrate/migration/diff.after-tables.sql
219
- - lib/share/migrate/migration/diff.before-tables.sql
220
- - lib/share/migrate/migration/diff.tables.sql
221
- - lib/subcommand/prick-build.rb
222
- - lib/subcommand/prick-clean.rb
223
- - lib/subcommand/prick-create.rb
224
- - lib/subcommand/prick-drop.rb
225
- - lib/subcommand/prick-fox.rb
226
- - lib/subcommand/prick-init.rb
227
- - lib/subcommand/prick-make.rb
228
- - lib/subcommand/prick-migrate.rb
229
- - lib/subcommand/prick-release.rb
230
- - lib/subcommand/prick-setup.rb
231
- - lib/subcommand/prick-teardown.rb
232
231
  - prick.environments.yml
233
232
  - prick.gemspec
234
233
  homepage: http://www.nowhere.com/
@@ -1,2 +0,0 @@
1
- database:
2
- username:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes