Skip to content

Commit 1f09ef4

Browse files
committed
Make use of NotFoundError.for
1 parent 3cbe80a commit 1f09ef4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem "foobara-dotenv-loader", "~> 0.0.1"
1212
gem "rake"
1313

1414
group :development do
15-
gem "foob"
15+
gem "foob", "~> 0.0.1"
1616
gem "foobara-rubocop-rules", "~> 0.0.1"
1717
gem "guard-rspec"
1818
gem "rubocop-rake"

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-http-command-connector (0.0.21)
4+
foobara-http-command-connector (0.0.22)
55
foobara (~> 0.0.88)
66

77
GEM
@@ -55,7 +55,7 @@ GEM
5555
foobara-type-generator (~> 0.0.1)
5656
foobara-typescript-react-command-form-generator (~> 0.0.1)
5757
foobara-typescript-remote-command-generator (~> 0.0.1)
58-
foobara (0.0.102)
58+
foobara (0.0.108)
5959
bigdecimal
6060
foobara-lru-cache (~> 0.0.2)
6161
foobara-util (~> 0.0.11)
@@ -204,7 +204,7 @@ GEM
204204
diff-lcs (>= 1.2.0, < 2.0)
205205
rspec-support (~> 3.13.0)
206206
rspec-support (3.13.2)
207-
rubocop (1.75.2)
207+
rubocop (1.75.3)
208208
json (~> 2.3)
209209
language_server-protocol (~> 3.17.0.2)
210210
lint_roller (~> 1.1.0)
@@ -221,7 +221,7 @@ GEM
221221
rubocop-rake (0.7.1)
222222
lint_roller (~> 1.1)
223223
rubocop (>= 1.72.1)
224-
rubocop-rspec (3.5.0)
224+
rubocop-rspec (3.6.0)
225225
lint_roller (~> 1.1)
226226
rubocop (~> 1.72, >= 1.72.1)
227227
ruby-prof (1.7.1)
@@ -233,7 +233,7 @@ GEM
233233
simplecov_json_formatter (~> 0.1)
234234
simplecov-html (0.13.1)
235235
simplecov_json_formatter (0.1.4)
236-
stringio (3.1.6)
236+
stringio (3.1.7)
237237
thor (1.3.2)
238238
unicode-display_width (3.1.4)
239239
unicode-emoji (~> 4.0, >= 4.0.4)
@@ -259,7 +259,7 @@ PLATFORMS
259259
x86_64-linux-musl
260260

261261
DEPENDENCIES
262-
foob
262+
foob (~> 0.0.1)
263263
foobara-dotenv-loader (~> 0.0.1)
264264
foobara-http-command-connector!
265265
foobara-rubocop-rules (~> 0.0.1)

src/http/commands/help.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def determine_object_to_help_with(mode: Namespace::LookupMode::ABSOLUTE)
4444
determine_object_to_help_with(mode: Namespace::LookupMode::RELAXED)
4545
else
4646
# TODO: add an input error instead for missing record to trigger 404
47-
add_runtime_error(CommandConnector::NotFoundError.new(arg))
47+
add_runtime_error(CommandConnector::NotFoundError.for(arg))
4848
end
4949
end
5050
else

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Foobara
22
module HttpCommandConnector
3-
VERSION = "0.0.21".freeze
3+
VERSION = "0.0.22".freeze
44

55
local_ruby_version = File.read("#{__dir__}/.ruby-version").chomp
66
local_ruby_version_minor = local_ruby_version[/\A(\d+\.\d+)\.\d+\z/, 1]

0 commit comments

Comments
 (0)