umbrellio-sequel-plugins 0.8.0.73 → 0.9.0.79
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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +1 -1
- data/lib/umbrellio_sequel_plugins/rails_db_command.rb +10 -1
- data/lib/umbrellio_sequel_plugins.rb +2 -1
- data/umbrellio-sequel-plugins.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 044270ad33b6b7a80b9e35be0f3b8d3765dc83392b9188d4f2605e897d974783
|
4
|
+
data.tar.gz: 28bf7d0755b796edb711c43adbf3a5133aecde56f1628b0462836f87ec9409ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b92bc0504e24e5f61b9039b7e7af033105a36da5f21734de5eb77c81ee2564b7e77cdbcf9d860a1239123ee026f67c84c6f87f7c47325feb7dcb7927ec75289
|
7
|
+
data.tar.gz: f18cdf48d4dd3aacbd896e94f44f910b448bdea1813e2a0ae8b393e11d10cb244720f6b0ea2285067dda3b577ee7e6488d7fcda786b94e668871616c1b6d0738
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [0.
|
4
|
+
## [0.9.0] 2022-07-01
|
5
5
|
### Added
|
6
|
+
- Add `--server` option to `rails dbconsole` command.
|
6
7
|
|
8
|
+
## [0.8.0] 2022-06-29
|
9
|
+
### Added
|
7
10
|
- `rails dbconsole` command support for Sequel (also aliased as `rails db`) for easy access to the DB console. See the README for installation instructions.
|
8
11
|
|
9
12
|
## [0.7.0] 2022-06-24
|
data/Gemfile.lock
CHANGED
@@ -4,6 +4,8 @@ require "rails/command"
|
|
4
4
|
require "rails/commands/dbconsole/dbconsole_command"
|
5
5
|
|
6
6
|
class Rails::Command::DbconsoleCommand < Rails::Command::Base
|
7
|
+
class_option :server, type: :string, desc: "Specifies the server to use."
|
8
|
+
|
7
9
|
def perform
|
8
10
|
require "rake"
|
9
11
|
Rake.with_application(&:load_rakefile) # Needed to initialize Rails.application
|
@@ -29,7 +31,14 @@ class Rails::DBConsole
|
|
29
31
|
SequelRails.configuration = sequel_configuration.merge!(raw: rails_db_config)
|
30
32
|
|
31
33
|
storage = SequelRails::Storage.adapter_for(Rails.env)
|
32
|
-
|
34
|
+
config = storage.config.with_indifferent_access
|
35
|
+
|
36
|
+
if @options[:server]
|
37
|
+
server_config = config.fetch(:servers).fetch(@options[:server])
|
38
|
+
config.merge!(server_config)
|
39
|
+
end
|
40
|
+
|
41
|
+
@configuration_hash = config
|
33
42
|
end
|
34
43
|
|
35
44
|
def adapter
|
@@ -4,7 +4,7 @@ lib = File.expand_path("lib", __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
gem_version = "0.
|
7
|
+
gem_version = "0.9.0"
|
8
8
|
|
9
9
|
if ENV.fetch("PUBLISH_JOB", nil)
|
10
10
|
release_version = "#{gem_version}.#{ENV.fetch("GITHUB_RUN_NUMBER")}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: umbrellio-sequel-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Umbrellio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|