geordi 11.2.1 → 12.0.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/.github/workflows/test.yml +3 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +43 -59
- data/geordi.gemspec +1 -1
- data/lib/geordi/gitlinear.rb +5 -12
- data/lib/geordi/settings.rb +1 -6
- data/lib/geordi/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04677830ab820667757b670bc6702114582031396fbd7e7600e038bcdab4dd47'
|
4
|
+
data.tar.gz: 05cf15e451eb7104f415b5fc06f440088a5f57f9f5835427570d80f4ddf166ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf93074bfa1f08952717dd7e4d0097975e14049fdf9a62a57bfeb969e950fd7d803e45964ef7b5037402c280d788558dd1d195c380524e6267ee56739265c2d
|
7
|
+
data.tar.gz: 3990f5698b00ff8ecca6e4c31e92bdae56a036810fc19b25bbad4ea40bba17523ec0e6831d68871b21a21b88af21f84b3b6600af073a29a17f2455796c56cf05
|
data/.github/workflows/test.yml
CHANGED
@@ -13,14 +13,14 @@ jobs:
|
|
13
13
|
fail-fast: false
|
14
14
|
matrix:
|
15
15
|
include:
|
16
|
-
- ruby: 2.5.7
|
17
|
-
gemfile: Gemfile
|
18
16
|
- ruby: 2.7.4
|
19
17
|
gemfile: Gemfile
|
20
18
|
- ruby: 3.0.2
|
21
19
|
gemfile: Gemfile
|
22
20
|
- ruby: 3.3.6
|
23
21
|
gemfile: Gemfile
|
22
|
+
- ruby: 3.4.2
|
23
|
+
gemfile: Gemfile
|
24
24
|
env:
|
25
25
|
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
26
26
|
steps:
|
@@ -31,7 +31,7 @@ jobs:
|
|
31
31
|
ruby-version: "${{ matrix.ruby }}"
|
32
32
|
- name: Bundle
|
33
33
|
run: |
|
34
|
-
gem install bundler:2.
|
34
|
+
gem install bundler:2.3.27
|
35
35
|
bundle install --no-deployment
|
36
36
|
- name: Run specs
|
37
37
|
run: bundle exec rspec
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.4
|
data/CHANGELOG.md
CHANGED
@@ -7,9 +7,17 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
7
7
|
|
8
8
|
### Compatible changes
|
9
9
|
|
10
|
-
|
10
|
+
### Breaking changes
|
11
|
+
|
12
|
+
|
13
|
+
## 12.0.0 2025-02-25
|
14
|
+
|
15
|
+
### Compatible changes
|
16
|
+
* Add support for Ruby 3.3
|
17
|
+
* Add support for Ruby 3.4
|
11
18
|
|
12
19
|
### Breaking changes
|
20
|
+
* Drop support for Ruby 2.5.7
|
13
21
|
|
14
22
|
|
15
23
|
## 11.2.0 2024-11-22
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
geordi (
|
4
|
+
geordi (12.0.0)
|
5
5
|
thor (~> 1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.4.1)
|
11
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>= 1.6, < 2)
|
13
|
-
minitest (>= 5.1)
|
14
|
-
tzinfo (~> 2.0)
|
15
|
-
zeitwerk (~> 2.3)
|
16
10
|
addressable (2.7.0)
|
17
11
|
public_suffix (>= 2.0.2, < 5.0)
|
18
12
|
aruba (0.14.14)
|
@@ -22,59 +16,51 @@ GEM
|
|
22
16
|
ffi (~> 1.9)
|
23
17
|
rspec-expectations (>= 2.99)
|
24
18
|
thor (>= 0.19, < 2.0)
|
25
|
-
|
19
|
+
bigdecimal (3.1.9)
|
20
|
+
builder (3.3.0)
|
26
21
|
byebug (11.1.3)
|
27
22
|
childprocess (1.0.1)
|
28
23
|
rake (< 13.0)
|
29
24
|
coderay (1.1.3)
|
30
|
-
concurrent-ruby (1.1.9)
|
31
25
|
contracts (0.16.0)
|
32
|
-
cucumber (
|
33
|
-
builder (~> 3.2
|
34
|
-
cucumber-
|
35
|
-
cucumber-
|
36
|
-
cucumber-
|
37
|
-
cucumber-
|
38
|
-
cucumber-
|
39
|
-
cucumber-
|
40
|
-
diff-lcs (~> 1.
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
cucumber-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
cucumber-
|
56
|
-
|
57
|
-
|
58
|
-
cucumber-messages (~> 12.1, >= 12.1.1)
|
59
|
-
diff-lcs (1.4.4)
|
26
|
+
cucumber (9.2.1)
|
27
|
+
builder (~> 3.2)
|
28
|
+
cucumber-ci-environment (> 9, < 11)
|
29
|
+
cucumber-core (> 13, < 14)
|
30
|
+
cucumber-cucumber-expressions (~> 17.0)
|
31
|
+
cucumber-gherkin (> 24, < 28)
|
32
|
+
cucumber-html-formatter (> 20.3, < 22)
|
33
|
+
cucumber-messages (> 19, < 25)
|
34
|
+
diff-lcs (~> 1.5)
|
35
|
+
mini_mime (~> 1.1)
|
36
|
+
multi_test (~> 1.1)
|
37
|
+
sys-uname (~> 1.2)
|
38
|
+
cucumber-ci-environment (10.0.1)
|
39
|
+
cucumber-core (13.0.3)
|
40
|
+
cucumber-gherkin (>= 27, < 28)
|
41
|
+
cucumber-messages (>= 20, < 23)
|
42
|
+
cucumber-tag-expressions (> 5, < 7)
|
43
|
+
cucumber-cucumber-expressions (17.1.0)
|
44
|
+
bigdecimal
|
45
|
+
cucumber-gherkin (27.0.0)
|
46
|
+
cucumber-messages (>= 19.1.4, < 23)
|
47
|
+
cucumber-html-formatter (21.9.0)
|
48
|
+
cucumber-messages (> 19, < 28)
|
49
|
+
cucumber-messages (22.0.0)
|
50
|
+
cucumber-tag-expressions (6.1.2)
|
51
|
+
diff-lcs (1.6.0)
|
60
52
|
ffi (1.12.2)
|
61
|
-
highline (
|
62
|
-
|
63
|
-
|
64
|
-
launchy (2.
|
65
|
-
addressable (~> 2.
|
53
|
+
highline (3.1.2)
|
54
|
+
reline
|
55
|
+
io-console (0.8.0)
|
56
|
+
launchy (2.5.0)
|
57
|
+
addressable (~> 2.7)
|
66
58
|
method_source (1.1.0)
|
67
|
-
|
68
|
-
|
69
|
-
multi_test (0.1.2)
|
59
|
+
mini_mime (1.1.5)
|
60
|
+
multi_test (1.1.0)
|
70
61
|
parallel (1.19.2)
|
71
|
-
parallel_tests (
|
62
|
+
parallel_tests (4.9.1)
|
72
63
|
parallel
|
73
|
-
protobuf-cucumber (3.10.8)
|
74
|
-
activesupport (>= 3.2)
|
75
|
-
middleware
|
76
|
-
thor
|
77
|
-
thread_safe
|
78
64
|
pry (0.14.2)
|
79
65
|
coderay (~> 1.1)
|
80
66
|
method_source (~> 1.0)
|
@@ -83,6 +69,8 @@ GEM
|
|
83
69
|
pry (>= 0.13, < 0.15)
|
84
70
|
public_suffix (3.1.1)
|
85
71
|
rake (12.3.3)
|
72
|
+
reline (0.6.0)
|
73
|
+
io-console (~> 0.5)
|
86
74
|
rspec (3.10.0)
|
87
75
|
rspec-core (~> 3.10.0)
|
88
76
|
rspec-expectations (~> 3.10.0)
|
@@ -96,20 +84,16 @@ GEM
|
|
96
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
97
85
|
rspec-support (~> 3.10.0)
|
98
86
|
rspec-support (3.10.0)
|
99
|
-
sys-uname (1.
|
87
|
+
sys-uname (1.3.1)
|
100
88
|
ffi (~> 1.1)
|
101
|
-
thor (1.
|
102
|
-
thread_safe (0.3.6)
|
103
|
-
tzinfo (2.0.4)
|
104
|
-
concurrent-ruby (~> 1.0)
|
105
|
-
zeitwerk (2.4.2)
|
89
|
+
thor (1.3.2)
|
106
90
|
|
107
91
|
PLATFORMS
|
108
92
|
ruby
|
109
93
|
|
110
94
|
DEPENDENCIES
|
111
95
|
aruba (< 1)
|
112
|
-
cucumber (~>
|
96
|
+
cucumber (~> 9)
|
113
97
|
geordi!
|
114
98
|
highline
|
115
99
|
launchy
|
@@ -119,4 +103,4 @@ DEPENDENCIES
|
|
119
103
|
rspec
|
120
104
|
|
121
105
|
BUNDLED WITH
|
122
|
-
2.3.
|
106
|
+
2.3.27
|
data/geordi.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'geordi/version'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'geordi'
|
7
7
|
spec.version = Geordi::VERSION
|
8
|
-
spec.required_ruby_version = '>= 2.
|
8
|
+
spec.required_ruby_version = '>= 2.7.4'
|
9
9
|
spec.authors = ['Henning Koch']
|
10
10
|
spec.email = ['henning.koch@makandra.de']
|
11
11
|
|
data/lib/geordi/gitlinear.rb
CHANGED
@@ -158,7 +158,7 @@ module Geordi
|
|
158
158
|
https = Net::HTTP.new(uri.host, uri.port)
|
159
159
|
https.use_ssl = true
|
160
160
|
|
161
|
-
query = { query: attributes.split.join(' '), variables: variables }.to_json
|
161
|
+
query = [{ query: attributes.split.join(' '), variables: variables }].to_json
|
162
162
|
|
163
163
|
request = Net::HTTP::Post.new(uri.path)
|
164
164
|
request.body = query
|
@@ -167,20 +167,13 @@ module Geordi
|
|
167
167
|
request['Authorization'] = settings.linear_api_key
|
168
168
|
|
169
169
|
response = https.request(request)
|
170
|
-
|
170
|
+
print clear_loading_message
|
171
171
|
|
172
|
+
parsed_response = JSON.parse(response.body)[0]
|
172
173
|
if parsed_response.key?('errors')
|
173
|
-
|
174
|
-
msg = error.delete('message')
|
175
|
-
"#{msg} #{error.inspect}"
|
176
|
-
end
|
177
|
-
Interaction.fail <<~MSG.strip
|
178
|
-
API request failed:
|
179
|
-
#{errors.join("\n")}
|
180
|
-
MSG
|
174
|
+
raise parsed_response.dig('errors')
|
181
175
|
else
|
182
|
-
|
183
|
-
parsed_response.dig('data')
|
176
|
+
parsed_response['data']
|
184
177
|
end
|
185
178
|
end
|
186
179
|
|
data/lib/geordi/settings.rb
CHANGED
@@ -110,12 +110,7 @@ module Geordi
|
|
110
110
|
def save_global_settings
|
111
111
|
global_path = GLOBAL_SETTINGS_FILE_NAME
|
112
112
|
global_directory = File.dirname(global_path)
|
113
|
-
|
114
|
-
unless File.directory?(global_directory)
|
115
|
-
require 'fileutils'
|
116
|
-
FileUtils.mkdir_p(global_directory)
|
117
|
-
end
|
118
|
-
|
113
|
+
FileUtils.mkdir_p(global_directory) unless File.directory? global_directory
|
119
114
|
File.open(global_path, 'w') do |file|
|
120
115
|
file.write @global_settings.to_yaml
|
121
116
|
end
|
data/lib/geordi/version.rb
CHANGED
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:
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: thor
|
@@ -108,7 +107,6 @@ metadata:
|
|
108
107
|
bug_tracker_uri: https://github.com/makandra/geordi/issues
|
109
108
|
changelog_uri: https://github.com/makandra/geordi/blob/master/CHANGELOG.md
|
110
109
|
rubygems_mfa_required: 'true'
|
111
|
-
post_install_message:
|
112
110
|
rdoc_options: []
|
113
111
|
require_paths:
|
114
112
|
- lib
|
@@ -116,15 +114,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
114
|
requirements:
|
117
115
|
- - ">="
|
118
116
|
- !ruby/object:Gem::Version
|
119
|
-
version: 2.
|
117
|
+
version: 2.7.4
|
120
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
119
|
requirements:
|
122
120
|
- - ">="
|
123
121
|
- !ruby/object:Gem::Version
|
124
122
|
version: '0'
|
125
123
|
requirements: []
|
126
|
-
rubygems_version: 3.2
|
127
|
-
signing_key:
|
124
|
+
rubygems_version: 3.6.2
|
128
125
|
specification_version: 4
|
129
126
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|
130
127
|
and Linux at makandra.
|