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: 60ef9776995d0df14b680f2784c9085b0b09038fc08838c8c879b17295c2e21a
4
- data.tar.gz: bd3bea67d36e229955c7a380d3c9cfe26d1fe2d1860d3cea01ddb9e7c5fe3543
3
+ metadata.gz: 5df3ee4bdd488d5f14ee555fb5a9d1604615f523fab0397b992b7afcee8a0527
4
+ data.tar.gz: acfed99642dd587cb9bc0e03719de8349415b69704df949132653f984457ae98
5
5
  SHA512:
6
- metadata.gz: 74dfceb0bbeb736f2ea3dd12165d5271f56d7d37b72ce41755838a363484ca100a1c8b0977327755ab8da0a3e5b561760dff11006a33d377bed35a633ebf2613
7
- data.tar.gz: c44f734fcc3cb03775f5c24c70121e7d4db90d9889cc2eedfb1f1edb5258cff46b60edc66424ecbe8875474d6950fa29ff85ca51102d4cf2d17eb2f99e1288dd
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
- unless system("rake", "release", "--dry-run", chdir: repository, exception: false, out: File::NULL,
146
- err: File::NULL)
147
- 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
148
151
  end
149
152
 
150
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.2"
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.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins