gem_toys 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 112ee3b1f0047eb32d9beedccc1249e000164a10513365de206c8d1bf06a0691
4
- data.tar.gz: 9876889866f9d38eeceb03ea04303845088e5fc429e7f8a9e5312dc0a35cce83
3
+ metadata.gz: 8965f382c94df6d80fe518d8f793caddcc03c9cde2f44ecb2839ec793891b34c
4
+ data.tar.gz: 9a086af4b57fa16f76b087517be7d1d3424e0bd6375497cd540d31e17e6f22be
5
5
  SHA512:
6
- metadata.gz: 4e6342e7bb1b2485caa3b08a9c0bda86961f47626f7236d808c5bfebd15fb37b4f28021ed43b9faaccd669b9f0b66cd237842301bc28578d48d35d258a3f3b98
7
- data.tar.gz: 6ba75096de3694778131890372df8b5ba4fad5a3d3f1386635d6b86f75efa7dae98bda97be352998d246656b271cfcdc3549071a22508424c197a6f7828cc230
6
+ metadata.gz: b2c1cf7cde1630c2ac291b938896044abe8641b212bbd4ade5ee618787af8da12673ecb7e7831c755876db9de2bc9d112beeec815978f554b9b118da04f3b338
7
+ data.tar.gz: 216931acc276ab4e9ddaf88345d98d63e08fa8281b663996bc6aba0d5d2312caf2c2d096f6761e0929677eebab1ecf4da460d0356425d4c723f71259f7f7370f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.11.3 (2021-11-10)
6
+
7
+ * Resolve RuboCop offense, take out manual check menu choices.
8
+
5
9
  ## 0.11.2 (2021-11-07)
6
10
 
7
11
  * Fix version for gem staff after manual refresh too.
@@ -111,19 +111,27 @@ module GemToys
111
111
  $stdout.puts
112
112
  end
113
113
 
114
+ self::MANUAL_CHECK_MENU = {
115
+ yes: (proc do
116
+ ## `current_version` is using in `git` and `gem` commands
117
+ clear_memery_cache! :current_version
118
+ end),
119
+ no: (proc do
120
+ handle_refusing_to_continue
121
+ end),
122
+ refresh: (proc do
123
+ wait_for_manual_check
124
+ end)
125
+ }.freeze
126
+
114
127
  def manual_check_menu
115
128
  HighLine.new.choose do |menu|
116
129
  menu.layout = :one_line
117
130
 
118
131
  menu.prompt = 'Are these changes correct? '
119
132
 
120
- menu.choice(:yes) do
121
- ## `current_version` is using in `git` and `gem` commands
122
- clear_memery_cache! :current_version
123
- end
124
- menu.choice(:no) { handle_refusing_to_continue }
125
- menu.choice(:refresh) do
126
- wait_for_manual_check
133
+ self.class::MANUAL_CHECK_MENU.each do |choice, block|
134
+ menu.choice(choice) { instance_exec(&block) }
127
135
  end
128
136
  end
129
137
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemToys
4
- VERSION = '0.11.2'
4
+ VERSION = '0.11.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-07 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alt_memery