mcrt 1.14.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +1 -1
  4. data/lib/mcrt.rb +24 -13
  5. data/mcrt.gemspec +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b201c37cb30840517096d0e4d055498648e451f
4
- data.tar.gz: ca1444ebc60b72e87c69804899f4c5b8e6c41c0d
3
+ metadata.gz: b80dc1f9650bb5c322bdfbc25b19230a164bde0f
4
+ data.tar.gz: 9c64b1f1288c19b483426118cda09303fa0a13a8
5
5
  SHA512:
6
- metadata.gz: 34fd323465043cd77de737c9b49d2d06bd3cfb0eb0d759ee58aad0d40e7de65b57ba5a5290e43fe71eb71ade83252bedb022eb1188d134c4b5b1c4fb5a03d938
7
- data.tar.gz: c33b54926f1b5603ad61bc0f4f3f192d1b22af9d3e77a05c86065c2c72aac4a182ab5c66160397909ef77830f13936e7da551171662ab599f895b7456f95042a
6
+ metadata.gz: f186fcc1c2750e846fe9f3e6fcd659420e692d8ab168b809beb4a7a0f762bb0f54802e21a99c2b7af24482159980851cc1231d435c4dad6ce5d67574689c0c45
7
+ data.tar.gz: 860054b4a37248d705ccd88b70523e5e603973fb1222846e268c88d9122cc853115ebb19ad7f3e51f723b1cb4ec0bd0928efb011ca4a2426e93a72ac393ef480
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'rake', '= 0.9.2.2'
6
- gem 'zapwhite', '= 2.14.0'
6
+ gem 'zapwhite', '= 2.17.0'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Maven Central Release Tool
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/realityforge/mcrt.svg?branch=master)](http://travis-ci.org/realityforge/mcrt)
3
+ [![Build Status](https://api.travis-ci.com/realityforge/mcrt.svg?branch=master)](http://travis-ci.com/realityforge/mcrt)
4
4
 
5
5
  This is very simply tool that allows you to close, promote and drop and staging repository in Maven Central.
6
6
  The library assumes some other tool will upload the artifacts to the staging repository. This tool can then
@@ -126,20 +126,31 @@ class MavenCentralReleaseTool
126
126
 
127
127
  def get_my_ip_addresses
128
128
  addresses = Socket.ip_address_list.collect {|a| a.ip_address.to_s}
129
- begin
130
- addresses << `dig +short myip.opendns.com @resolver1.opendns.com`.strip
131
- rescue Exception
132
- # ignored
133
- end
134
- begin
135
- addresses << Net::HTTP.get(URI('http://www.myexternalip.com/raw')).strip
136
- rescue Exception
137
- # ignored
129
+ commands = [
130
+ "dig +short myip.opendns.com @resolver1.opendns.com",
131
+ "curl ifconfig.me",
132
+ "curl icanhazip.com",
133
+ "curl ipecho.net/plain",
134
+ "curl ifconfig.co",
135
+ "dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'\"' '{ print $2 }'"
136
+ ]
137
+ commands.each do |cmd|
138
+ begin
139
+ addresses << `#{cmd}`.strip
140
+ rescue Exception
141
+ # ignored
142
+ end
138
143
  end
139
- begin
140
- addresses << Net::HTTP.get(URI('https://diagnostic.opendns.com/myip')).strip
141
- rescue Exception
142
- # ignored
144
+ urls = [
145
+ "http://www.myexternalip.com/raw",
146
+ "https://diagnostic.opendns.com/myip"
147
+ ]
148
+ urls.each do |url|
149
+ begin
150
+ addresses << Net::HTTP.get(URI(url)).strip
151
+ rescue Exception
152
+ # ignored
153
+ end
143
154
  end
144
155
  begin
145
156
  addresses << JSON.parse(Net::HTTP.get(URI('https://api.ipify.org?format=json')))['ip']
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mcrt}
5
- s.version = '1.14.0'
5
+ s.version = '1.15.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.14.0
4
+ version: 1.15.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: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Maven Central Release Tool.
14
14
  email: peter@realityforge.org