Skip to content

Commit e8559ba

Browse files
committed
Fix example
1 parent f914309 commit e8559ba

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

_gem/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ Following tasks are generated
5454
# Rakefile
5555
require "go_gem/rake_task"
5656

57-
GoGem::RakeTask.new("gem_name") do |config|
58-
config.task_namespace = "go5"
59-
config.go_bin_path = "/path/to/go"
60-
config.go_test_args = "#{GoGem::RakeTask::DEFAULT_GO_TEST_ARGS} -race"
61-
config.target_dir = "/dir/to/go-mod/"
57+
GoGem::RakeTask.new("gem_name") do |t|
58+
t.task_namespace = "go5"
59+
t.go_bin_path = "/path/to/go"
60+
t.go_test_args = "-mod=readonly"
61+
t.target_dir = "/dir/to/go-mod/"
6262
end
6363
```
6464

_gem/lib/go_gem/rake_task.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ module GoGem
1616
# # Rakefile
1717
# require "go_gem/rake_task"
1818
#
19-
# GoGem::RakeTask.new("gem_name") do |config|
20-
# config.task_namespace = "go5"
21-
# config.go_bin_path = "/path/to/go"
22-
# config.go_test_args = "#{GoGem::RakeTask::DEFAULT_GO_TEST_ARGS} -race"
23-
# config.target_dir = "/dir/to/go-mod/"
19+
# GoGem::RakeTask.new("gem_name") do |t|
20+
# t.task_namespace = "go5"
21+
# t.go_bin_path = "/path/to/go"
22+
# t.go_test_args = "-mod=readonly"
23+
# t.target_dir = "/dir/to/go-mod/"
2424
# end
2525
class RakeTask < ::Rake::TaskLib
2626
DEFAULT_TASK_NAMESPACE = :go
@@ -51,7 +51,7 @@ class RakeTask < ::Rake::TaskLib
5151

5252
# @param gem_name [String]
5353
# @yield configuration of {RakeTask}
54-
# @yieldparam config [RakeTask]
54+
# @yieldparam t [RakeTask]
5555
def initialize(gem_name)
5656
super()
5757

0 commit comments

Comments
 (0)