gem_toys 0.3.0 → 0.7.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: ebbde3bcabf9bc8e53603305bb4c13a0722ff5827007843f52b7d88972b06738
4
- data.tar.gz: bb677a539b3d46f210a0777a69498ec786c00de408236ba6f2ab7bd011cb7357
3
+ metadata.gz: 1b8a68d7567f6698b428f46a2f69694259e066412bedb21b55eda4585b76c70b
4
+ data.tar.gz: 74cfd96138c6e0a10eacec2235500f775d5f02b0f3ab215f88b0c911a8cf33a2
5
5
  SHA512:
6
- metadata.gz: 11e5b4915cc7db2ae18e70afa5d22a56e2452f3b0a67a2dcb15b862d97bfac40bbd6dfd2fcb61f6830db8f719cba647974c14f7374c46f774a327f38459b9b5b
7
- data.tar.gz: a50682c37f4ab143d0c77a37aeef8d943da8a48227f607b08683482c3aefb2d2d56f2d0d9235e969ac847b37bbe7b49a8f56a1a8bc2b076878af9ca41ffd6c69
6
+ metadata.gz: 98da90d85c1cb6f361bdef8d7a0ec42d5c0ba500121f3fc9655dacb24f160f9a9c21599afb01bf9ed3672a954c9ef27df384e988b8ad382e505cb1bedb1e1cab
7
+ data.tar.gz: d236a46c35fcedeb008aafbb4f1836e497c39d2b001b125634a60b114b555fd567b4236aa2294b50f708869a80dd416bf1998a585494c3854ba545128a0729a4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.7.0 (2021-03-04)
6
+
7
+ ## 0.6.1 (2021-02-10)
8
+
9
+ * Gently abort when `unreleased_title` not found.
10
+ * Improve documentation about `:unreleased_title` option.
11
+
12
+ ## 0.6.0 (2021-02-10)
13
+
14
+ * Support Ruby 3.
15
+ * Fix error with undefined `FileUtils`.
16
+ * Fix error with `release` tool via updating `alt_memery` to a fixed version.
17
+ * Update development dependencies.
18
+
19
+ ## 0.5.0 (2020-11-29)
20
+
21
+ * Add `versions` tool with `releases` alias.
22
+ * Add `version` tool.
23
+ * Add an ability to release new `major`, `minor` or `patch` version.
24
+ Just specify keyword instead of number and it'll increase correctly.
25
+ * Print `git diff` for files which will be commited on `release`.
26
+ * Drop Ruby 2.4 support.
27
+ [Support of Ruby 2.4 has ended](https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/).
28
+ * Add and use `memery` dependency.
29
+ * Update `rubocop`, `remark`.
30
+
31
+ ## 0.4.0 (2020-09-21)
32
+
33
+ * Improve version update script, support files with other String constants.
34
+ * Update bundle.
35
+
5
36
  ## 0.3.0 (2020-07-11)
6
37
 
7
38
  * Add support for Ruby 2.4
data/README.md CHANGED
@@ -35,7 +35,15 @@ gem install gem_toys
35
35
  ```ruby
36
36
  # .toys.rb
37
37
  require 'gem_toys'
38
- expand GemToys::Template
38
+ expand GemToys::Template,
39
+ ## default is `CHANGELOG.md`
40
+ changelog_file_name: 'ChangeLog.md',
41
+ ## default is `## master (unreleased)`
42
+ unreleased_title: '## Unreleased',
43
+ ## default is `"lib/#{project_name_with_slashes_instead_dashes}/version.rb"`
44
+ version_file_path: 'lib/my-awesome_gem.rb',
45
+ ## default is `v`, so tags are like `v4.1.0`
46
+ version_tag_prefix: ''
39
47
 
40
48
  # `gem` namespace created, aliases are optional, but handful
41
49
  alias_tool :g, :gem
@@ -73,8 +81,7 @@ Then, run `toys rspec` to run the tests.
73
81
 
74
82
  To install this gem onto your local machine, run `toys gem install`.
75
83
 
76
- To release a new version, run `toys gem release %version%`.
77
- See how it works [here](https://github.com/AlexWayfer/gem_toys#release).
84
+ To release a new version, run `toys gem release %version%`. See how it works [here](#release).
78
85
 
79
86
  ## Contributing
80
87
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'date'
4
3
  require 'toys-core'
5
4
 
6
5
  require_relative 'template/common_code'
@@ -10,10 +9,17 @@ module GemToys
10
9
  class Template
11
10
  include Toys::Template
12
11
 
13
- attr_reader :version_file_path, :unreleased_title
12
+ attr_reader :changelog_file_name, :version_file_path, :version_tag_prefix, :unreleased_title
14
13
 
15
- def initialize(version_file_path: nil, unreleased_title: '## master (unreleased)')
14
+ def initialize(
15
+ changelog_file_name: 'CHANGELOG.md',
16
+ version_file_path: nil,
17
+ version_tag_prefix: 'v',
18
+ unreleased_title: '## master (unreleased)'
19
+ )
20
+ @changelog_file_name = changelog_file_name
16
21
  @version_file_path = version_file_path
22
+ @version_tag_prefix = version_tag_prefix
17
23
  @unreleased_title = unreleased_title
18
24
  end
19
25
 
@@ -32,6 +38,8 @@ module GemToys
32
38
  @template = template
33
39
 
34
40
  sh 'gem build'
41
+
42
+ require 'fileutils'
35
43
  FileUtils.mkdir_p pkg_directory
36
44
  FileUtils.mv "#{context_directory}/#{gem_file_name}", current_gem_file
37
45
  end
@@ -46,94 +54,28 @@ module GemToys
46
54
  end
47
55
  end
48
56
 
49
- tool :release do
50
- required_arg :version
51
-
57
+ tool :version do
52
58
  to_run do
53
59
  @template = template
54
60
 
55
- update_version_file
56
-
57
- ## Update CHANGELOG
58
- update_changelog_file
59
-
60
- ## Build new gem file
61
- exec_tool 'gem build'
62
-
63
- wait_for_manual_check
64
-
65
- ## Checkout to a new git branch, required for protected `master` with CI
66
- # sh "git switch -c v#{version}"
67
-
68
- commit_changes
69
-
70
- ## Tag commit
71
- puts 'Tagging the commit...'
72
- sh "git tag -a v#{version} -m 'Version #{version}'"
73
-
74
- ## Push commit
75
- puts 'Pushing commit...'
76
- sh 'git push'
77
-
78
- ## Push tags
79
- puts 'Pushing tags...'
80
- sh 'git push --tags'
81
-
82
- puts 'Pushing gem...'
83
- sh "gem push #{current_gem_file}"
84
- end
85
-
86
- private
87
-
88
- def update_version_file
89
- puts 'Updating version file...'
90
-
91
- File.write version_file_path, version_file_content.sub(/'.+'/, "'#{version}'")
92
- end
93
-
94
- TODAY = Date.today.to_s
95
-
96
- def update_changelog_file
97
- puts 'Updating changelog file...'
98
-
99
- @changelog_lines = File.readlines(changelog_file_path)
100
-
101
- existing_line = find_version_line_in_changelog_file
102
-
103
- if existing_line
104
- return if (existing_date = existing_line.match(/\((.*)\)/)[1]) == TODAY
105
-
106
- abort "There is already #{version} version with date #{existing_date}"
61
+ version = rubygems_versions.find(-> { current_version_hash }) do |rubygems_version|
62
+ rubygems_version[:number] == current_version
107
63
  end
108
64
 
109
- File.write changelog_file_path, new_changelog_content
110
- end
111
-
112
- def find_version_line_in_changelog_file
113
- @changelog_lines.find { |line| line.start_with? "## #{version} " }
65
+ puts_versions [version]
114
66
  end
67
+ end
115
68
 
116
- def new_changelog_content
117
- unreleased_title = @template.unreleased_title
118
- @changelog_lines.insert(
119
- @changelog_lines.index("#{unreleased_title}\n") + 2,
120
- '#' * unreleased_title.scan(/^#+/).first.size + " #{version} (#{TODAY})\n\n"
121
- ).join
122
- end
123
-
124
- def commit_changes
125
- puts 'Committing changes...'
126
-
127
- sh "git add #{version_file_path} #{changelog_file_path}"
128
-
129
- sh "git commit -m 'Update version to #{version}'"
130
- end
69
+ require_relative 'template/versions'
70
+ expand Template::Versions,
71
+ version_file_path: template.version_file_path
131
72
 
132
- def wait_for_manual_check
133
- STDOUT.puts 'Please, validate files and commits before pushing.'
134
- STDIN.gets
135
- end
136
- end
73
+ require_relative 'template/release'
74
+ expand Template::Release,
75
+ changelog_file_name: template.changelog_file_name,
76
+ version_file_path: template.version_file_path,
77
+ version_tag_prefix: template.version_tag_prefix,
78
+ unreleased_title: template.unreleased_title
137
79
  end
138
80
  end
139
81
  end
@@ -1,19 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'memery'
4
+
3
5
  module GemToys
4
6
  ## Template with gem tools, should be expanded in toys file
5
7
  class Template
6
8
  ## Module for common code between nested tools
7
9
  module CommonCode
10
+ include Memery
11
+
8
12
  private
9
13
 
10
- def project_name
11
- @project_name ||= File.basename context_directory
14
+ memoize def project_name
15
+ File.basename context_directory
12
16
  end
13
17
 
14
- def version_file_path
15
- @version_file_path ||=
16
- @template.version_file_path ||
18
+ memoize def version_file_path
19
+ @template.version_file_path ||
17
20
  begin
18
21
  project_path = project_name.tr '-', '/'
19
22
  File.join context_directory, 'lib', project_path, 'version.rb'
@@ -24,25 +27,58 @@ module GemToys
24
27
  File.read version_file_path
25
28
  end
26
29
 
27
- def current_version
28
- @current_version ||= version_file_content.match(/VERSION = '(.+)'/)[1]
30
+ memoize def current_version
31
+ version_file_content.match(/VERSION = '(.+)'/)[1]
29
32
  end
30
33
 
31
- def changelog_file_path
32
- @changelog_file_path ||= File.join context_directory, 'CHANGELOG.md'
34
+ memoize def changelog_file_path
35
+ File.join context_directory, @template.changelog_file_name
33
36
  end
34
37
 
35
- def gem_file_name
36
- @gem_file_name ||= "#{project_name}-#{current_version}.gem"
38
+ memoize def gem_file_name
39
+ "#{project_name}-#{current_version}.gem"
37
40
  end
38
41
 
39
- def pkg_directory
40
- @pkg_directory ||= "#{context_directory}/pkg"
42
+ memoize def pkg_directory
43
+ "#{context_directory}/pkg"
41
44
  end
42
45
 
43
46
  def current_gem_file
44
47
  "#{pkg_directory}/#{gem_file_name}"
45
48
  end
49
+
50
+ memoize def rubygems_connection
51
+ require 'faraday'
52
+ require 'faraday_middleware'
53
+
54
+ Faraday.new 'https://rubygems.org/api/v1' do |conn|
55
+ conn.response :json, parser_options: { symbolize_names: true }
56
+ end
57
+ end
58
+
59
+ memoize def rubygems_versions
60
+ rubygems_connection.get("versions/#{project_name}.json").body
61
+ end
62
+
63
+ def current_version_hash
64
+ { number: current_version, created_at: 'unreleased' }
65
+ end
66
+
67
+ def puts_versions(versions)
68
+ require 'date'
69
+
70
+ longest_version_number = versions.map { |version| version[:number].length }.max
71
+
72
+ versions.each do |version|
73
+ created_at = begin
74
+ DateTime.parse(version[:created_at]).strftime('%F %R')
75
+ rescue Date::Error
76
+ version[:created_at]
77
+ end
78
+
79
+ puts "#{version[:number].ljust(longest_version_number)} (#{created_at})"
80
+ end
81
+ end
46
82
  end
47
83
  end
48
84
  end
@@ -0,0 +1,114 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'release/changelog'
4
+ require_relative 'release/git'
5
+
6
+ module GemToys
7
+ class Template
8
+ ## Template with gem release tool, expanding internally
9
+ class Release
10
+ include Toys::Template
11
+
12
+ attr_reader :changelog_file_name, :version_file_path, :version_tag_prefix, :unreleased_title
13
+
14
+ def initialize(
15
+ changelog_file_name:,
16
+ version_file_path:,
17
+ version_tag_prefix:,
18
+ unreleased_title:
19
+ )
20
+ @changelog_file_name = changelog_file_name
21
+ @version_file_path = version_file_path
22
+ @version_tag_prefix = version_tag_prefix
23
+ @unreleased_title = unreleased_title
24
+ end
25
+
26
+ on_expand do |template|
27
+ tool :release do
28
+ include Release::Changelog
29
+ include Release::Git
30
+
31
+ required_arg :new_version
32
+
33
+ to_run do
34
+ require 'date'
35
+
36
+ @template = template
37
+
38
+ @today = Date.today.to_s
39
+
40
+ handle_new_version
41
+
42
+ update_version_file
43
+
44
+ ## Update CHANGELOG
45
+ update_changelog_file
46
+
47
+ ## Build new gem file
48
+ exec_tool 'gem build'
49
+
50
+ wait_for_manual_check
51
+
52
+ ## Commit, tag, push
53
+ process_git
54
+
55
+ puts 'Pushing gem...'
56
+ sh "gem push #{current_gem_file}"
57
+ end
58
+
59
+ private
60
+
61
+ self::VERSION_TYPES = %w[
62
+ major
63
+ minor
64
+ patch
65
+ ].freeze
66
+
67
+ def handle_new_version
68
+ ## https://github.com/dazuma/toys/issues/103
69
+ @new_version =
70
+ if (version_index = self.class::VERSION_TYPES.index(new_version))
71
+ current_version_parts =
72
+ current_version.split('.')[0..(self.class::VERSION_TYPES.count - 1)]
73
+ handle_keyword_in_new_version current_version_parts, version_index
74
+ else
75
+ new_version
76
+ end
77
+
78
+ clear_memery_cache! :current_version
79
+ end
80
+
81
+ def handle_keyword_in_new_version(current_version_parts, version_index)
82
+ current_version_parts.map.with_index do |version_part, index|
83
+ if index < version_index
84
+ version_part
85
+ elsif index == version_index
86
+ Integer(version_part) + 1
87
+ else
88
+ 0
89
+ end
90
+ end.join('.')
91
+ end
92
+
93
+ def update_version_file
94
+ puts 'Updating version file...'
95
+
96
+ File.write(
97
+ version_file_path,
98
+ version_file_content.sub(/(VERSION = )'.+'/, "\\1'#{@new_version}'")
99
+ )
100
+ end
101
+
102
+ def wait_for_manual_check
103
+ $stdout.puts
104
+ sh "git diff #{version_file_path} #{changelog_file_path}"
105
+ $stdout.puts
106
+ $stdout.puts 'Please, validate files before committing and pushing!'
107
+ $stdout.puts 'Press anything to continue, Ctrl+C to cancel.'
108
+ $stdin.gets
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GemToys
4
+ class Template
5
+ class Release
6
+ ## Helper module with methods about CHANGELOG file for `release` tool
7
+ module Changelog
8
+ private
9
+
10
+ def update_changelog_file
11
+ puts 'Updating changelog file...'
12
+
13
+ @changelog_lines = File.readlines(changelog_file_path)
14
+
15
+ existing_line = @changelog_lines.find { |line| line.start_with? "## #{@new_version} " }
16
+
17
+ if existing_line
18
+ return if (existing_date = existing_line.match(/\((.*)\)/)[1]) == @today
19
+
20
+ abort "There is already #{version} version with date #{existing_date}"
21
+ end
22
+
23
+ File.write changelog_file_path, new_changelog_content
24
+ end
25
+
26
+ def new_changelog_content
27
+ unreleased_title = @template.unreleased_title
28
+
29
+ unreleased_title_index = @changelog_lines.index("#{unreleased_title}\n")
30
+
31
+ abort_without_unreleased_title unless unreleased_title_index
32
+
33
+ @changelog_lines.insert(
34
+ unreleased_title_index + 2,
35
+ '#' * unreleased_title.scan(/^#+/).first.size + " #{@new_version} (#{@today})\n\n"
36
+ ).join
37
+ end
38
+
39
+ def abort_without_unreleased_title
40
+ abort <<~TEXT
41
+ `#{@template.unreleased_title}` not found in the `#{@template.changelog_file_name}` as the title for unreleased changes.
42
+ Please, use `:unreleased_title` option if you have non-default one.
43
+ TEXT
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GemToys
4
+ class Template
5
+ class Release
6
+ ## Helper module with methods about `git` for `release` tool
7
+ module Git
8
+ private
9
+
10
+ def process_git
11
+ new_version_git_tag = "#{@template.version_tag_prefix}#{@new_version}"
12
+
13
+ ## Checkout to a new git branch, required for protected `master` with CI
14
+ # sh "git switch -c #{new_version_git_tag}"
15
+
16
+ commit_changes
17
+
18
+ ## Tag commit
19
+ puts 'Tagging the commit...'
20
+ sh "git tag -a #{new_version_git_tag} -m 'Version #{@new_version}'"
21
+
22
+ ## Push commit
23
+ puts 'Pushing commit...'
24
+ sh 'git push'
25
+
26
+ ## Push tags
27
+ puts 'Pushing tags...'
28
+ sh 'git push --tags'
29
+ end
30
+
31
+ def commit_changes
32
+ puts 'Committing changes...'
33
+
34
+ sh "git add #{version_file_path} #{changelog_file_path}"
35
+
36
+ sh "git commit -m 'Update version to #{@new_version}'"
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GemToys
4
+ class Template
5
+ ## Template with gem versions tool, expanding internally
6
+ class Versions
7
+ include Toys::Template
8
+
9
+ attr_reader :version_file_path
10
+
11
+ def initialize(version_file_path:)
12
+ @version_file_path = version_file_path
13
+ end
14
+
15
+ on_expand do |template|
16
+ tool :versions do
17
+ to_run do
18
+ @template = template
19
+
20
+ versions = rubygems_versions
21
+
22
+ versions.unshift current_version_hash if current_version != versions.first[:number]
23
+
24
+ puts_versions versions
25
+ end
26
+ end
27
+ alias_tool :releases, :versions
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GemToys
4
- VERSION = '0.3.0'
4
+ VERSION = '0.7.0'
5
5
  end
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.7.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: 2020-07-11 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: alt_memery
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.1'
27
+ - !ruby/object:Gem::Dependency
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'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: pry-byebug
15
57
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +86,28 @@ dependencies:
44
86
  requirements:
45
87
  - - "~>"
46
88
  - !ruby/object:Gem::Version
47
- version: 0.10.0
89
+ version: 0.11.0
48
90
  type: :development
49
91
  prerelease: false
50
92
  version_requirements: !ruby/object:Gem::Requirement
51
93
  requirements:
52
94
  - - "~>"
53
95
  - !ruby/object:Gem::Version
54
- version: 0.10.0
96
+ version: 0.11.0
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: codecov
57
99
  requirement: !ruby/object:Gem::Requirement
58
100
  requirements:
59
101
  - - "~>"
60
102
  - !ruby/object:Gem::Version
61
- version: 0.1.20
103
+ version: 0.4.2
62
104
  type: :development
63
105
  prerelease: false
64
106
  version_requirements: !ruby/object:Gem::Requirement
65
107
  requirements:
66
108
  - - "~>"
67
109
  - !ruby/object:Gem::Version
68
- version: 0.1.20
110
+ version: 0.4.2
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: rspec
71
113
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +128,28 @@ dependencies:
86
128
  requirements:
87
129
  - - "~>"
88
130
  - !ruby/object:Gem::Version
89
- version: 0.18.0
131
+ version: 0.21.2
90
132
  type: :development
91
133
  prerelease: false
92
134
  version_requirements: !ruby/object:Gem::Requirement
93
135
  requirements:
94
136
  - - "~>"
95
137
  - !ruby/object:Gem::Version
96
- version: 0.18.0
138
+ version: 0.21.2
97
139
  - !ruby/object:Gem::Dependency
98
140
  name: rubocop
99
141
  requirement: !ruby/object:Gem::Requirement
100
142
  requirements:
101
143
  - - "~>"
102
144
  - !ruby/object:Gem::Version
103
- version: 0.87.0
145
+ version: '1.2'
104
146
  type: :development
105
147
  prerelease: false
106
148
  version_requirements: !ruby/object:Gem::Requirement
107
149
  requirements:
108
150
  - - "~>"
109
151
  - !ruby/object:Gem::Version
110
- version: 0.87.0
152
+ version: '1.2'
111
153
  - !ruby/object:Gem::Dependency
112
154
  name: rubocop-performance
113
155
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +170,14 @@ dependencies:
128
170
  requirements:
129
171
  - - "~>"
130
172
  - !ruby/object:Gem::Version
131
- version: '1.0'
173
+ version: '2.0'
132
174
  type: :development
133
175
  prerelease: false
134
176
  version_requirements: !ruby/object:Gem::Requirement
135
177
  requirements:
136
178
  - - "~>"
137
179
  - !ruby/object:Gem::Version
138
- version: '1.0'
180
+ version: '2.0'
139
181
  description: 'Toys template for gems, like building, releasing, etc.
140
182
 
141
183
  '
@@ -151,6 +193,10 @@ files:
151
193
  - lib/gem_toys.rb
152
194
  - lib/gem_toys/template.rb
153
195
  - lib/gem_toys/template/common_code.rb
196
+ - lib/gem_toys/template/release.rb
197
+ - lib/gem_toys/template/release/changelog.rb
198
+ - lib/gem_toys/template/release/git.rb
199
+ - lib/gem_toys/template/versions.rb
154
200
  - lib/gem_toys/version.rb
155
201
  homepage: https://github.com/AlexWayfer/gem_toys
156
202
  licenses:
@@ -167,14 +213,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
213
  requirements:
168
214
  - - ">="
169
215
  - !ruby/object:Gem::Version
170
- version: '2.4'
216
+ version: '2.5'
217
+ - - "<"
218
+ - !ruby/object:Gem::Version
219
+ version: '4'
171
220
  required_rubygems_version: !ruby/object:Gem::Requirement
172
221
  requirements:
173
222
  - - ">="
174
223
  - !ruby/object:Gem::Version
175
224
  version: '0'
176
225
  requirements: []
177
- rubygems_version: 3.1.2
226
+ rubygems_version: 3.2.3
178
227
  signing_key:
179
228
  specification_version: 4
180
229
  summary: Toys template for gems