geordi 12.2.0 → 12.4.0
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 +13 -1
- data/Gemfile +0 -1
- data/Gemfile.lock +2 -2
- data/README.md +6 -1
- data/geordi.gemspec +1 -0
- data/lib/geordi/commands/console.rb +7 -1
- data/lib/geordi/settings.rb +6 -2
- data/lib/geordi/util.rb +9 -4
- data/lib/geordi/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173b8f7db8518c9d6da88feff00ca21cb58bd9d764b5e856ac50487e3499b9e4
|
4
|
+
data.tar.gz: e739f43a3388d185467e14d3dd1259fe55856dd3acc05018c97d65916b9032b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e2d3897e290d2afa0d8916779ff28fbbd72b692c5ff55a43c586364cca86a2b389c7375cb03beb1ddfdd31ee9973a25cfb8e55215bf59398c3ae9bca7e55580
|
7
|
+
data.tar.gz: 7cbc01ebe625752e6f249d84d58810afad0aec51a669101dcd88bd9026011ab324e8d3ea74682b93c24661bf167ede96217d148509314b35fb5f8b749fd9f55b
|
data/CHANGELOG.md
CHANGED
@@ -10,10 +10,22 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
10
10
|
### Breaking changes
|
11
11
|
|
12
12
|
|
13
|
+
## 12.4.0 2025-08-29
|
14
|
+
|
15
|
+
### Compatible changes
|
16
|
+
+ `geordi console` will now also take irb_flags from the local config file into account. These will have precedence over the global config file and flags automatically set by geordi.
|
17
|
+
|
18
|
+
|
19
|
+
## 12.3.0 2025-08-04
|
20
|
+
|
21
|
+
### Compatible changes
|
22
|
+
* Add highline as a runtime dependency
|
23
|
+
|
24
|
+
|
13
25
|
## 12.2.0 2025-07-03
|
14
26
|
|
15
27
|
### Compatible changes
|
16
|
-
* `geordi deploy` will now respect the configured deploy branch from
|
28
|
+
* `geordi deploy` will now respect the configured deploy branch from the Capistrano config. Previously, it would choose "production" for a deploy to the production stage, and master/main else.
|
17
29
|
|
18
30
|
|
19
31
|
## 12.1.0 2025-05-03
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -95,7 +95,12 @@ Remote: `geordi console staging`
|
|
95
95
|
Selecting the server: `geordi console staging -s` shows a menu with all available
|
96
96
|
servers. When passed a number, directly connects to the selected server.
|
97
97
|
|
98
|
-
IRB flags can be given as `irb_flags: '...'` in the global Geordi config file
|
98
|
+
IRB flags can be given as `irb_flags: '...'` in the global or local Geordi config file
|
99
|
+
(`~/.config/geordi/global.yml` / `./.geordi.yml`). If you define irb_flags in both files, the local config file will be
|
100
|
+
used. For IRB >=1.2 in combination with Ruby <3 geordi automatically sets the `--nomultiline` flag, to prevent slow
|
101
|
+
pasting. You can override this behavior by setting `--multiline` in the global config file or by defining `irb_flags`
|
102
|
+
in the local config file. The latter will always turn off the automatic behavior, even if you don't set any values for
|
103
|
+
the irb_flags key.
|
99
104
|
|
100
105
|
**Options**
|
101
106
|
- `-s, --select-server=[SERVER_NUMBER]`: Select a server to connect to
|
data/geordi.gemspec
CHANGED
@@ -30,5 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'thor', '~> 1'
|
33
|
+
spec.add_runtime_dependency 'highline'
|
33
34
|
# Development dependencies are defined in the Gemfile (therefore no `spec.add_development_dependency` directives)
|
34
35
|
end
|
@@ -7,7 +7,13 @@ Remote: `geordi console staging`
|
|
7
7
|
Selecting the server: `geordi console staging -s` shows a menu with all available
|
8
8
|
servers. When passed a number, directly connects to the selected server.
|
9
9
|
|
10
|
-
IRB flags can be given as `irb_flags: '...'` in the global Geordi config file
|
10
|
+
IRB flags can be given as `irb_flags: '...'` in the global or local Geordi config file
|
11
|
+
(`~/.config/geordi/global.yml` / `./.geordi.yml`). If you define irb_flags in both files, the local config file will be
|
12
|
+
used. For IRB >=1.2 in combination with Ruby <3 geordi automatically sets the `--nomultiline` flag, to prevent slow
|
13
|
+
pasting. You can override this behavior by setting `--multiline` in the global config file or by defining `irb_flags`
|
14
|
+
in the local config file. The latter will always turn off the automatic behavior, even if you don't set any values for
|
15
|
+
the irb_flags key.
|
16
|
+
|
11
17
|
LONGDESC
|
12
18
|
|
13
19
|
# This option is duplicated in shelll.rb
|
data/lib/geordi/settings.rb
CHANGED
@@ -16,7 +16,7 @@ module Geordi
|
|
16
16
|
linear_team_ids
|
17
17
|
].freeze
|
18
18
|
|
19
|
-
ALLOWED_LOCAL_SETTINGS = %w[ linear_team_ids ].freeze
|
19
|
+
ALLOWED_LOCAL_SETTINGS = %w[ linear_team_ids irb_flags ].freeze
|
20
20
|
|
21
21
|
SETTINGS_WARNED = 'GEORDI_INVALID_SETTINGS_WARNED'
|
22
22
|
|
@@ -26,7 +26,11 @@ module Geordi
|
|
26
26
|
|
27
27
|
# Global settings
|
28
28
|
def irb_flags
|
29
|
-
@
|
29
|
+
if @local_settings.key? 'irb_flags'
|
30
|
+
[@local_settings['irb_flags'].to_s, :local]
|
31
|
+
elsif @global_settings.key? 'irb_flags'
|
32
|
+
[@global_settings['irb_flags'].to_s, :global]
|
33
|
+
end
|
30
34
|
end
|
31
35
|
|
32
36
|
def linear_api_key
|
data/lib/geordi/util.rb
CHANGED
@@ -94,13 +94,18 @@ module Geordi
|
|
94
94
|
elsif gem_major_version('rails') == 3
|
95
95
|
"#{binstub_or_fallback('rails')} console #{environment}"
|
96
96
|
else
|
97
|
-
|
97
|
+
|
98
|
+
irb_flags_from_config, source = Settings.new.irb_flags
|
99
|
+
irb_flags = ""
|
100
|
+
|
101
|
+
if irb_version >= Gem::Version.new('1.2') && ruby_version < Gem::Version.new('3.0') && (source != :local)
|
98
102
|
Interaction.note 'Using --nomultiline switch for faster pasting'
|
99
|
-
'--nomultiline'
|
103
|
+
irb_flags << '--nomultiline '
|
100
104
|
end
|
101
105
|
|
102
|
-
irb_flags
|
103
|
-
|
106
|
+
irb_flags << irb_flags_from_config if irb_flags_from_config
|
107
|
+
|
108
|
+
irb_flags.prepend('-- ').strip! unless irb_flags.empty?
|
104
109
|
|
105
110
|
"#{binstub_or_fallback('rails')} console -e #{environment} #{irb_flags}"
|
106
111
|
end
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: highline
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::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'
|
27
41
|
description: Collection of command line tools we use in our daily work with Ruby,
|
28
42
|
Rails and Linux at makandra.
|
29
43
|
email:
|