mcrt 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/mcrt.rb +24 -13
- 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: b80dc1f9650bb5c322bdfbc25b19230a164bde0f
|
4
|
+
data.tar.gz: 9c64b1f1288c19b483426118cda09303fa0a13a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f186fcc1c2750e846fe9f3e6fcd659420e692d8ab168b809beb4a7a0f762bb0f54802e21a99c2b7af24482159980851cc1231d435c4dad6ce5d67574689c0c45
|
7
|
+
data.tar.gz: 860054b4a37248d705ccd88b70523e5e603973fb1222846e268c88d9122cc853115ebb19ad7f3e51f723b1cb4ec0bd0928efb011ca4a2426e93a72ac393ef480
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Maven Central Release Tool
|
2
2
|
|
3
|
-
[![Build Status](https://
|
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
|
data/lib/mcrt.rb
CHANGED
@@ -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
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
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
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
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']
|
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.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:
|
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
|