prick 0.6.0 → 0.7.0

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
  SHA256:
3
- metadata.gz: d1acbb39706f5c58e4ef47230fa18cea7fb16d3c15c3fdc500624b859b4328bc
4
- data.tar.gz: 9853c05b7f3717d0c12e68595f0dd945d95d84f372b7d438efe222ba2388e62a
3
+ metadata.gz: dd62ad39d6f79354d9eb4e68e102cbe2fa45c3c83f3bb670bb67cc91faab2b6c
4
+ data.tar.gz: 1802956bd55eafd32b16ff2d473e7b8c4f22ffaa2526ab83afb1c8d271b3fe37
5
5
  SHA512:
6
- metadata.gz: f3ad4787717d1f9c3a1eb6d727dbfd9b5a22b0a13c22951d25a757ead4bae71831ba35d26dc2dbec5b68d826c3469c44eded315dade0de4f6819e6c4193a7389
7
- data.tar.gz: a630950080794df280914d7980095827010ae717ea14262a4dc4a95b25af2fbbb50a4116d52fb912461a1a03aa9be910ad6a115857ba5fbe70cb20b1d977aa87
6
+ metadata.gz: c8b1553cba9e5afe792b1f3119ffb9b85e23626d830b752dc98ee5bd28e4c7eeaf8e7b50acb52cfe9e32dcf935d8dcd99694bf2d1d29ebd830c1a9abcb852f38
7
+ data.tar.gz: 3a189a2dff6750afc58f01189dc86fd671b605f5281e17d725607483e0d2f24603f54cc9071145dcfa681109d971da8736a5e81be454b3b1d3d3ee055060f92f
@@ -1,6 +1,4 @@
1
1
 
2
- #require "prick/ensure.rb"
3
-
4
2
  module Prick
5
3
  class Database
6
4
  attr_reader :name
data/lib/prick/program.rb CHANGED
@@ -151,7 +151,7 @@ module Prick
151
151
 
152
152
  def prepare_release(fork)
153
153
  project.prepare_release(fork)
154
- enda
154
+ end
155
155
 
156
156
  def prepare_feature(name)
157
157
  raise NotYet
data/lib/prick/rdbms.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'prick/command.rb'
2
- #require 'prick/ensure.rb'
3
2
 
4
3
  require 'csv'
5
4
 
@@ -133,16 +132,6 @@ EOF
133
132
  data_opt = (data ? "" : "--schema-only")
134
133
  Command.command "pg_dump --no-owner #{data_opt} #{db} | gzip --to-stdout >#{file}"
135
134
  end
136
-
137
- private
138
- @ensure_states = {
139
- exist_user: [:create_user, :drop_user],
140
- exist_database: [
141
- lambda { |this, db, user| this.ensure_state(:exist_user, user) },
142
- lambda { |this, db, user| this.create_database(db, owner: user) },
143
- :drop_database
144
- ]
145
- }
146
135
  end
147
136
  end
148
137
 
data/lib/prick/schema.rb CHANGED
@@ -7,7 +7,7 @@ module Prick
7
7
  BUILD_SQL_FILE = BUILD_BASE_NAME + ".sql"
8
8
  BUILD_YML_FILE = BUILD_BASE_NAME + ".yml"
9
9
 
10
- # Note this models the SCHEMAS_DIR directory, not a database schema
10
+ # Note this models the SCHEMA_DIR directory, not a database schema
11
11
  class Schema
12
12
  def yml_file() SchemaBuilder.yml_file(SCHEMA_DIR) end
13
13
 
data/lib/prick/version.rb CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Required by gem
6
6
  module Prick
7
- VERSION = "0.6.0"
7
+ VERSION = "0.7.0"
8
8
  end
9
9
 
10
10
  # Project related code starts here
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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen