configure_trusted_publisher 0.1.3 → 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: fa9e10544502d63d23b7677b099af4a53e2ae4436cd4cb8e5134cfcd41e541b7
4
- data.tar.gz: f7608581cf5d2cc748630bb8fdf56771e7ce3e6ec8ce93385e30d2f721a7d2e3
3
+ metadata.gz: 5df3ee4bdd488d5f14ee555fb5a9d1604615f523fab0397b992b7afcee8a0527
4
+ data.tar.gz: acfed99642dd587cb9bc0e03719de8349415b69704df949132653f984457ae98
5
5
  SHA512:
6
- metadata.gz: 71ea60d2723ca3d2c49eb7b1a6d3c1ab2bf1b6a95024e5414efd1ddbe57c71d17e1a54bd6c96d75f4c20b32182bf7dc349c7144105b0a4863c7b0ec73cabd62a
7
- data.tar.gz: aeac3236be08f91c5e479e5fe2151b4a58be1c8f9c59d957204ee5fbe147041f1621b0aa26be99a0fa48063898dbaf0140e48f4b7783a2b90156b38dff52e81f
6
+ metadata.gz: 48d61e87dd4240916c505a6adad16eeb7a3d85d426d37c6692775fd4921fef00885285b95476de49a86085a716ea85aec028d12e2e457d9b5532432c8048f407
7
+ data.tar.gz: e9db9496d534fb4025f8bc3ca058a47a3cb5ef9ba741e8a13c2c3e3a34bac740c334b1ae55258412b38e820d9043f61a81ba9da7a4f2c7f68cd0b6b96c6b8335
@@ -7,6 +7,7 @@ require "io/console"
7
7
 
8
8
  require "bundler"
9
9
  require "json"
10
+ require "open3"
10
11
  require "rubygems/gemcutter_utilities"
11
12
 
12
13
  Gem.configuration.verbose = true
@@ -143,9 +144,10 @@ module ConfigureTrustedPublisher
143
144
  rubygem_name = gemspec_source.specs.first.name
144
145
  end
145
146
 
146
- unless system("rake", "release", "--dry-run", chdir: repository, exception: false, out: File::NULL,
147
- err: File::NULL)
148
- abort "rake release is not configured for #{rubygem_name} in #{repository}"
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
149
151
  end
150
152
 
151
153
  puts "Configuring trusted publisher for #{rubygem_name} in #{File.expand_path(repository)} for " \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConfigureTrustedPublisher
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configure_trusted_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins