gem_toys 0.11.3 → 0.13.0

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: 8965f382c94df6d80fe518d8f793caddcc03c9cde2f44ecb2839ec793891b34c
4
- data.tar.gz: 9a086af4b57fa16f76b087517be7d1d3424e0bd6375497cd540d31e17e6f22be
3
+ metadata.gz: 86bd628cf5ca075e81b4fac8d07d68f5c72ac43349e23e1566c139c386e01c7d
4
+ data.tar.gz: 6680f7c067e4f71cab98b2776a67e1ee4a6e2e0b391efaf2edd612e298f17fa3
5
5
  SHA512:
6
- metadata.gz: b2c1cf7cde1630c2ac291b938896044abe8641b212bbd4ade5ee618787af8da12673ecb7e7831c755876db9de2bc9d112beeec815978f554b9b118da04f3b338
7
- data.tar.gz: 216931acc276ab4e9ddaf88345d98d63e08fa8281b663996bc6aba0d5d2312caf2c2d096f6761e0929677eebab1ecf4da460d0356425d4c723f71259f7f7370f
6
+ metadata.gz: ea4afb04baa8349bad3af559c981cdb78f76f6ab03acb4b97ef3344856489ad88f6bf4826f0f5a1cf02473717f83b61d8368b0fba902957edcc932a023d0de6b
7
+ data.tar.gz: a4c50f801644dae4940a9f1cbfa9ad52180b2531defbc25c8b04faf322027a3c65a2b568344791c57b47b0f657558776e4f60b6aaf4468825104186823b655dd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.13.0 (2023-10-16)
6
+
7
+ * Drop Ruby 2.6 support.
8
+ * Add Ruby 3.2 support.
9
+ * Add missing runtime `toys-core` dependency.
10
+ * Move development dependencies from gemspec into Gemfile.
11
+ * Update development dependencies.
12
+ * Improve CI config.
13
+
14
+ ## 0.12.1 (2022-02-07)
15
+
16
+ * Drop Ruby 2.5 support.
17
+ * Add Ruby 3.1 support.
18
+
19
+ ## 0.12.0 (2022-02-07)
20
+
21
+ * Update Faraday to version 2.
22
+ * Update development dependencies.
23
+
5
24
  ## 0.11.3 (2021-11-10)
6
25
 
7
26
  * Resolve RuboCop offense, take out manual check menu choices.
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Gem Toys
2
2
 
3
3
  [![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/gem_toys?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/gem_toys)
4
- [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/gem_toys/master.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/gem_toys)
4
+ [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/gem_toys/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/gem_toys)
5
5
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/gem_toys.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/gem_toys)
6
6
  [![Depfu](https://img.shields.io/depfu/AlexWayfer/benchmark_toys?style=flat-square)](https://depfu.com/repos/github/AlexWayfer/gem_toys)
7
- [![Inline docs](https://inch-ci.org/github/AlexWayfer/gem_toys.svg?branch=master)](https://inch-ci.org/github/AlexWayfer/gem_toys)
8
- [![license](https://img.shields.io/github/license/AlexWayfer/gem_toys.svg?style=flat-square)](https://github.com/AlexWayfer/gem_toys/blob/master/LICENSE.txt)
7
+ [![Inline docs](https://inch-ci.org/github/AlexWayfer/gem_toys.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/gem_toys)
8
+ [![license](https://img.shields.io/github/license/AlexWayfer/gem_toys.svg?style=flat-square)](https://github.com/AlexWayfer/gem_toys/blob/main/LICENSE.txt)
9
9
  [![Gem](https://img.shields.io/gem/v/gem_toys.svg?style=flat-square)](https://rubygems.org/gems/gem_toys)
10
10
 
11
11
  [Toys](https://github.com/dazuma/toys) template for gems, like building, releasing, etc.
@@ -53,7 +53,6 @@ module GemToys
53
53
 
54
54
  memoize def rubygems_connection
55
55
  require 'faraday'
56
- require 'faraday_middleware'
57
56
 
58
57
  Faraday.new 'https://rubygems.org/api/v1' do |connection|
59
58
  connection.response :json,
@@ -11,7 +11,7 @@ module GemToys
11
11
  ## `current_version` should be refreshed before this method invocation
12
12
  version_git_tag = "#{@template.version_tag_prefix}#{current_version}"
13
13
 
14
- ## Checkout to a new git branch, required for protected `master` with CI
14
+ ## Checkout to a new git branch, required for protected `main` with CI
15
15
  # sh "git switch -c #{version_git_tag}"
16
16
 
17
17
  commit_changes
@@ -99,18 +99,6 @@ module GemToys
99
99
  )
100
100
  end
101
101
 
102
- def wait_for_manual_check
103
- print_files_diff
104
-
105
- manual_check_menu
106
- end
107
-
108
- def print_files_diff
109
- $stdout.puts
110
- sh "git diff #{version_file_path} #{changelog_file_path}"
111
- $stdout.puts
112
- end
113
-
114
102
  self::MANUAL_CHECK_MENU = {
115
103
  yes: (proc do
116
104
  ## `current_version` is using in `git` and `gem` commands
@@ -124,7 +112,9 @@ module GemToys
124
112
  end)
125
113
  }.freeze
126
114
 
127
- def manual_check_menu
115
+ def wait_for_manual_check
116
+ print_files_diff
117
+
128
118
  HighLine.new.choose do |menu|
129
119
  menu.layout = :one_line
130
120
 
@@ -136,6 +126,12 @@ module GemToys
136
126
  end
137
127
  end
138
128
 
129
+ def print_files_diff
130
+ $stdout.puts
131
+ sh "git diff #{version_file_path} #{changelog_file_path}"
132
+ $stdout.puts
133
+ end
134
+
139
135
  def handle_refusing_to_continue
140
136
  [version_file_path, changelog_file_path].each do |file_path|
141
137
  sh "git restore --worktree #{file_path}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemToys
4
- VERSION = '0.11.3'
4
+ VERSION = '0.13.0'
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.3
4
+ version: 0.13.0
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-09 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alt_memery
@@ -26,34 +26,6 @@ dependencies:
26
26
  version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.0'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.0'
55
- - !ruby/object:Gem::Dependency
56
- name: highline
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - "~>"
@@ -67,27 +39,13 @@ dependencies:
67
39
  - !ruby/object:Gem::Version
68
40
  version: '2.0'
69
41
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.9'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.9'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
42
+ name: highline
85
43
  requirement: !ruby/object:Gem::Requirement
86
44
  requirements:
87
45
  - - "~>"
88
46
  - !ruby/object:Gem::Version
89
47
  version: '2.0'
90
- type: :development
48
+ type: :runtime
91
49
  prerelease: false
92
50
  version_requirements: !ruby/object:Gem::Requirement
93
51
  requirements:
@@ -95,103 +53,19 @@ dependencies:
95
53
  - !ruby/object:Gem::Version
96
54
  version: '2.0'
97
55
  - !ruby/object:Gem::Dependency
98
- name: toys
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 0.12.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 0.12.0
111
- - !ruby/object:Gem::Dependency
112
- name: codecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 0.6.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 0.6.0
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
56
+ name: toys-core
127
57
  requirement: !ruby/object:Gem::Requirement
128
58
  requirements:
129
59
  - - "~>"
130
60
  - !ruby/object:Gem::Version
131
- version: '3.9'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '3.9'
139
- - !ruby/object:Gem::Dependency
140
- name: simplecov
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.21.2
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.21.2
153
- - !ruby/object:Gem::Dependency
154
- name: rubocop
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 1.22.2
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 1.22.2
167
- - !ruby/object:Gem::Dependency
168
- name: rubocop-performance
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '1.0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '1.0'
181
- - !ruby/object:Gem::Dependency
182
- name: rubocop-rspec
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '2.0'
188
- type: :development
61
+ version: 0.15.1
62
+ type: :runtime
189
63
  prerelease: false
190
64
  version_requirements: !ruby/object:Gem::Requirement
191
65
  requirements:
192
66
  - - "~>"
193
67
  - !ruby/object:Gem::Version
194
- version: '2.0'
68
+ version: 0.15.1
195
69
  description: 'Toys template for gems, like building, releasing, etc.
196
70
 
197
71
  '
@@ -218,7 +92,8 @@ licenses:
218
92
  metadata:
219
93
  source_code_uri: https://github.com/AlexWayfer/gem_toys
220
94
  homepage_uri: https://github.com/AlexWayfer/gem_toys
221
- changelog_uri: https://github.com/AlexWayfer/gem_toys/blob/master/CHANGELOG.md
95
+ changelog_uri: https://github.com/AlexWayfer/gem_toys/blob/main/CHANGELOG.md
96
+ rubygems_mfa_required: 'true'
222
97
  post_install_message:
223
98
  rdoc_options: []
224
99
  require_paths:
@@ -227,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
102
  requirements:
228
103
  - - ">="
229
104
  - !ruby/object:Gem::Version
230
- version: '2.5'
105
+ version: '2.7'
231
106
  - - "<"
232
107
  - !ruby/object:Gem::Version
233
108
  version: '4'
@@ -237,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
112
  - !ruby/object:Gem::Version
238
113
  version: '0'
239
114
  requirements: []
240
- rubygems_version: 3.2.22
115
+ rubygems_version: 3.4.17
241
116
  signing_key:
242
117
  specification_version: 4
243
118
  summary: Toys template for gems