geordi 9.3.1 → 9.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: 53000c0f7a45eb1abdbda692ef86f6add4b03a526a663d2080ae893d739e5e79
4
- data.tar.gz: 92f23443438253a43960d00b726646a57e1e9a2c413f167bbce1c4d747addd99
3
+ metadata.gz: 97ef2212b1a8f95156b775dda16fc0db73b6cee054c2a87909c4e66e3e016061
4
+ data.tar.gz: 8e8db7c3128364ce377a8dfc0370f56cff50cea97224961b29b7723e7d9b1ea7
5
5
  SHA512:
6
- metadata.gz: 37e18e79036a4d13cec85463458f2be6e1752485f747d10873c8a8a8ae29be92580233bb895d8fb73c059d0905cc2a646db34d5fd163228d66d59a215f4c4757
7
- data.tar.gz: 9a58e6558bcd390d1f1749764fef54c6b590e3c67899256797afaaf9ebcb4efc10d5cfd91fcbdda113ed2ed8301903d5ecbbf16dc8c1c5a6c8c04f219d1a03a7
6
+ metadata.gz: fff144b88f312d7152cab557932d7499205aa5ac7469b9142da7ae740e9c81bc25f77633fab010bc84379aef5a18c29cb7a118783a235a9e4f272409b101239f
7
+ data.tar.gz: f4486cd4786412a46d7bd98e22d312fcb998f87d98c6948ca6ce3605f5f882127b53d381caea050d58adfe2bc358d081eab99016132bf61dcf621cce7be892bb
data/CHANGELOG.md CHANGED
@@ -6,11 +6,23 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
  ## Unreleased
7
7
 
8
8
  ### Compatible changes
9
- * Use YAML.safe_load in dumple and allow aliases
10
9
 
11
10
  ### Breaking changes
12
11
 
13
12
 
13
+ ## 9.4.0 2022-12-20
14
+
15
+ ### Compatible changes
16
+ * `branch` command: Git user initials are now stored in config file
17
+ * `console` command: Disable irb multiline mode in order to fix ultra-slow pasting performance
18
+
19
+
20
+ ## 9.3.1 2022-06-07
21
+
22
+ ### Compatible changes
23
+ * Use YAML.safe_load in dumple and allow aliases
24
+
25
+
14
26
  ## 9.3.0 2022-04-26
15
27
 
16
28
  ### Compatible changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (9.3.1)
4
+ geordi (9.4.0)
5
5
  thor (~> 1)
6
6
 
7
7
  GEM
@@ -165,4 +165,4 @@ DEPENDENCIES
165
165
  tracker_api
166
166
 
167
167
  BUNDLED WITH
168
- 2.3.6
168
+ 2.3.25
data/README.md CHANGED
@@ -21,16 +21,12 @@ run tests afterwards.
21
21
 
22
22
  You can always run `geordi help <command>` to quickly look up command help.
23
23
 
24
- ### `geordi apache-site VIRTUAL_HOST`
25
- Enable the given virtual host, disabling all others.
26
-
27
-
28
24
  ### `geordi branch`
29
25
  Check out a feature branch based on a story from Pivotal Tracker.
30
26
 
31
27
  Example: `geordi branch`
32
28
 
33
- On the first execution we ask for your Pivotal Tracker API token. It will be
29
+ On the first execution we ask for your Pivotal Tracker API token and for your Git user initials. Both will be
34
30
  stored in `~/.config/geordi/global.yml`.
35
31
 
36
32
  **Options**
data/geordi.gemspec CHANGED
@@ -13,7 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.description = spec.summary
14
14
  spec.homepage = 'https://makandra.com'
15
15
  spec.license = 'MIT'
16
- spec.metadata = { 'rubygems_mfa_required' => 'true' }
16
+ spec.metadata = {
17
+ 'source_code_uri' => 'https://github.com/makandra/geordi',
18
+ 'bug_tracker_uri' => 'https://github.com/makandra/geordi/issues',
19
+ 'changelog_uri' => 'https://github.com/makandra/geordi/blob/master/CHANGELOG.md',
20
+ 'rubygems_mfa_required' => 'true',
21
+ }
17
22
 
18
23
  # Specify which files should be added to the gem when it is released.
19
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,4 +1,4 @@
1
- desc 'apache-site VIRTUAL_HOST', 'Enable the given virtual host, disabling all others'
1
+ desc 'apache-site VIRTUAL_HOST', 'Enable the given virtual host, disabling all others', hide: true
2
2
  def apache_site(*args)
3
3
  site = args.shift
4
4
  old_cwd = Dir.pwd
@@ -2,7 +2,7 @@ desc 'branch', 'Check out a feature branch based on a story from Pivotal Tracker
2
2
  long_desc <<-LONGDESC
3
3
  Example: `geordi branch`
4
4
 
5
- On the first execution we ask for your Pivotal Tracker API token. It will be
5
+ On the first execution we ask for your Pivotal Tracker API token and for your Git user initials. Both will be
6
6
  stored in `~/.config/geordi/global.yml`.
7
7
  LONGDESC
8
8
 
data/lib/geordi/gitpt.rb CHANGED
@@ -161,6 +161,11 @@ module Geordi
161
161
  end
162
162
 
163
163
  def git_user_initials
164
+ if settings.git_initials
165
+ Interaction.note "Using Git user initials from #{Settings::GLOBAL_SETTINGS_FILE_NAME}"
166
+ return settings.git_initials
167
+ end
168
+
164
169
  stdout_str = if Util.testing?
165
170
  ENV['GEORDI_TESTING_GIT_USERNAME']
166
171
  else
@@ -176,6 +181,7 @@ module Geordi
176
181
  if git_user_initials.nil?
177
182
  Interaction.fail('Could not determine the git user\'s initials.')
178
183
  else
184
+ settings.git_initials = git_user_initials
179
185
  git_user_initials
180
186
  end
181
187
  end
@@ -8,7 +8,7 @@ module Geordi
8
8
  GLOBAL_SETTINGS_FILE_NAME = Util.testing? ? './tmp/global_settings.yml'.freeze : File.join(ENV['HOME'], '.config/geordi/global.yml').freeze
9
9
  LOCAL_SETTINGS_FILE_NAME = Util.testing? ? './tmp/local_settings.yml'.freeze : './.geordi.yml'.freeze
10
10
 
11
- ALLOWED_GLOBAL_SETTINGS = %w[ pivotal_tracker_api_key auto_update_chromedriver pivotal_tracker_project_ids ].freeze
11
+ ALLOWED_GLOBAL_SETTINGS = %w[ pivotal_tracker_api_key auto_update_chromedriver pivotal_tracker_project_ids git_initials].freeze
12
12
  ALLOWED_LOCAL_SETTINGS = %w[ pivotal_tracker_project_ids ].freeze
13
13
 
14
14
  SETTINGS_WARNED = 'GEORDI_INVALID_SETTINGS_WARNED'
@@ -27,6 +27,15 @@ module Geordi
27
27
  save_global_settings
28
28
  end
29
29
 
30
+ def git_initials
31
+ @global_settings['git_initials']
32
+ end
33
+
34
+ def git_initials=(value)
35
+ @global_settings['git_initials'] = value
36
+ save_global_settings
37
+ end
38
+
30
39
  def auto_update_chromedriver
31
40
  @global_settings["auto_update_chromedriver"] || false
32
41
  end
data/lib/geordi/util.rb CHANGED
@@ -85,11 +85,18 @@ module Geordi
85
85
 
86
86
  def console_command(environment)
87
87
  if gem_major_version('rails') == 2
88
- 'script/console ' + environment
88
+ "script/console #{environment}"
89
89
  elsif gem_major_version('rails') == 3
90
90
  "#{binstub_or_fallback('rails')} console #{environment}"
91
91
  else
92
- "#{binstub_or_fallback('rails')} console -e #{environment}"
92
+ "#{binstub_or_fallback('rails')} console -e #{environment} #{use_multiline_flag}"
93
+ end
94
+ end
95
+
96
+ def use_multiline_flag
97
+ if irb_version >= Gem::Version.new('1.2') && ruby_version < Gem::Version.new('3.0')
98
+ Interaction.note 'Using --nomultiline switch for faster pasting'
99
+ '-- --nomultiline'
93
100
  end
94
101
  end
95
102
 
@@ -182,6 +189,20 @@ module Geordi
182
189
  !!ENV['GEORDI_TESTING']
183
190
  end
184
191
 
192
+ def irb_version
193
+ version_string = if testing?
194
+ ENV['GEORDI_TESTING_IRB_VERSION']
195
+ else
196
+ `irb --version`[/irb (\d\.\d\.\d)/, 1]
197
+ end
198
+
199
+ Gem::Version.new(version_string)
200
+ end
201
+
202
+ def ruby_version
203
+ version_string = testing? ? ENV['GEORDI_TESTING_RUBY_VERSION'] : RUBY_VERSION
204
+ Gem::Version.new(version_string)
205
+ end
185
206
  end
186
207
  end
187
208
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '9.3.1'.freeze
2
+ VERSION = '9.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: 9.3.1
4
+ version: 9.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: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -97,6 +97,9 @@ homepage: https://makandra.com
97
97
  licenses:
98
98
  - MIT
99
99
  metadata:
100
+ source_code_uri: https://github.com/makandra/geordi
101
+ bug_tracker_uri: https://github.com/makandra/geordi/issues
102
+ changelog_uri: https://github.com/makandra/geordi/blob/master/CHANGELOG.md
100
103
  rubygems_mfa_required: 'true'
101
104
  post_install_message: 'Support for sequential running of integration tests tagged
102
105
  with @solo has been dropped.
@@ -116,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
119
  - !ruby/object:Gem::Version
117
120
  version: '0'
118
121
  requirements: []
119
- rubygems_version: 3.2.3
122
+ rubygems_version: 3.3.26
120
123
  signing_key:
121
124
  specification_version: 4
122
125
  summary: Collection of command line tools we use in our daily work with Ruby, Rails