configure_trusted_publisher 0.1.2 → 0.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5df3ee4bdd488d5f14ee555fb5a9d1604615f523fab0397b992b7afcee8a0527
|
4
|
+
data.tar.gz: acfed99642dd587cb9bc0e03719de8349415b69704df949132653f984457ae98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48d61e87dd4240916c505a6adad16eeb7a3d85d426d37c6692775fd4921fef00885285b95476de49a86085a716ea85aec028d12e2e457d9b5532432c8048f407
|
7
|
+
data.tar.gz: e9db9496d534fb4025f8bc3ca058a47a3cb5ef9ba741e8a13c2c3e3a34bac740c334b1ae55258412b38e820d9043f61a81ba9da7a4f2c7f68cd0b6b96c6b8335
|
@@ -5,7 +5,9 @@ require "command_kit/commands"
|
|
5
5
|
require "command_kit/interactive"
|
6
6
|
require "io/console"
|
7
7
|
|
8
|
+
require "bundler"
|
8
9
|
require "json"
|
10
|
+
require "open3"
|
9
11
|
require "rubygems/gemcutter_utilities"
|
10
12
|
|
11
13
|
Gem.configuration.verbose = true
|
@@ -142,9 +144,10 @@ module ConfigureTrustedPublisher
|
|
142
144
|
rubygem_name = gemspec_source.specs.first.name
|
143
145
|
end
|
144
146
|
|
145
|
-
|
146
|
-
|
147
|
-
|
147
|
+
Open3.capture2e("bundle", "exec", "rake", "release", "--dry-run", chdir: repository).then do |output, status|
|
148
|
+
unless status.success?
|
149
|
+
abort "bundle exec rake release is not configured for #{rubygem_name} in #{repository}:\n#{output}"
|
150
|
+
end
|
148
151
|
end
|
149
152
|
|
150
153
|
puts "Configuring trusted publisher for #{rubygem_name} in #{File.expand_path(repository)} for " \
|