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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da758f6bcc3df6dac6998bebc89cbe8d9de6e50a318bb1a0b471336df4a219e3
4
- data.tar.gz: 0a20d9f33e0930b9dde939ac3edea265e74a95a92a5c9dbdaa68165c963158f8
3
+ metadata.gz: 74ad1c9318dc8528558d79b8e4705689f883c109724a6f184a392bfab3c3996f
4
+ data.tar.gz: f344a83c6abd29713f6975ab50fc524cdfa618a2df9be9de990ed8dd3a371ebf
5
5
  SHA512:
6
- metadata.gz: c8b210d99644562b7d1df35058e04c3e79542058ce4d46d5eddf5575b5164c8d533c8507fd33ff2e58b1ecfad15d935f471144b047924d26cf26464ea41e01cf
7
- data.tar.gz: d95737e82ce807531b6263bdb0219937ac942ed1d886bea6f1c13e12d9679dd14de12dbb675add906280f96ae5bb455e0f8e92eaf76b902dfd2f495a30ea48a0
6
+ metadata.gz: 98370ebd4bc8ee85bd617dbe6bf91d9e641d08ad29a3bc833625f1f3f0f527f622ed5620c43f8c174faa7c57527a38ea2d8ffcf74eef9708f7c33d04d9bd95ac
7
+ data.tar.gz: 255c954574e9545968238a5c7ddb2fd6fc11bad9379792f1b58dc0ee2e4d15591134d7be85f77b2d17d32d62b5e598261935a4cbc65d16d0796a93b4b2d2a0cd
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 2.4.0
2
+
3
+ * **Required ruby version is now 3.1.0**
4
+
5
+ * Added bigdecimal gem dependency
6
+
7
+
1
8
  # 2.3.0
2
9
 
3
10
  * Added diagram command for generating diagrams with Graphviz, DBML, or PlantUML
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.0'
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 = ['mail@timcraft.com']
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 = '>= 2.5.0'
13
- s.add_dependency('zeitwerk', '~> 2', '>= 2.2')
14
- s.add_dependency('sequel', '~> 5')
15
- s.add_dependency('pastel', '~> 0')
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
- if YAML.respond_to?(:unsafe_load)
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
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2019-2024 TIMCRAFT
1
+ # Copyright (c) 2019-2025 TIMCRAFT
2
2
  #
3
3
  # This program is free software: you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
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.3.0
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: 2024-08-27 00:00:00.000000000 Z
11
+ date: 2025-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: zeitwerk
14
+ name: bigdecimal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2'
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: '2'
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: '2.2'
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: pastel
56
+ name: zeitwerk
49
57
  requirement: !ruby/object:Gem::Requirement
50
58
  requirements:
51
59
  - - "~>"
52
60
  - !ruby/object:Gem::Version
53
- version: '0'
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: '0'
68
+ version: '2'
61
69
  description: Ruby command line tool for working with development databases
62
70
  email:
63
- - mail@timcraft.com
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: 2.5.0
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.11
130
+ rubygems_version: 3.5.22
123
131
  signing_key:
124
132
  specification_version: 4
125
133
  summary: See description