hiiro 0.1.246 → 0.1.247
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/bin/h-branch +6 -17
- data/exe/h +1 -1
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2d2a1e2e4ffabb320cf96596b5f4e09d248693266ea17625b72e43ce2d31b22
|
|
4
|
+
data.tar.gz: 47525e1929904632aba3f28f10c4ae0959d7a69acfffc31c83f60e162179e813
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0936325092f5106b15ba7b95c81f80ae63d5317d009dc3462e57e5beeaba7727e8f23961f19e2b666b68753adeca8a108c14cc8a17ce4fd92b80c59f4bb2ecc7'
|
|
7
|
+
data.tar.gz: 76063e8050533a38e6eed7fd03c097d205f80b796fe7a38e2810040c6f70bbd6acc1887f05f0750630f0817b68ac517cb5806cf4b32beae5a107abeb328d82ca
|
data/bin/h-branch
CHANGED
|
@@ -158,15 +158,12 @@ Hiiro.run(*ARGV) do
|
|
|
158
158
|
branches = git.branches(sort_by: 'authordate', ignore_case: true)
|
|
159
159
|
|
|
160
160
|
if opts.edit
|
|
161
|
-
branch_lines = branches.map { |b| "
|
|
161
|
+
branch_lines = branches.map { |b| "#{b}:" }
|
|
162
162
|
yaml_content = <<~YAML
|
|
163
163
|
# Select branches to tag and list the tags to apply.
|
|
164
164
|
# All listed branches will receive all listed tags.
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
#{branch_lines.join("\n")}
|
|
168
|
-
|
|
169
|
-
tags:
|
|
166
|
+
#{branch_lines.join("\n -\n")}
|
|
170
167
|
-
|
|
171
168
|
YAML
|
|
172
169
|
|
|
@@ -184,23 +181,15 @@ Hiiro.run(*ARGV) do
|
|
|
184
181
|
next
|
|
185
182
|
end
|
|
186
183
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if selected.empty? || new_tags.empty?
|
|
191
|
-
puts "Aborted: need at least one branch and one tag"
|
|
192
|
-
next
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
selected.each do |b|
|
|
196
|
-
tag_store.add(b, *new_tags)
|
|
197
|
-
puts "Tagged #{b} with: #{new_tags.join(', ')}"
|
|
184
|
+
parsed.each do |branch, tags|
|
|
185
|
+
tag_store.add(branch, *tags)
|
|
186
|
+
puts "Tagged #{branch} with: #{tags.join(', ')}"
|
|
198
187
|
end
|
|
199
188
|
else
|
|
200
189
|
branch = opts.args[0] || git.branch
|
|
201
190
|
tag_names = opts.args[1..]
|
|
202
191
|
|
|
203
|
-
if tag_names.
|
|
192
|
+
if tag_names&.count.to_i == 0
|
|
204
193
|
puts "Usage: h branch tag [branch] <tag> [tag2 ...]"
|
|
205
194
|
puts " h branch tag -e (bulk edit mode)"
|
|
206
195
|
next
|
data/exe/h
CHANGED
|
@@ -6,7 +6,7 @@ require "fileutils"
|
|
|
6
6
|
def update_hiiro(version=nil)
|
|
7
7
|
ver = version || Hiiro::Rbenv.current_version
|
|
8
8
|
puts
|
|
9
|
-
puts "INSTALLING RUBY
|
|
9
|
+
puts "INSTALLING hiiro for RUBY #{ver}"
|
|
10
10
|
|
|
11
11
|
Hiiro::Rbenv.install_gem('hiiro', version: ver)
|
|
12
12
|
Hiiro::Rbenv.run('h', 'setup', version: ver)
|
data/lib/hiiro/version.rb
CHANGED