geordi 12.1.0 → 12.1.2

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: 8b0ad63b0055ae689422b0aab1ccbf95093e010448e609ba98dec160d32120bb
4
- data.tar.gz: bcf3cc151f954a1bc92301b1badc3ce4ccf607a5731b971789b66567cb4b620d
3
+ metadata.gz: 7816d79861151e0a2ea1104ee05c5aac3aeb493868aca61fc6c2022504e8e59a
4
+ data.tar.gz: c315c203219afb756f6f5377cc07b4794e8588f1fb679f9292b4cd467768e064
5
5
  SHA512:
6
- metadata.gz: 0ad4cd385ff82debfbc9cc1efc5475142e2bbe88c6af52925ef681a45679bf51faadbd995bb2cd500118c732187cd8190bd585f6d1ed0315f79a9cccac7c109f
7
- data.tar.gz: 60e6c101c9eed979a55150f4b2c0e2dcc3566e949f168eb921b30ab0dd939c458fecb7349abe4e4f6185deb7eab4a35a9273b92437733132fd4cb23de8ab3d80
6
+ metadata.gz: 552844176d5d9f0eaac6c83f2806456b9645734408f865133d3a8e94d8cd0705ad2504a2d4c706691ea51770c63e8685b4889a377d9ef645244b3c601cea5668
7
+ data.tar.gz: a78a37c05442bb00fdfc6f56a1ec97ab273aed4dc7c3bf422ba0fde5485973972caf6ff5bd0f0deb7d99dde321c014f1359928764608bc44f9f9dd4270d78ad6
@@ -8,7 +8,7 @@ on:
8
8
  - master
9
9
  jobs:
10
10
  test:
11
- runs-on: ubuntu-20.04
11
+ runs-on: ubuntu-24.04
12
12
  strategy:
13
13
  fail-fast: false
14
14
  matrix:
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
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
+ gem 'abbrev' # Dependency of Highline
9
10
  gem 'highline'
10
11
  gem 'parallel_tests'
11
12
  gem 'launchy'
data/Gemfile.lock CHANGED
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (12.1.0)
4
+ geordi (12.1.2)
5
5
  thor (~> 1)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
+ abbrev (0.1.2)
10
11
  addressable (2.7.0)
11
12
  public_suffix (>= 2.0.2, < 5.0)
12
13
  aruba (0.14.14)
@@ -88,6 +89,7 @@ PLATFORMS
88
89
  ruby
89
90
 
90
91
  DEPENDENCIES
92
+ abbrev
91
93
  aruba (< 1)
92
94
  cucumber (~> 9)
93
95
  geordi!
@@ -29,6 +29,7 @@ module Geordi
29
29
  end
30
30
  @mysql_command = decide_mysql_command(extra_flags['mysql'])
31
31
  @postgres_command = decide_postgres_command(extra_flags['postgres'])
32
+ @texteditor = Geordi::Util.get_texteditor
32
33
  end
33
34
 
34
35
  def edit_allowlist(dbtype)
@@ -89,8 +90,7 @@ module Geordi
89
90
  tmp.write("#{line[0]} #{line[1]}\n")
90
91
  end
91
92
  tmp.close
92
- texteditor = Geordi::Util.decide_texteditor
93
- system("#{texteditor} #{tmp.path}")
93
+ system("#{@texteditor} #{tmp.path}")
94
94
  File.open(tmp.path, 'r') do |wl_edited|
95
95
  allowlisted_dbs = []
96
96
  allowlist_storage = File.open(allowlist, 'w')
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'abbrev' # Dependency of Highline
2
3
  require 'highline'
3
4
  require 'geordi/interaction'
4
5
  require 'geordi/util'
@@ -1,3 +1,4 @@
1
+ require 'abbrev' # Dependency of Highline
1
2
  require 'highline'
2
3
  require 'net/http'
3
4
  require 'json'
data/lib/geordi/remote.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'geordi/capistrano_config'
2
2
  require 'geordi/interaction'
3
3
  require 'geordi/util'
4
+ require 'abbrev' # Dependency of Highline
4
5
  require 'highline/import'
5
6
  require 'pathname'
6
7
  require 'fileutils'
@@ -122,7 +122,7 @@ module Geordi
122
122
  end
123
123
 
124
124
  def inquire_linear_api_key
125
- Geordi::Interaction.note 'Create an API key here: https://linear.app/makandra/settings/api'
125
+ Geordi::Interaction.note 'Create a personal API key here: https://linear.app/makandra/settings/account/security'
126
126
  token = Geordi::Interaction.prompt("Please enter the API key:")
127
127
  self.linear_api_key = token
128
128
  Interaction.note("API key stored in #{GLOBAL_SETTINGS_FILE_NAME}.")
data/lib/geordi/util.rb CHANGED
@@ -137,13 +137,12 @@ module Geordi
137
137
  end
138
138
  end
139
139
 
140
- # try to guess user's favorite cli text editor
141
- def decide_texteditor
142
- %w[/usr/bin/editor vi].each do |texteditor|
143
- if cmd_exists?(texteditor) && texteditor.start_with?('$')
144
- return ENV[texteditor[1..-1]]
145
- elsif cmd_exists? texteditor
146
- return texteditor
140
+ def get_texteditor
141
+ %w[/usr/bin/editor vi].find { |c| cmd_exists?(c) }.tap do |editor|
142
+ if editor == '/usr/bin/editor'
143
+ Interaction.note 'Choose text editor with: sudo update-alternatives --config editor'
144
+ elsif editor == nil
145
+ Interaction.fail 'Could not find a text editor.'
147
146
  end
148
147
  end
149
148
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '12.1.0'.freeze
2
+ VERSION = '12.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.0
4
+ version: 12.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-03-05 00:00:00.000000000 Z
10
+ date: 2025-05-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: thor
@@ -109,7 +108,6 @@ metadata:
109
108
  bug_tracker_uri: https://github.com/makandra/geordi/issues
110
109
  changelog_uri: https://github.com/makandra/geordi/blob/master/CHANGELOG.md
111
110
  rubygems_mfa_required: 'true'
112
- post_install_message:
113
111
  rdoc_options: []
114
112
  require_paths:
115
113
  - lib
@@ -124,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
122
  - !ruby/object:Gem::Version
125
123
  version: '0'
126
124
  requirements: []
127
- rubygems_version: 3.1.6
128
- signing_key:
125
+ rubygems_version: 3.6.2
129
126
  specification_version: 4
130
127
  summary: Collection of command line tools we use in our daily work with Ruby, Rails
131
128
  and Linux at makandra.