gem-release 2.2.3 → 2.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73d384c51c55ec620e73118b7443374970f1edcba1ed4efdca1149f8381dca1c
4
- data.tar.gz: cb59561d19776690d7cfee2240dc3b00741795c4a9a7a351d018fd9271d27823
3
+ metadata.gz: 5e4bba6947b3fb51b19e9b1a2481d7393319316a9962a95835ad72bb3f5dd8e7
4
+ data.tar.gz: ddff75faa5137f3d9bfaeefba6b9723cacf62ad7adc61f44f9700666b3e69d31
5
5
  SHA512:
6
- metadata.gz: 5bbac0a75c87a7a0a7f7059dfa93c401276cdc021e42c3cce5a8a135e771e7f70fe2818c0baac985f64fa5c39b1876785bbe3de982af315c8d9b5da763c06d9c
7
- data.tar.gz: f795d1db062d434b2b7747e08c57ac39211a07d3c47e93c593444508f170599328c27489a3de7f5635d45fdbad507aedf912f32a0b79e4e5b2f0e2ee1ba7cc86
6
+ metadata.gz: afc7e126c36c10a174dfc1915cdf9455fcc7b4b049511a9088178c3963ced9c4c065ff939bcd1f9bd9593cbd25e97c2cc6f80d7fe28e1ef69edffb6eeb7f4097
7
+ data.tar.gz: 447bc2204aba8118d90e65c58842a282d25a81d27572130be1a1fff52bc8a19d487b4ff1f376a3b75134f40bcfb0db77e54f625eca170f22a32d18435188e05d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.2.4 - 2024-12-28
4
+
5
+ ### Changed
6
+
7
+ - Remove dependency on `ostruct`
8
+ (PR: https://github.com/svenfuchs/gem-release/pull/112)
9
+
3
10
  ## v2.2.3 - 2024-12-20
4
11
 
5
12
  ### Fixed
data/Gemfile CHANGED
@@ -11,4 +11,6 @@ group :test do
11
11
  gem 'simplecov'
12
12
  gem 'simplecov-lcov'
13
13
  gem 'webmock'
14
+ # For Ruby 3.4 compatibility until this commit of httpclient is released https://github.com/nahi/httpclient/commit/552a56770689e800ad11a21cd06075064736569f
15
+ gem 'mutex_m'
14
16
  end
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gem-release (2.2.2)
4
+ gem-release (2.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  addressable (2.8.7)
10
10
  public_suffix (>= 2.0.2, < 7.0)
11
- bigdecimal (3.1.8)
11
+ bigdecimal (3.1.9)
12
12
  builder (3.3.0)
13
13
  crack (1.0.0)
14
14
  bigdecimal
@@ -30,10 +30,11 @@ GEM
30
30
  sinatra (~> 2.0)
31
31
  hashdiff (1.1.2)
32
32
  httpclient (2.8.3)
33
- json (2.9.0)
34
- logger (1.6.3)
33
+ json (2.9.1)
34
+ logger (1.6.4)
35
35
  mustermann (2.0.2)
36
36
  ruby2_keywords (~> 0.0.1)
37
+ mutex_m (0.3.0)
37
38
  nesty (1.0.2)
38
39
  net-http (0.6.0)
39
40
  uri
@@ -69,12 +70,12 @@ GEM
69
70
  rack (~> 2.2)
70
71
  rack-protection (= 2.2.4)
71
72
  tilt (~> 2.0)
72
- tilt (2.4.0)
73
+ tilt (2.5.0)
73
74
  uri (1.0.2)
74
- webmock (3.1.1)
75
- addressable (>= 2.3.6)
75
+ webmock (3.24.0)
76
+ addressable (>= 2.8.0)
76
77
  crack (>= 0.3.2)
77
- hashdiff
78
+ hashdiff (>= 0.4.0, < 2.0.0)
78
79
 
79
80
  PLATFORMS
80
81
  arm64-darwin-21
@@ -83,10 +84,11 @@ PLATFORMS
83
84
  DEPENDENCIES
84
85
  gem-release!
85
86
  geminabox
87
+ mutex_m
86
88
  rspec
87
89
  simplecov
88
90
  simplecov-lcov
89
91
  webmock
90
92
 
91
93
  BUNDLED WITH
92
- 2.6.1
94
+ 2.6.2
@@ -1,5 +1,4 @@
1
1
  require 'erb'
2
- require 'ostruct'
3
2
  require_relative 'helper/string'
4
3
 
5
4
  module Gem
@@ -7,20 +6,13 @@ module Gem
7
6
  class Data < Struct.new(:git, :gem, :opts)
8
7
  include Helper::String
9
8
 
9
+ KEYS = %i[
10
+ gem_name gem_path module_names author email homepage
11
+ licenses summary description files bin_files
12
+ ].freeze
13
+
10
14
  def data
11
- {
12
- gem_name: gem_name,
13
- gem_path: gem_path,
14
- module_names: module_names,
15
- author: user_name,
16
- email: user_email,
17
- homepage: homepage,
18
- licenses: licenses,
19
- summary: '[summary]',
20
- description: '[description]',
21
- files: files,
22
- bin_files: bin_files
23
- }
15
+ KEYS.map { |key| [key, send(key)] }.to_h
24
16
  end
25
17
 
26
18
  private
@@ -41,11 +33,11 @@ module Gem
41
33
  git.user_login || '[your login]'
42
34
  end
43
35
 
44
- def user_name
36
+ def author
45
37
  git.user_name || '[your name]'
46
38
  end
47
39
 
48
- def user_email
40
+ def email
49
41
  git.user_email || '[your email]'
50
42
  end
51
43
 
@@ -72,6 +64,14 @@ module Gem
72
64
  def strategy
73
65
  STRATEGIES[(opts[:strategy] || :glob).to_sym] || STRATEGIES[:glob]
74
66
  end
67
+
68
+ def summary
69
+ '[summary]'
70
+ end
71
+
72
+ def description
73
+ '[description]'
74
+ end
75
75
  end
76
76
  end
77
77
  end
@@ -2,7 +2,7 @@ module Gem
2
2
  module Release
3
3
  module Files
4
4
  class Template
5
- class Context < OpenStruct
5
+ class Context < Struct.new(*Gem::Release::Data::KEYS)
6
6
  class Const < Struct.new(:type, :names)
7
7
  def define(&block)
8
8
  lines = build(names) { |name| "#{type} #{name}" }
@@ -59,7 +59,7 @@ module Gem
59
59
  end
60
60
 
61
61
  def context
62
- Context.new(data)
62
+ Context.new(*data.values)
63
63
  end
64
64
  end
65
65
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gem
4
4
  module Release
5
- VERSION = '2.2.3'
5
+ VERSION = '2.2.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
8
8
  - Dan Gebhardt
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-20 00:00:00.000000000 Z
11
+ date: 2024-12-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Release your ruby gems with ease. (What a bold statement for such a tiny
14
14
  plugin ...)
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.6.1
98
+ rubygems_version: 3.6.2
99
99
  specification_version: 4
100
100
  summary: Release your ruby gems with ease
101
101
  test_files: []