Skip to content

Commit e7a4f68

Browse files
authored
Correct 'add-on' hyphenation (#462)
1 parent 2f706a6 commit e7a4f68

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[![Ruby DX Slack](https://img.shields.io/badge/Slack-Ruby%20DX-success?logo=slack)](https://join.slack.com/t/ruby-dx/shared_invite/zt-2c8zjlir6-uUDJl8oIwcen_FS_aA~b6Q)
22

3-
# Rails addon
3+
# Rails add-on
44

5-
The Rails addon is a [Ruby LSP](https://github.com/Shopify/ruby-lsp) [addon](https://shopify.github.io/ruby-lsp/addons.html) for extra [Rails editor features](https://shopify.github.io/ruby-lsp/rails-addon.html).
5+
The Rails add-on is a [Ruby LSP](https://github.com/Shopify/ruby-lsp) [add-on](https://shopify.github.io/ruby-lsp/add-ons.html) for extra [Rails editor features](https://shopify.github.io/ruby-lsp/rails-add-on.html).
66

77
## Installation
88

99
If you haven't already done so, you'll need to first [set up Ruby LSP](https://shopify.github.io/ruby-lsp/#usage).
1010

11-
As of v0.3.0, Ruby LSP will automatically include the Ruby LSP Rails addon in its custom bundle when a Rails app is detected.
11+
As of v0.3.0, Ruby LSP will automatically include the Ruby LSP Rails add-on in its custom bundle when a Rails app is detected.
1212
There is no need to add the gem to your bundle.
1313

1414
## Documentation
1515

16-
See the [documentation](https://shopify.github.io/ruby-lsp/rails-addon.html) for more in-depth details about the
17-
[supported features](https://shopify.github.io/ruby-lsp/rails-addon.html#features).
16+
See the [documentation](https://shopify.github.io/ruby-lsp/rails-add-on.html) for more in-depth details about the
17+
[supported features](https://shopify.github.io/ruby-lsp/rails-add-on.html#features).
1818

1919
## Contributing
2020

lib/ruby_lsp/ruby_lsp_rails/addon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def rails_runner_client
4848
sig { override.params(global_state: GlobalState, message_queue: Thread::Queue).void }
4949
def activate(global_state, message_queue)
5050
@global_state = global_state
51-
$stderr.puts("Activating Ruby LSP Rails addon v#{VERSION}")
51+
$stderr.puts("Activating Ruby LSP Rails add-on v#{VERSION}")
5252
register_additional_file_watchers(global_state: global_state, message_queue: message_queue)
5353
@global_state.index.register_enhancement(IndexingEnhancement.new)
5454

lib/ruby_lsp/ruby_lsp_rails/server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class ServerAddon
1313
@server_addons = {}
1414

1515
class << self
16-
# We keep track of runtime server addons the same way we track other addons, by storing classes that inherit
16+
# We keep track of runtime server add-ons the same way we track other add-ons, by storing classes that inherit
1717
# from the base one
1818
def inherited(child)
1919
@server_addon_classes << child
2020
super
2121
end
2222

23-
# Delegate `request` with `params` to the server addon with the given `name`
23+
# Delegate `request` with `params` to the server add-on with the given `name`
2424
def delegate(name, request, params)
2525
@server_addons[name]&.execute(request, params)
2626
end

test/ruby_lsp_rails/addon_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module RubyLsp
77
module Rails
88
class AddonTest < ActiveSupport::TestCase
9-
test "name returns addon name" do
9+
test "name returns add-on name" do
1010
addon = Addon.new
1111
assert_equal("Ruby LSP Rails", addon.name)
1212
end

test/ruby_lsp_rails/server_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def <(other)
136136
assert_equal "/users(.:format)", result[:path]
137137
end
138138

139-
test "server addons" do
139+
test "server add-ons" do
140140
File.write("server_addon.rb", <<~RUBY)
141141
class TapiocaServerAddon < RubyLsp::Rails::ServerAddon
142142
def name

0 commit comments

Comments
 (0)