hanami-db_schema_dump 0.1.0 → 0.1.1

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: d40ad347315619f4f1bc05c3dc032e7012a3117489f3c1cf99e37ddb114d04ea
4
- data.tar.gz: 6856869d485343bfedff2060301e6bf82bb68ad3a48b0c284233bced3dcc0b2d
3
+ metadata.gz: bf68bc5f6eab003440d2715b18458ac03849278298f1fafd5ee5cf0c687b45f7
4
+ data.tar.gz: 0ea5fc7670c04e075d39cfe1aec3e96c785656ed13f625e98cfc66e42cd7256b
5
5
  SHA512:
6
- metadata.gz: 3626a0c6e650a24838eb6512213f36ad1dc4ae2f015ac7b1e3b07b4c8556db8eb6d53f2ed19bcc0927011db3f86de7db797cc2bf18c771ecbc6b500ae4b51cc6
7
- data.tar.gz: 88c75d9acdf642128852b9c32d87ceca2eeff233517f8df7e0b19ed69f17ee96e3dc2e0b33cfc06c25b41a3b83d8bf1c7f3147fbc4fd835c450931dead07d6ab
6
+ metadata.gz: cc0d6ef0dc329923ad0973f3cfd998e19672a4d70003e30c700ec77060f8d45dc0fcbe8ebe90ed9533715a21ca60487376428599d0cea2cde4fbc4e66cb7b288
7
+ data.tar.gz: 43a64fe5b7b976bfc2dc87af484ee9cf414785639212f03544dee5ceeaea437f2ff6f479a3c9de5615f9aeb3f7fe6e6a2e05c20fa610b68e4b968de02b29c65b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.1
2
+
3
+ - Rename schema dump file to `db/structure.sql`, as Hanami uses `db/schema.sql` for a different purpose.
4
+
1
5
  # 0.1.0
2
6
 
3
7
  - Support PostgreSQL database dump using `pg_dump`.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # hanami-db_schema_dump
2
2
 
3
3
  A Hanami [command-line plugin](https://guides.hanamirb.org/command-line/plugins/) that dumps your PostgreSQL
4
- development database schema into `db/schema.sql` after `hanami db migrate` is executed.
4
+ development database schema into `db/structure.sql` after `hanami db migrate` is executed.
5
5
 
6
6
  ## Installation
7
7
 
@@ -21,7 +21,7 @@ bundle install
21
21
 
22
22
  ## Usage
23
23
 
24
- To update `db/schema.sql`, run:
24
+ To update `db/structure.sql`, run:
25
25
 
26
26
  ```sh
27
27
  bundle exec hanami db migrate
@@ -6,9 +6,9 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Huiming Teo"]
7
7
  spec.email = ["teohuiming@gmail.com"]
8
8
 
9
- spec.summary = %q{Hanami command-line plugin that dumps PostgreSQL db schema into `db/schema.sql`.}
9
+ spec.summary = %q{Hanami command-line plugin that dumps PostgreSQL db schema into `db/structure.sql`.}
10
10
  spec.description = %q{This Hanami command-line plugin dumps your PostgreSQL development database schema
11
- into `db/schema.sql` after `hanami db migrate` is executed.}
11
+ into `db/structure.sql` after `hanami db migrate` is executed.}
12
12
  spec.homepage = "http://github.com/teohm/hanami-db_schema_dump"
13
13
  spec.license = "MIT"
14
14
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
@@ -5,7 +5,7 @@ module Hanami
5
5
  class Command
6
6
  def call(*)
7
7
  if ENV["HANAMI_ENV"] == "development"
8
- system("pg_dump -s --no-owner --no-privileges #{ENV.fetch('DATABASE_URL')} > db/schema.sql")
8
+ system("pg_dump -s --no-owner --no-privileges #{ENV.fetch('DATABASE_URL')} > db/structure.sql")
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Hanami
2
2
  module DbSchemaDump
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-db_schema_dump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huiming Teo
@@ -12,7 +12,7 @@ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  This Hanami command-line plugin dumps your PostgreSQL development database schema
15
- into `db/schema.sql` after `hanami db migrate` is executed.
15
+ into `db/structure.sql` after `hanami db migrate` is executed.
16
16
  email:
17
17
  - teohuiming@gmail.com
18
18
  executables: []
@@ -57,5 +57,5 @@ requirements: []
57
57
  rubygems_version: 3.1.2
58
58
  signing_key:
59
59
  specification_version: 4
60
- summary: Hanami command-line plugin that dumps PostgreSQL db schema into `db/schema.sql`.
60
+ summary: Hanami command-line plugin that dumps PostgreSQL db schema into `db/structure.sql`.
61
61
  test_files: []