db_vcs 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f22df6cac64b23c5396db8e1ba55b640b7a4fd5ffc2a55d8f05a7185985ba067
4
- data.tar.gz: 0610b51b4a5ca2025eb8f76b1df56ed12ad4c802be3cbd99a9b00167a6456108
3
+ metadata.gz: fb55ddb3e649b264646638e226964003d16c0479773c08e4131370939eac6b24
4
+ data.tar.gz: 4d85fdbce48d8f469559158ff57e421d19777adcd628cbe98fb9b33c3e65870c
5
5
  SHA512:
6
- metadata.gz: fb51601226cb01d431ec76cfb76d527f5bd4e28134c8c3a075d588ecd1643b81cbdb5adacf4a50af2deded09abb43fe27c2e7e28aa571446091c53dc3f59649f
7
- data.tar.gz: fec6984d43ddbbdafb389153b69d8f2a14139382bcba0debc3ad52e18e6520fd0410ca5743b6f286de1eb52c56d676565269da38b961f0e099d0d3bc0cf34948
6
+ metadata.gz: 33b8d039eb5b6e1c091bf27db3c7b5fed10ba5f3b9808ef207c2af2528ee07b9d01253cdaf7c8665221eb330705bc4eb1b66491ba34bb617582e19429fb6a7f0
7
+ data.tar.gz: 534576bf65ceb406f7c5ca9cf38031614b5c301f58b0d2d5ceca33504059a2bed9c52a0c13c91ce3ed2a501c539da92a0b0a691ad00ac5bba1518a43fbb5349b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Nothing new yet
4
4
 
5
+ ## [1.1.1] - 2022-02-01
6
+
7
+ - Add "db-vcs name" command
8
+
5
9
  ## [1.1.0] - 2022-01-27
6
10
 
7
11
  - Add support of MySQL
data/exe/db-vcs CHANGED
@@ -25,6 +25,8 @@ opt_parser = OptionParser.new do |parser|
25
25
  db-vcs drop --force
26
26
  Drop databases that don't have related branches.
27
27
  db-vcs cleanup
28
+ Get database names of current branch in JSON format.
29
+ db-vcs names
28
30
 
29
31
  TEXT
30
32
 
@@ -91,6 +93,12 @@ when "check"
91
93
  end
92
94
  end
93
95
  end
96
+ when "names"
97
+ names =
98
+ DbVcs.config.environments.map do |env|
99
+ { database: DbVcs::Utils.db_name(env, DbVcs::Utils.current_branch), environment: env }
100
+ end
101
+ puts names.to_json
94
102
  else
95
103
  puts opt_parser.help
96
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DbVcs
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_vcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-27 00:00:00.000000000 Z
11
+ date: 2022-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -163,8 +163,8 @@ licenses:
163
163
  metadata:
164
164
  allowed_push_host: https://rubygems.org
165
165
  homepage_uri: https://github.com/intale/db_vcs
166
- source_code_uri: https://github.com/intale/vcs_db/tree/v1.1.0
167
- changelog_uri: https://github.com/intale/vcs_db/blob/v1.1.0/CHANGELOG.md
166
+ source_code_uri: https://github.com/intale/vcs_db/tree/v1.1.1
167
+ changelog_uri: https://github.com/intale/vcs_db/blob/v1.1.1/CHANGELOG.md
168
168
  post_install_message:
169
169
  rdoc_options: []
170
170
  require_paths: