bake-modernize 0.17.6 → 0.17.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/modernize/gemspec.rb +6 -15
- data/lib/bake/modernize/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5316db6113f130b427d19691715b23d2d906139d87079575302c3202b139eb3
|
4
|
+
data.tar.gz: 000f9dee729c01c39a0eedc8da483d41d4a3741843299316c4a43dd003eb3c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a78d60925b612da82d380dc256d62afdff8ffb24af2c422155d483797ebd05d3ca8985b528d3dba4af078e984167a6ef67434ce90e31d58bddcb2ecd0940fa
|
7
|
+
data.tar.gz: fdf06d4fd507ea78f1f8fae4309b58ee826ddb701e0b4aef2e43e1f2fc0d20498fb23013f6b18484d629c27251fde6fdb597f211ee59d3ca27a6a7bc62089be3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/modernize/gemspec.rb
CHANGED
@@ -14,7 +14,6 @@ def gemspec
|
|
14
14
|
end
|
15
15
|
|
16
16
|
# The latest end-of-life Ruby version.
|
17
|
-
LATEST_END_OF_LIFE_RUBY = ::Gem::Version.new("2.7")
|
18
17
|
MINIMUM_RUBY_VERSION = ::Gem::Requirement.new(">= 3.0")
|
19
18
|
|
20
19
|
# Rewrite the specified gemspec.
|
@@ -26,7 +25,7 @@ def update(path: default_gemspec_path, output: $stdout)
|
|
26
25
|
version_path = version_path(root)
|
27
26
|
|
28
27
|
constant = File.read(version_path)
|
29
|
-
.scan(/module\s+(.*?)$/)
|
28
|
+
.scan(/(?:class|module)\s+(.*?)$/)
|
30
29
|
.flatten
|
31
30
|
.join("::")
|
32
31
|
|
@@ -88,20 +87,11 @@ def update(path: default_gemspec_path, output: $stdout)
|
|
88
87
|
output.puts "\tspec.extensions = #{extensions.inspect}"
|
89
88
|
end
|
90
89
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
Console.logger.warn(self, "Required Ruby version #{required_ruby_version} is end-of-life!")
|
95
|
-
end
|
96
|
-
|
97
|
-
output.puts "\t"
|
98
|
-
output.puts "\tspec.required_ruby_version = #{required_ruby_version.to_s.inspect}"
|
99
|
-
end
|
100
|
-
else
|
101
|
-
output.puts "\t"
|
102
|
-
output.puts "\tspec.required_ruby_version = #{MINIMUM_RUBY_VERSION.to_s.dump}"
|
103
|
-
end
|
90
|
+
# Update the required Ruby version:
|
91
|
+
output.puts "\t"
|
92
|
+
output.puts "\tspec.required_ruby_version = #{MINIMUM_RUBY_VERSION.to_s.dump}"
|
104
93
|
|
94
|
+
# Update the required Rubygems version:
|
105
95
|
if spec.runtime_dependencies.any?
|
106
96
|
output.puts "\t"
|
107
97
|
spec.runtime_dependencies.sort.each do |dependency|
|
@@ -109,6 +99,7 @@ def update(path: default_gemspec_path, output: $stdout)
|
|
109
99
|
end
|
110
100
|
end
|
111
101
|
|
102
|
+
# Try to move development dependencies to `gems.rb`:
|
112
103
|
if spec.development_dependencies.any?
|
113
104
|
unless move_development_dependencies(spec.development_dependencies)
|
114
105
|
output.puts "\t"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-modernize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date: 2023-
|
41
|
+
date: 2023-07-13 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: async-http
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
|
-
rubygems_version: 3.4.
|
162
|
+
rubygems_version: 3.4.10
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Automatically modernize parts of your project/gem.
|
metadata.gz.sig
CHANGED
Binary file
|