packaging 0.109.2 → 0.109.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packaging/gem.rb +10 -2
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4b1debe2d5b8b3f8eba5525251ff49b861c3934c892ee2e0d022bb6b35fbecb
|
4
|
+
data.tar.gz: 4ccf51e8c80d24ff4ed5cba8422d06e8c33eb96dd5d136cad7e47f5863abfa99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d95cf48ac1b357e1fdd25872db2b123fe7ca542508689e58beab6757b367acc1a323660dc182c99baefc4aea1858236c215c72f6113879a0eb923241d9e2d9a8
|
7
|
+
data.tar.gz: d976fe3c0f19f81fd261232716b121def43096ceecfb9393c005922e69d7bb7a06e1d6ff7ab7b4e9efdf2d0026cc1b0d4d0209f42a5243d5530f886ca7292d9b
|
data/lib/packaging/gem.rb
CHANGED
@@ -48,7 +48,7 @@ module Pkg::Gem
|
|
48
48
|
gem_push_command = "gem push #{file}"
|
49
49
|
gem_push_command << " --host #{options[:host]}" if options[:host]
|
50
50
|
gem_push_command << " --key #{options[:key]}" if options[:key]
|
51
|
-
Pkg::Util::Execution.capture3(gem_push_command)
|
51
|
+
Pkg::Util::Execution.capture3(gem_push_command, true)
|
52
52
|
rescue StandardError => e
|
53
53
|
puts "###########################################"
|
54
54
|
puts "# Publishing to rubygems failed. Make sure your .gem/credentials"
|
@@ -56,7 +56,15 @@ module Pkg::Gem
|
|
56
56
|
puts "###########################################"
|
57
57
|
puts
|
58
58
|
puts e
|
59
|
-
|
59
|
+
# There appears to be a race condition where the rubygems versions api will not
|
60
|
+
# be updated in time between builders attempting to push a gem. We want to avoid
|
61
|
+
# failing here due to gem already being pushed, so if we identify this error
|
62
|
+
# we can just log it and move on. NOTE: the gem push documentation does not
|
63
|
+
# appear to provide a distinct error code for this kind of error so we rely on
|
64
|
+
# string matching the stdout/stderr from the Pkg::Uti::execution method.
|
65
|
+
unless e.message.match(/Repushing of gem versions is not allowed/)
|
66
|
+
raise e
|
67
|
+
end
|
60
68
|
end
|
61
69
|
|
62
70
|
def ship_to_internal_mirror(file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.109.
|
4
|
+
version: 0.109.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet By Perforce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|
@@ -308,28 +308,28 @@ signing_key:
|
|
308
308
|
specification_version: 4
|
309
309
|
summary: Puppet by Perforce packaging automation
|
310
310
|
test_files:
|
311
|
-
- spec/lib/
|
311
|
+
- spec/lib/packaging/gem_spec.rb
|
312
312
|
- spec/lib/packaging/paths_spec.rb
|
313
|
+
- spec/lib/packaging/platforms_spec.rb
|
313
314
|
- spec/lib/packaging/rpm/repo_spec.rb
|
315
|
+
- spec/lib/packaging/util/git_tag_spec.rb
|
316
|
+
- spec/lib/packaging/util/version_spec.rb
|
317
|
+
- spec/lib/packaging/util/net_spec.rb
|
314
318
|
- spec/lib/packaging/util/ship_spec.rb
|
315
319
|
- spec/lib/packaging/util/os_spec.rb
|
316
|
-
- spec/lib/packaging/util/
|
320
|
+
- spec/lib/packaging/util/gpg_spec.rb
|
317
321
|
- spec/lib/packaging/util/jenkins_spec.rb
|
318
|
-
- spec/lib/packaging/util/
|
322
|
+
- spec/lib/packaging/util/git_spec.rb
|
323
|
+
- spec/lib/packaging/util/misc_spec.rb
|
319
324
|
- spec/lib/packaging/util/rake_utils_spec.rb
|
325
|
+
- spec/lib/packaging/util/file_spec.rb
|
320
326
|
- spec/lib/packaging/util/execution_spec.rb
|
321
|
-
- spec/lib/packaging/
|
322
|
-
- spec/lib/packaging/util/version_spec.rb
|
323
|
-
- spec/lib/packaging/util/misc_spec.rb
|
324
|
-
- spec/lib/packaging/util/gpg_spec.rb
|
325
|
-
- spec/lib/packaging/util/git_tag_spec.rb
|
326
|
-
- spec/lib/packaging/deb/repo_spec.rb
|
327
|
-
- spec/lib/packaging/retrieve_spec.rb
|
328
|
-
- spec/lib/packaging/gem_spec.rb
|
327
|
+
- spec/lib/packaging/tar_spec.rb
|
329
328
|
- spec/lib/packaging/config_spec.rb
|
330
|
-
- spec/lib/packaging/repo_spec.rb
|
329
|
+
- spec/lib/packaging/deb/repo_spec.rb
|
330
|
+
- spec/lib/packaging/sign_spec.rb
|
331
331
|
- spec/lib/packaging/deb_spec.rb
|
332
|
-
- spec/lib/packaging/platforms_spec.rb
|
333
332
|
- spec/lib/packaging/artifactory_spec.rb
|
334
|
-
- spec/lib/packaging/
|
335
|
-
- spec/lib/packaging/
|
333
|
+
- spec/lib/packaging/repo_spec.rb
|
334
|
+
- spec/lib/packaging/retrieve_spec.rb
|
335
|
+
- spec/lib/packaging_spec.rb
|