geordi 9.3.1 → 9.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/Gemfile.lock +2 -2
- data/README.md +1 -5
- data/exe/b +1 -2
- data/exe/dumple +1 -1
- data/geordi.gemspec +6 -1
- data/lib/geordi/commands/apache_site.rb +1 -1
- data/lib/geordi/commands/branch.rb +1 -1
- data/lib/geordi/gitpt.rb +6 -0
- data/lib/geordi/settings.rb +13 -4
- data/lib/geordi/util.rb +24 -3
- data/lib/geordi/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acfbd833f5f9da8e6b157b99109fdb1568d496678446b80d23f972e997601fb6
|
4
|
+
data.tar.gz: 4baee0e83ea956375deb9a379ae620e2c27482045e5f1a0b75f2fcc16017de57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b98db037dd7d2b647236996c529102e486c30abb7b5037b138db6048ad366a6dfb39d367df8354f3a2a51441eb59382ff908d777bca04a6320efb6ea1fc1562
|
7
|
+
data.tar.gz: 4fd187318f0439a29e1ecf59de2bfebabc3de278b02a82a9b1587e493b11a6d2a24e74f25d702108b3b45b1fd252ad4c1360e66e1399ec034db3684cfce826a6
|
data/CHANGELOG.md
CHANGED
@@ -6,11 +6,30 @@ 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.1 2023-01-09
|
14
|
+
|
15
|
+
### Compatible changes
|
16
|
+
|
17
|
+
- Ruby 3.2 support
|
18
|
+
|
19
|
+
|
20
|
+
## 9.4.0 2022-12-09
|
21
|
+
|
22
|
+
### Compatible changes
|
23
|
+
* `branch` command: Git user initials are now stored in config file
|
24
|
+
* `console` command: Disable irb multiline mode in order to fix ultra-slow pasting performance
|
25
|
+
|
26
|
+
|
27
|
+
## 9.3.1 2022-06-07
|
28
|
+
|
29
|
+
### Compatible changes
|
30
|
+
* Use YAML.safe_load in dumple and allow aliases
|
31
|
+
|
32
|
+
|
14
33
|
## 9.3.0 2022-04-26
|
15
34
|
|
16
35
|
### Compatible changes
|
data/Gemfile.lock
CHANGED
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.
|
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/exe/b
CHANGED
data/exe/dumple
CHANGED
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 = {
|
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.
|
@@ -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.
|
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
|
data/lib/geordi/settings.rb
CHANGED
@@ -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
|
@@ -68,10 +77,10 @@ module Geordi
|
|
68
77
|
global_path = GLOBAL_SETTINGS_FILE_NAME
|
69
78
|
local_path = LOCAL_SETTINGS_FILE_NAME
|
70
79
|
|
71
|
-
global_settings = if File.
|
80
|
+
global_settings = if File.exist?(global_path)
|
72
81
|
YAML.safe_load(File.read(global_path))
|
73
82
|
end
|
74
|
-
local_settings = if File.
|
83
|
+
local_settings = if File.exist?(local_path)
|
75
84
|
YAML.safe_load(File.read(local_path))
|
76
85
|
end
|
77
86
|
|
@@ -79,7 +88,7 @@ module Geordi
|
|
79
88
|
unless ENV[SETTINGS_WARNED]
|
80
89
|
check_for_invalid_keys(global_settings, ALLOWED_GLOBAL_SETTINGS, global_path)
|
81
90
|
check_for_invalid_keys(local_settings, ALLOWED_LOCAL_SETTINGS, local_path)
|
82
|
-
Interaction.warn "Unsupported config file \".firefox-version\". Please remove it." if File.
|
91
|
+
Interaction.warn "Unsupported config file \".firefox-version\". Please remove it." if File.exist?('.firefox-version')
|
83
92
|
|
84
93
|
ENV[SETTINGS_WARNED] = 'true'
|
85
94
|
end
|
data/lib/geordi/util.rb
CHANGED
@@ -80,16 +80,23 @@ module Geordi
|
|
80
80
|
def binstub_or_fallback(executable)
|
81
81
|
binstub_file = "bin/#{executable}"
|
82
82
|
|
83
|
-
File.
|
83
|
+
File.exist?(binstub_file) ? binstub_file : "bundle exec #{executable}"
|
84
84
|
end
|
85
85
|
|
86
86
|
def console_command(environment)
|
87
87
|
if gem_major_version('rails') == 2
|
88
|
-
|
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
|
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: 9.
|
4
|
+
version: 9.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-09 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.
|
122
|
+
rubygems_version: 3.3.9
|
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
|