mcrt 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mcrt.rb +11 -3
  3. data/mcrt.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea265e5834e71390b5d472f8d1a5a5082cc03f38
4
- data.tar.gz: 57473dc6114329a079614cba1c8f39aebbfe6f00
3
+ metadata.gz: 09ee1a5de720c829b63b6315ecd0714c8f21576f
4
+ data.tar.gz: 06acb5d0ea49075d35b743a112864a3b0ee798ce
5
5
  SHA512:
6
- metadata.gz: 0d621a8050f95993d56be1acc69d6ed77a14f10de844a2deccb1aab3ddf545c8ff0aa42bfb57f0c0471db69530c0bdffb1d51b932def34e6b68b418b4548250b
7
- data.tar.gz: 752ea928a9fd723701cf3882e7b030a45e38cebe037e602585ef509535ed6da67ecd77c105e7175d269df8999d2032bf4d0e13198c6f64aa915797a617fe8a79
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(':upload').invoke
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mcrt}
5
- s.version = '1.8.0'
5
+ s.version = '1.9.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
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.8.0
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-03-28 00:00:00.000000000 Z
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