dba 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +2 -1
- data/dba.gemspec +7 -6
- data/lib/dba/database.rb +1 -5
- data/lib/dba.rb +1 -1
- metadata +24 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74ad1c9318dc8528558d79b8e4705689f883c109724a6f184a392bfab3c3996f
|
4
|
+
data.tar.gz: f344a83c6abd29713f6975ab50fc524cdfa618a2df9be9de990ed8dd3a371ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98370ebd4bc8ee85bd617dbe6bf91d9e641d08ad29a3bc833625f1f3f0f527f622ed5620c43f8c174faa7c57527a38ea2d8ffcf74eef9708f7c33d04d9bd95ac
|
7
|
+
data.tar.gz: 255c954574e9545968238a5c7ddb2fd6fc11bad9379792f1b58dc0ee2e4d15591134d7be85f77b2d17d32d62b5e598261935a4cbc65d16d0796a93b4b2d2a0cd
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,7 @@ You can connect to any database supported by [sequel](https://rubygems.org/gems/
|
|
18
18
|
$ dba
|
19
19
|
Usage: dba COMMAND
|
20
20
|
|
21
|
+
dba diagram [PATH]
|
21
22
|
dba diff URL
|
22
23
|
dba dump TABLE EXTENSION
|
23
24
|
dba edit TABLE IDENTIFIER
|
@@ -28,7 +29,7 @@ You can connect to any database supported by [sequel](https://rubygems.org/gems/
|
|
28
29
|
dba sample TABLE [COLUMN]
|
29
30
|
dba schema [TABLE]
|
30
31
|
dba select TABLE COLUMN VALUE
|
31
|
-
dba tables
|
32
|
+
dba tables
|
32
33
|
|
33
34
|
|
34
35
|
## ERROR: could not find database
|
data/dba.gemspec
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'dba'
|
3
|
-
s.version = '2.
|
3
|
+
s.version = '2.4.0'
|
4
4
|
s.license = 'GPL-3.0'
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.authors = ['Tim Craft']
|
7
|
-
s.email = ['
|
7
|
+
s.email = ['email@timcraft.com']
|
8
8
|
s.homepage = 'https://github.com/readysteady/dba'
|
9
9
|
s.description = 'Ruby command line tool for working with development databases'
|
10
10
|
s.summary = 'See description'
|
11
11
|
s.files = Dir.glob('lib/**/*.rb') + %w[CHANGES.md LICENSE.txt README.md dba.gemspec]
|
12
|
-
s.required_ruby_version = '>=
|
13
|
-
s.add_dependency
|
14
|
-
s.add_dependency
|
15
|
-
s.add_dependency
|
12
|
+
s.required_ruby_version = '>= 3.1.0'
|
13
|
+
s.add_dependency 'bigdecimal', '~> 3'
|
14
|
+
s.add_dependency 'pastel', '~> 0'
|
15
|
+
s.add_dependency 'sequel', '~> 5'
|
16
|
+
s.add_dependency 'zeitwerk', '~> 2'
|
16
17
|
s.require_path = 'lib'
|
17
18
|
s.executables = ['dba']
|
18
19
|
end
|
data/lib/dba/database.rb
CHANGED
@@ -75,11 +75,7 @@ module DBA::Database
|
|
75
75
|
def database_config
|
76
76
|
source = ERB.new(File.read(database_config_path)).result
|
77
77
|
|
78
|
-
|
79
|
-
YAML.unsafe_load(source)
|
80
|
-
else
|
81
|
-
YAML.load(source)
|
82
|
-
end
|
78
|
+
YAML.unsafe_load(source)
|
83
79
|
end
|
84
80
|
|
85
81
|
def development_database_args
|
data/lib/dba.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Craft
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bigdecimal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.2'
|
19
|
+
version: '3'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
|
26
|
+
version: '3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pastel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
33
41
|
- !ruby/object:Gem::Dependency
|
34
42
|
name: sequel
|
35
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,22 +53,22 @@ dependencies:
|
|
45
53
|
- !ruby/object:Gem::Version
|
46
54
|
version: '5'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
56
|
+
name: zeitwerk
|
49
57
|
requirement: !ruby/object:Gem::Requirement
|
50
58
|
requirements:
|
51
59
|
- - "~>"
|
52
60
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
61
|
+
version: '2'
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
65
|
requirements:
|
58
66
|
- - "~>"
|
59
67
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
68
|
+
version: '2'
|
61
69
|
description: Ruby command line tool for working with development databases
|
62
70
|
email:
|
63
|
-
-
|
71
|
+
- email@timcraft.com
|
64
72
|
executables:
|
65
73
|
- dba
|
66
74
|
extensions: []
|
@@ -112,14 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
120
|
requirements:
|
113
121
|
- - ">="
|
114
122
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
123
|
+
version: 3.1.0
|
116
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
125
|
requirements:
|
118
126
|
- - ">="
|
119
127
|
- !ruby/object:Gem::Version
|
120
128
|
version: '0'
|
121
129
|
requirements: []
|
122
|
-
rubygems_version: 3.5.
|
130
|
+
rubygems_version: 3.5.22
|
123
131
|
signing_key:
|
124
132
|
specification_version: 4
|
125
133
|
summary: See description
|