go_gem 0.9.0 → 0.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e310ca9f231f929ba09d4704bc911c4653133baee29210c852610727a79f1594
4
- data.tar.gz: 8fc4536a64841f92bd0a357869ed3d302987d482aac9c7b24d21fd0fd9417b34
3
+ metadata.gz: 9c0759f4dfd6a5d962af80447252c5271fe34d407b8d4c0c857fa1efc89ab2e4
4
+ data.tar.gz: 7e71331f3499b2e3442004f15b0b82d5d511f92b93ec0a0568b0c7e9b21e81de
5
5
  SHA512:
6
- metadata.gz: 85890416d37932fc553adcb5ba6b0f8f9434f6993fb1d1e87290248bf88ca50a223b601c11ddbafc4bd7d22e44dce00b61f2ec8e88892fc7a9bf902074c84c52
7
- data.tar.gz: 2b171cd16c877ae155ced345d798c4a92e893b0ee50c6c437ba966035be598b863d60ff8b52f1a884cbff60704d0c4f08f04bcaa725b25307633dbb4370afbe7
6
+ metadata.gz: 56416229a8c035fa9fb573721416f925bbff6baac4785463170e4280d7470164e9657dc01ad33dd382f7ca320482d776357f3b88952efdf5eaf1f57348238fc8
7
+ data.tar.gz: 4bd075cd26349c4d9459c19fd70e2e243dc2a7586829636e6df6b18457a273731b884f450f993904b99cfada322c3e051eaa0aa39cec980a1ef671274670d0e3
data/README.md CHANGED
@@ -53,6 +53,7 @@ Following tasks are generated
53
53
  * `rake go:testrace`
54
54
  * `rake go:fmt`
55
55
  * `rake go:build_envs`
56
+ * `rake go:mod_tidy`
56
57
 
57
58
  #### Example (With config)
58
59
  ```ruby
@@ -73,6 +74,7 @@ Following tasks are generated
73
74
  * `rake go5:testrace`
74
75
  * `rake go5:fmt`
75
76
  * `rake go5:build_envs`
77
+ * `rake go5:mod_tidy`
76
78
 
77
79
  #### Example (Add additional tasks)
78
80
  ```ruby
@@ -96,6 +96,7 @@ module GoGem
96
96
  define_go_fmt_task
97
97
  define_go_build_envs_task
98
98
  define_go_build_tag_task
99
+ define_go_mod_tidy_task
99
100
  end
100
101
  end
101
102
 
@@ -133,7 +134,7 @@ module GoGem
133
134
  private
134
135
 
135
136
  def define_go_test_task
136
- desc "Run #{go_bin_path} test"
137
+ desc "Run `#{go_bin_path} test`"
137
138
  task(:test) do
138
139
  within_target_dir do
139
140
  sh RakeTask.build_env_vars, "#{go_bin_path} test #{go_test_args} ./..."
@@ -142,7 +143,7 @@ module GoGem
142
143
  end
143
144
 
144
145
  def define_go_testrace_task
145
- desc "Run #{go_bin_path} test -race"
146
+ desc "Run `#{go_bin_path} test -race`"
146
147
  task(:testrace) do
147
148
  within_target_dir do
148
149
  sh RakeTask.build_env_vars, "#{go_bin_path} test #{go_test_args} -race ./..."
@@ -151,7 +152,7 @@ module GoGem
151
152
  end
152
153
 
153
154
  def define_go_fmt_task
154
- desc "Run #{go_bin_path} fmt"
155
+ desc "Run `#{go_bin_path} fmt`"
155
156
  task(:fmt) do
156
157
  within_target_dir do
157
158
  sh "#{go_bin_path} fmt ./..."
@@ -179,5 +180,14 @@ module GoGem
179
180
  puts GoGem::Util.ruby_minor_version_build_tag
180
181
  end
181
182
  end
183
+
184
+ def define_go_mod_tidy_task
185
+ desc "Run `#{go_bin_path} mod tidy`"
186
+ task(:mod_tidy) do
187
+ within_target_dir do
188
+ sh "#{go_bin_path} mod tidy"
189
+ end
190
+ end
191
+ end
182
192
  end
183
193
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoGem
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.0"
5
5
  end
@@ -42,6 +42,8 @@ module GoGem
42
42
 
43
43
  def define_go_build_tag_task: () -> void
44
44
 
45
+ def define_go_mod_tidy_task: () -> void
46
+
45
47
  def within_target_dir: () { () -> void } -> void
46
48
 
47
49
  def ext_dir: () -> String
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445