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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9e766c4baaefc4065662e1efa4004110d2ba16eb4da7021cffbf1bea8b83b77
4
- data.tar.gz: e131a2fccc5ba9db7b992c58fe42b402fcc59651d7c52935cb8a2f6b543d0c85
3
+ metadata.gz: 173b8f7db8518c9d6da88feff00ca21cb58bd9d764b5e856ac50487e3499b9e4
4
+ data.tar.gz: e739f43a3388d185467e14d3dd1259fe55856dd3acc05018c97d65916b9032b6
5
5
  SHA512:
6
- metadata.gz: 2f9b6cb8eb4446380a744db6abb19f15a040ab6a2d0bbca5d54454d46ec308d687d2e4a11ddabc51c37bccbe0033cbf43882dcb69fedc4e9398cd09071df88a3
7
- data.tar.gz: c36974d65e12a0b4020cf1dfe5e9303dc8bba71aa3082ff675a002fb6d68469af7da4e5774d67c233414755cb8a068fb8f7dd46d2d3ac8069ec963c515d9bb3d
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 teh Capistrano config. Previously, it would choose "production" for a deploy to the production stage, and master/main else.
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
@@ -7,7 +7,6 @@ gem 'aruba', '< 1' # Drops support for Ruby 2.2-
7
7
  gem 'rake', '< 13' # Drops support for Ruby 2.1
8
8
  gem 'rspec'
9
9
  gem 'abbrev' # Dependency of Highline
10
- gem 'highline'
11
10
  gem 'parallel_tests'
12
11
  gem 'launchy'
13
12
  gem 'pry-byebug'
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (12.2.0)
4
+ geordi (12.4.0)
5
+ highline
5
6
  thor (~> 1)
6
7
 
7
8
  GEM
@@ -93,7 +94,6 @@ DEPENDENCIES
93
94
  aruba (< 1)
94
95
  cucumber (~> 9)
95
96
  geordi!
96
- highline
97
97
  launchy
98
98
  parallel_tests
99
99
  pry-byebug
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 (`~/.config/geordi/global.yml`).
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 (`~/.config/geordi/global.yml`).
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
@@ -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
- @global_settings['irb_flags']
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
- use_multiline = if irb_version >= Gem::Version.new('1.2') && ruby_version < Gem::Version.new('3.0')
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 = [use_multiline, Settings.new.irb_flags].join(' ').strip
103
- irb_flags.prepend('-- ') unless irb_flags.empty?
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
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '12.2.0'.freeze
2
+ VERSION = '12.4.0'.freeze
3
3
  end
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.2.0
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-07-03 00:00:00.000000000 Z
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: