mcrt 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mcrt.rb +11 -3
- data/mcrt.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09ee1a5de720c829b63b6315ecd0714c8f21576f
|
4
|
+
data.tar.gz: 06acb5d0ea49075d35b743a112864a3b0ee798ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9456d1712cfcff18cef57fa2f9c17f3ee4a29c5a2a0ca65149102070ae8b8d05803c71e471874b5b474214aba62896737be92fcc282184c7397073a5f8abb1e
|
7
|
+
data.tar.gz: b1bc717cab25d557d87acbdf7c9f3e68b96fede501cccdbcdc795aaa21ab00ebee6346dc03b9336dd14d51f7e3ad6edce8b5e1b35d8301cf2e53c240ffb4a5af
|
data/lib/mcrt.rb
CHANGED
@@ -71,12 +71,20 @@ class MavenCentralReleaseTool
|
|
71
71
|
Buildr.repositories.release_to[:username] = username
|
72
72
|
Buildr.repositories.release_to[:password] = password
|
73
73
|
|
74
|
-
project.task(':
|
74
|
+
project.task(':package').invoke
|
75
75
|
|
76
76
|
r = MavenCentralReleaseTool.new
|
77
77
|
r.username = username
|
78
78
|
r.password = password
|
79
79
|
r.user_agent = "Buildr-#{Buildr::VERSION}"
|
80
|
+
while r.get_staging_repositories(profile_name, false).size != 0
|
81
|
+
puts 'Another project currently staging. Waiting for other repository co complete. Please visit the website https://oss.sonatype.org/index.html#stagingRepositories to view the other staging attempts.'
|
82
|
+
sleep 1
|
83
|
+
end
|
84
|
+
puts "Beginning upload to staging repository #{profile_name}"
|
85
|
+
|
86
|
+
project.task(':upload').invoke
|
87
|
+
|
80
88
|
r.release_sole_auto_staging(profile_name)
|
81
89
|
ensure
|
82
90
|
Buildr.repositories.release_to[:url] = release_to_url
|
@@ -112,12 +120,12 @@ class MavenCentralReleaseTool
|
|
112
120
|
repo['userId'] == self.username &&
|
113
121
|
repo['userAgent'] == self.user_agent &&
|
114
122
|
(!ignore_transitioning_repositories || !repo['transitioning']) &&
|
115
|
-
get_my_ip_addresses.any?{|a| a == repo['ipAddress']}
|
123
|
+
get_my_ip_addresses.any? {|a| a == repo['ipAddress']}
|
116
124
|
end
|
117
125
|
end
|
118
126
|
|
119
127
|
def get_my_ip_addresses
|
120
|
-
addresses = Socket.ip_address_list.collect{|a| a.ip_address.to_s
|
128
|
+
addresses = Socket.ip_address_list.collect {|a| a.ip_address.to_s}
|
121
129
|
begin
|
122
130
|
addresses << Net::HTTP.get(URI('http://www.myexternalip.com/raw')).strip
|
123
131
|
rescue Error
|
data/mcrt.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcrt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Donald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Maven Central Release Tool.
|
14
14
|
email: peter@realityforge.org
|