gem-release 2.2.1 → 2.2.3.alpha1

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: 9ae6056b33dcdce5bdd6502c3cc50b1c590f990f2784cfc37f3592ef34f4bc71
4
- data.tar.gz: 7ed57cade452ca137852a145add815b6deaa003a5c6d4e37eea2a2598d4220f9
3
+ metadata.gz: e86d658e65e82a15a6a990555ce4fbae75d3ab1bc3caec5a4b9a4dacc8ae9db9
4
+ data.tar.gz: 89bdbefeb343b8c5a7bfd3e4ab100b6b6a398452d40a98638af96a92a82226e9
5
5
  SHA512:
6
- metadata.gz: 8e2cb823902cb3f546bb2b24369679d96dcdcd4dc44f879b3aaada26127d68f1f87a4c5c2305340807d4780dbe10d8a1bc8513fba51bb382740c1ad4f7195df3
7
- data.tar.gz: a90b07eccca5a12377112712ca45c9f10c78e306dcccdf10d0bcdf23f3790f9f384d04d00b7b461e2f5e39bfb4de6fa01b26db13746ebf4a129f9bc3bcd1d3c5
6
+ metadata.gz: 83bfb283e9e31554875f4e1fc69d2f8c2f523e33690b7ae047104ee50040a9b17a3813ffe8764479e7fff5138c137b8a6b0be94362b0a1c5cf77f5296d773203
7
+ data.tar.gz: 415f5af0c03dce7f2fff0184595eec221fe722e831e65cd2c87ef6b020dca499e6018607cc6d5944b5a70955d8cc456c2c8dbbc7a68415331319dd426b386eb2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.2.2 - 2021-05-31
4
+
5
+ ### Fixed
6
+
7
+ - Add missing require for `fileutils`
8
+ (Issue: https://github.com/svenfuchs/gem-release/issues/100)
9
+
3
10
  ## v2.2.1 - 2021-01-22
4
11
 
5
12
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,70 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gem-release (2.2.1)
4
+ gem-release (2.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- addressable (2.7.0)
10
- public_suffix (>= 2.0.2, < 5.0)
11
- builder (3.2.4)
12
- crack (0.4.4)
13
- diff-lcs (1.4.4)
14
- docile (1.3.2)
15
- faraday (1.1.0)
16
- multipart-post (>= 1.2, < 3)
17
- ruby2_keywords
18
- geminabox (1.2.0)
9
+ addressable (2.8.7)
10
+ public_suffix (>= 2.0.2, < 7.0)
11
+ bigdecimal (3.1.8)
12
+ builder (3.3.0)
13
+ crack (1.0.0)
14
+ bigdecimal
15
+ rexml
16
+ diff-lcs (1.5.1)
17
+ docile (1.4.1)
18
+ faraday (2.12.2)
19
+ faraday-net_http (>= 2.0, < 3.5)
20
+ json
21
+ logger
22
+ faraday-net_http (3.4.0)
23
+ net-http (>= 0.5.0)
24
+ geminabox (2.1.0)
19
25
  builder
20
- faraday
26
+ faraday (> 1.0, < 3.0)
21
27
  httpclient (>= 2.2.7)
22
28
  nesty
23
29
  reentrant_flock
24
- sinatra (>= 1.2.7)
25
- hashdiff (1.0.1)
30
+ sinatra (~> 2.0)
31
+ hashdiff (1.1.2)
26
32
  httpclient (2.8.3)
27
- multipart-post (2.1.1)
28
- mustermann (1.1.1)
33
+ json (2.9.0)
34
+ logger (1.6.3)
35
+ mustermann (2.0.2)
29
36
  ruby2_keywords (~> 0.0.1)
30
37
  nesty (1.0.2)
31
- public_suffix (4.0.6)
32
- rack (2.2.3)
33
- rack-protection (2.1.0)
38
+ net-http (0.6.0)
39
+ uri
40
+ public_suffix (6.0.1)
41
+ rack (2.2.10)
42
+ rack-protection (2.2.4)
34
43
  rack
35
44
  reentrant_flock (0.1.1)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.0)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.0)
45
+ rexml (3.4.0)
46
+ rspec (3.13.0)
47
+ rspec-core (~> 3.13.0)
48
+ rspec-expectations (~> 3.13.0)
49
+ rspec-mocks (~> 3.13.0)
50
+ rspec-core (3.13.2)
51
+ rspec-support (~> 3.13.0)
52
+ rspec-expectations (3.13.3)
43
53
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-mocks (3.10.0)
54
+ rspec-support (~> 3.13.0)
55
+ rspec-mocks (3.13.2)
46
56
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.10.0)
48
- rspec-support (3.10.0)
49
- ruby2_keywords (0.0.2)
50
- simplecov (0.19.1)
57
+ rspec-support (~> 3.13.0)
58
+ rspec-support (3.13.2)
59
+ ruby2_keywords (0.0.5)
60
+ simplecov (0.22.0)
51
61
  docile (~> 1.1)
52
62
  simplecov-html (~> 0.11)
53
- simplecov-html (0.12.3)
63
+ simplecov_json_formatter (~> 0.1)
64
+ simplecov-html (0.13.1)
54
65
  simplecov-lcov (0.8.0)
55
- sinatra (2.1.0)
56
- mustermann (~> 1.0)
66
+ simplecov_json_formatter (0.1.4)
67
+ sinatra (2.2.4)
68
+ mustermann (~> 2.0)
57
69
  rack (~> 2.2)
58
- rack-protection (= 2.1.0)
70
+ rack-protection (= 2.2.4)
59
71
  tilt (~> 2.0)
60
- tilt (2.0.10)
61
- webmock (3.10.0)
72
+ tilt (2.4.0)
73
+ uri (1.0.2)
74
+ webmock (3.1.1)
62
75
  addressable (>= 2.3.6)
63
76
  crack (>= 0.3.2)
64
- hashdiff (>= 0.4.0, < 2.0.0)
77
+ hashdiff
65
78
 
66
79
  PLATFORMS
67
- ruby
80
+ arm64-darwin-21
81
+ arm64-darwin-22
68
82
 
69
83
  DEPENDENCIES
70
84
  gem-release!
@@ -75,4 +89,4 @@ DEPENDENCIES
75
89
  webmock
76
90
 
77
91
  BUNDLED WITH
78
- 2.1.4
92
+ 2.6.1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # gem release [![Build Status](https://secure.travis-ci.org/svenfuchs/gem-release.svg)](http://travis-ci.org/svenfuchs/gem-release)
1
+ # gem release
2
2
 
3
3
  This gem plugin aims at making gem development easier by automating repetitive work based on conventions, configuration, and templates.
4
4
 
@@ -8,10 +8,10 @@ It adds the commands `bootstrap`, `gemspec`, `bump`, `tag` and a `release` to th
8
8
  | ---------------------- | ------------ |
9
9
  | Gem name | gem-release |
10
10
  | License | [MIT](https://github.com/svenfuchs/gem-release/blob/master/LICENSE.md) |
11
- | Version | [![Gem Version](https://badge.fury.io/rb/gem-release.svg)](http://badge.fury.io/rb/gem-release) |
12
- | Continuous integration | [![GitHub Build Status](https://img.shields.io/github/workflow/status/svenfuchs/gem-release/Tests)](https://github.com/svenfuchs/gem-release/actions?query=workflow%3ATests) |
13
- | Test coverage | [![Coverage Status](https://coveralls.io/repos/svenfuchs/gem-release/badge.svg)](https://coveralls.io/r/svenfuchs/gem-release) |
14
- | Documentation | [Documentation](http://rdoc.info/github/svenfuchs/gem-release/frames) |
11
+ | Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](https://badge.fury.io/rb/gem-release) |
12
+ | Continuous integration | [![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/svenfuchs/gem-release/tests.yaml?branch=master&style=flat-square)](https://github.com/svenfuchs/gem-release/actions/workflows/tests.yaml) |
13
+ | Test coverage | [![Coverage Status](https://img.shields.io/coveralls/svenfuchs/gem-release.svg?style=flat-square)](https://coveralls.io/r/svenfuchs/gem-release) |
14
+ | Documentation | [Documentation](https://www.rubydoc.info/gems/gem-release) |
15
15
  | Credits | [Contributors](https://github.com/svenfuchs/gem-release/graphs/contributors) |
16
16
 
17
17
  # Table of contents
@@ -209,9 +209,9 @@ gem_name - name of the gem (optional, will use the directory name, or all gemspe
209
209
  ### Options
210
210
 
211
211
  ```
212
- -v, --version VERSION Target version: next [major|minor|patch|pre|release] or a given version number [x.x.x, x.x.x.yyy.z]
212
+ -v, --version VERSION Target version: next [major|minor|patch|pre|release] or a given version number [x.x.x]
213
213
  -c, --[no-]commit Create a commit after incrementing gem version (default: true)
214
- -m, --message Commit message template (default: Bump %{name} to %{version} %{skip_ci})
214
+ -m, --message MESSAGE Commit message template (default: Bump %{name} to %{version} %{skip_ci})
215
215
  --skip-ci Add the [skip ci] tag to the commit message
216
216
  -p, --push Push the new commit to the git remote repository
217
217
  --remote REMOTE Git remote to push to (defaults to origin) (default: origin)
@@ -227,7 +227,7 @@ gem_name - name of the gem (optional, will use the directory name, or all gemspe
227
227
 
228
228
  ### Description
229
229
 
230
- Bumps the version number defined in lib/[gem_name]/version.rb to to a
230
+ Bumps the version number defined in lib/[gem_name]/version.rb to a
231
231
  given, specific version number, or to the next major, minor, patch, or
232
232
  pre-release level.
233
233
 
@@ -248,8 +248,7 @@ major # Bump to the next major level (e.g. 0.0.1 to 1.0.0)
248
248
  minor # Bump to the next minor level (e.g. 0.0.1 to 0.1.0)
249
249
  patch # Bump to the next patch level (e.g. 0.0.1 to 0.0.2)
250
250
  pre|rc|etc # Bump to the next pre-release level (e.g. 0.0.1 to
251
- # 0.1.0.pre.1, 1.0.0.pre.1 to 1.0.0.pre.2)
252
- 1.2.0.pre.3 # Bump to specific version number with provided pre-release level and build number
251
+ # 0.1.0.pre.1, 1.0.0.pre.1 to 1.0.0.pre.2)
253
252
  ```
254
253
 
255
254
  When searching for the version file for a gem named `gem-name`: the
@@ -311,10 +310,12 @@ gem_name - name of the gem (optional, will use the first gemspec, or all gemspec
311
310
  -t, --tag Shortcut for running the `gem tag` command
312
311
  -p, --push Push tag to the remote git repository
313
312
  --recurse Recurse into directories that contain gemspec files
313
+ -g, --github Create a GitHub release
314
+ -d, --description DESCRIPTION Description of the release
315
+ --repo REPO Full name of the repository on GitHub, e.g. svenfuchs/gem-release (defaults to the repo name from the gemspec's homepage if this is a GitHub URL)
316
+ --token TOKEN GitHub OAuth token
314
317
  --[no-]color
315
318
  --pretend
316
- --github Creates a Release on GitHub. Requires GitHub OAuth token passed by `--token TOKEN`
317
- --token GitHub OAuth token. See https://developer.github.com/v3/#oauth2-token-sent-in-a-header for more details.
318
319
  ```
319
320
 
320
321
  ### Description
@@ -679,4 +680,3 @@ echo ':localhost: none' >> ~/.gem/credentials
679
680
  # test release
680
681
  bundle exec gem release --host=http://localhost:9292 --key localhost
681
682
  ```
682
-
data/README.md.erb CHANGED
@@ -1,4 +1,4 @@
1
- # gem release [![Build Status](https://secure.travis-ci.org/svenfuchs/gem-release.svg)](http://travis-ci.org/svenfuchs/gem-release)
1
+ # gem release
2
2
 
3
3
  This gem plugin aims at making gem development easier by automating repetitive work based on conventions, configuration, and templates.
4
4
 
@@ -8,10 +8,10 @@ It adds the commands `bootstrap`, `gemspec`, `bump`, `tag` and a `release` to th
8
8
  | ---------------------- | ------------ |
9
9
  | Gem name | gem-release |
10
10
  | License | [MIT](https://github.com/svenfuchs/gem-release/blob/master/LICENSE.md) |
11
- | Version | [![Gem Version](https://badge.fury.io/rb/gem-release.svg)](http://badge.fury.io/rb/gem-release) |
12
- | Continuous integration | [![Build Status](https://secure.travis-ci.org/svenfuchs/gem-release.svg?branch=master)](https://travis-ci.org/svenfuchs/gem-release) |
13
- | Test coverage | [![Coverage Status](https://coveralls.io/repos/svenfuchs/gem-release/badge.svg)](https://coveralls.io/r/svenfuchs/gem-release) |
14
- | Documentation | [Documentation](http://rdoc.info/github/svenfuchs/gem-release/frames) |
11
+ | Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](https://badge.fury.io/rb/gem-release) |
12
+ | Continuous integration | [![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/svenfuchs/gem-release/tests.yaml?branch=master&style=flat-square)](https://github.com/svenfuchs/gem-release/actions/workflows/tests.yaml) |
13
+ | Test coverage | [![Coverage Status](https://img.shields.io/coveralls/svenfuchs/gem-release.svg?style=flat-square)](https://coveralls.io/r/svenfuchs/gem-release) |
14
+ | Documentation | [Documentation](https://www.rubydoc.info/gems/gem-release) |
15
15
  | Credits | [Contributors](https://github.com/svenfuchs/gem-release/graphs/contributors) |
16
16
 
17
17
  # Table of contents
@@ -180,4 +180,3 @@ echo ':localhost: none' >> ~/.gem/credentials
180
180
  # test release
181
181
  bundle exec gem release --host=http://localhost:9292 --key localhost
182
182
  ```
183
-
Binary file
@@ -8,7 +8,7 @@ module Gem
8
8
  summary 'Bumps one, several, or all gems in this directory.'
9
9
 
10
10
  description <<-str.split("\n").map(&:lstrip).join("\n")
11
- Bumps the version number defined in lib/[gem_name]/version.rb to to a given,
11
+ Bumps the version number defined in lib/[gem_name]/version.rb to a given,
12
12
  specific version number, or to the next major, minor, patch, or pre-release
13
13
  level.
14
14
 
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'fileutils'
1
4
  require 'gem/release/files/template/context'
2
5
 
3
6
  module Gem
@@ -30,6 +33,7 @@ module Gem
30
33
 
31
34
  def write
32
35
  return false if exists?
36
+
33
37
  FileUtils.mkdir_p(File.dirname(target))
34
38
  File.write(target, render)
35
39
  FileUtils.chmod('+x', target) if opts[:executable]
@@ -20,13 +20,13 @@ module Gem
20
20
  end
21
21
 
22
22
  def client
23
- http_client = Net::HTTP.new(uri.host, uri.port)
23
+ http_client = ::Net::HTTP.new(uri.host, uri.port)
24
24
  http_client.use_ssl = (uri.scheme == 'https')
25
25
  http_client
26
26
  end
27
27
 
28
28
  def const
29
- Net::HTTP.const_get(method.to_s.capitalize)
29
+ ::Net::HTTP.const_get(method.to_s.capitalize)
30
30
  end
31
31
  end
32
32
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gem
2
4
  module Release
3
- VERSION = '2.2.1'
5
+ VERSION = '2.2.3.alpha1'
4
6
  end
5
7
  end
@@ -1,14 +1,18 @@
1
- require 'gem/release'
2
- require 'rubygems/command_manager'
1
+ begin
2
+ require 'gem/release'
3
+ require 'rubygems/command_manager'
3
4
 
4
- require 'rubygems/commands/bootstrap_command'
5
- require 'rubygems/commands/bump_command'
6
- require 'rubygems/commands/gemspec_command'
7
- require 'rubygems/commands/release_command'
8
- require 'rubygems/commands/tag_command'
5
+ require 'rubygems/commands/bootstrap_command'
6
+ require 'rubygems/commands/bump_command'
7
+ require 'rubygems/commands/gemspec_command'
8
+ require 'rubygems/commands/release_command'
9
+ require 'rubygems/commands/tag_command'
9
10
 
10
- Gem::CommandManager.instance.register_command :bootstrap
11
- Gem::CommandManager.instance.register_command :bump
12
- Gem::CommandManager.instance.register_command :gemspec
13
- Gem::CommandManager.instance.register_command :release
14
- Gem::CommandManager.instance.register_command :tag
11
+ Gem::CommandManager.instance.register_command :bootstrap
12
+ Gem::CommandManager.instance.register_command :bump
13
+ Gem::CommandManager.instance.register_command :gemspec
14
+ Gem::CommandManager.instance.register_command :release
15
+ Gem::CommandManager.instance.register_command :tag
16
+ rescue LoadError
17
+ # Plugin is sometimes run even on projects without this gem specified as dependency
18
+ end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.3.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
8
8
  - Dan Gebhardt
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2021-01-22 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Release your ruby gems with ease. (What a bold statement for such a tiny
15
14
  plugin ...)
@@ -26,6 +25,7 @@ files:
26
25
  - README.md
27
26
  - README.md.erb
28
27
  - config.ru
28
+ - gem-release-2.2.2.gem
29
29
  - gem-release.gemspec
30
30
  - lib/gem/release.rb
31
31
  - lib/gem/release/cmds.rb
@@ -82,7 +82,6 @@ homepage: https://github.com/svenfuchs/gem-release
82
82
  licenses:
83
83
  - MIT
84
84
  metadata: {}
85
- post_install_message:
86
85
  rdoc_options: []
87
86
  require_paths:
88
87
  - lib
@@ -97,8 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
96
  - !ruby/object:Gem::Version
98
97
  version: '0'
99
98
  requirements: []
100
- rubygems_version: 3.2.6
101
- signing_key:
99
+ rubygems_version: 3.6.1
102
100
  specification_version: 4
103
101
  summary: Release your ruby gems with ease
104
102
  test_files: []