mcrt 1.10.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 784d064c84c0ab1a07e7ee4736f0fc63bc80adb9
4
- data.tar.gz: a0ee52dccdd57e1ba6199b4e770f91a8e9987664
3
+ metadata.gz: b80dc1f9650bb5c322bdfbc25b19230a164bde0f
4
+ data.tar.gz: 9c64b1f1288c19b483426118cda09303fa0a13a8
5
5
  SHA512:
6
- metadata.gz: bb671f8b614b5f20feefc3da4e69e92c04f5941ee469f9cd3e1f663c447be278e1b507aad497b54aac5662850d9c0e836aaa818a42d03447f3ab33a398b79d50
7
- data.tar.gz: 9f00310b429d73f118e97d5535a4b4ec77f3df07f8e93af801a525b1cc565e20462d4f9229e9686d9cbf9d933f47d4a2e0d3d1e48474c972d660b4c137433c48
6
+ metadata.gz: f186fcc1c2750e846fe9f3e6fcd659420e692d8ab168b809beb4a7a0f762bb0f54802e21a99c2b7af24482159980851cc1231d435c4dad6ce5d67574689c0c45
7
+ data.tar.gz: 860054b4a37248d705ccd88b70523e5e603973fb1222846e268c88d9122cc853115ebb19ad7f3e51f723b1cb4ec0bd0928efb011ca4a2426e93a72ac393ef480
@@ -0,0 +1,47 @@
1
+ <!--
2
+ Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
3
+ Please make sure that you are familiar with and follow the Code of Conduct for
4
+ this project (found in the CODE_OF_CONDUCT.md file).
5
+
6
+ Please fill out this template with all the relevant information so we can
7
+ understand what's going on and fix the issue.
8
+
9
+ I may ask you to submit the fix (after giving some direction).
10
+ -->
11
+
12
+ Environment:
13
+
14
+ <!--
15
+ Please provide the version of this project where the issue occurred as well as the
16
+ versions of other environmental factors. This could be virtual machine version, os
17
+ version, browser version etc.
18
+ -->
19
+
20
+ Relevant code or config:
21
+
22
+ ```
23
+
24
+ ```
25
+
26
+ What you did:
27
+
28
+
29
+
30
+ What happened:
31
+
32
+ <!-- Please provide the full error message/screenshots/anything -->
33
+
34
+ Reproduction repository:
35
+
36
+ <!--
37
+ If possible, please create a repository that reproduces the issue with the
38
+ minimal amount of code possible. It is highly recommended you take the time
39
+ to read "How to create a Minimal, Complete, and Verifiable example" at
40
+ https://stackoverflow.com/help/mcve
41
+ -->
42
+
43
+ Problem description:
44
+
45
+
46
+
47
+ Suggested solution:
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
- sudo: false
3
2
  rvm:
4
3
  - 2.3.1
5
4
  git:
@@ -1,19 +1,34 @@
1
1
  # How to Contribute
2
2
 
3
- Pull requests are greatly appreciated and are what makes opensource great. Here's a quick guide:
3
+ We'd love to accept your patches and contributions to this project. Pull requests are part of
4
+ what makes open source great. There are just a few small guidelines you need to follow.
4
5
 
5
- * Fork it
6
- * Create your feature branch (`git checkout -b my-new-feature`)
7
- * Commit your changes (`git commit -am 'Add some feature'`)
8
- * Push to the branch (`git push origin my-new-feature`)
9
- * Create new Pull Request
6
+ ## Code of Conduct
10
7
 
11
- Pester us if we don't get your Pull Requests merged in a timely fashion. :)
8
+ Participation in this project comes under the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md)
9
+
10
+ ## Submitting code via Pull Requests
11
+
12
+ - We follow the [Github Pull Request Model](https://help.github.com/articles/about-pull-requests/) for
13
+ all contributions.
14
+ - For large bodies of work, we recommend creating an issue outlining the feature that you wish to build,
15
+ and describing how it will be implemented. This gives a chance for review to happen early, and ensures
16
+ no wasted effort occurs.
17
+ - All submissions, will require review before being merged.
18
+ - Finally - *Thanks* for considering submitting code to the project!
19
+
20
+ ## Formatting
21
+
22
+ When submitting pull requests, make sure to do the following:
23
+
24
+ - Maintain the same code style as the rest of the project.
25
+ - Remove trailing whitespace. Many editors will do this automatically.
26
+ - Ensure any new files have [a trailing newline](https://stackoverflow.com/questions/5813311/no-newline-at-end-of-file)
12
27
 
13
28
  ## How to speed the merging of pull requests
14
29
 
15
- * Describe your changes in the CHANGELOG.
16
- * Give yourself some credit in the appropriate place (usually the CHANGELOG).
30
+ * Describe your changes in the CHANGELOG.md (if present).
31
+ * Give yourself some credit in the appropriate place (usually the CHANGELOG.md).
17
32
  * Make commits of logical units.
18
33
  * Ensure your commit messages help others understand what you are doing and why.
19
34
  * Check for unnecessary whitespace with `git diff --check` before committing.
@@ -23,4 +38,6 @@ Pester us if we don't get your Pull Requests merged in a timely fashion. :)
23
38
  ## Additional Resources
24
39
 
25
40
  * [General GitHub documentation](http://help.github.com/)
26
- * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
41
+ * [How to write a good Git Commit message](https://chris.beams.io/posts/git-commit/) -
42
+ Great way to make sure your Pull Requests get accepted.
43
+ * [An Open Source Etiquette Guidebook](https://css-tricks.com/open-source-etiquette-guidebook/#article-header-id-1)
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.10.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.png?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
@@ -78,7 +78,7 @@ class MavenCentralReleaseTool
78
78
  r.password = password
79
79
  r.user_agent = "Buildr-#{Buildr::VERSION}"
80
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.'
81
+ puts 'Another project currently staging. Waiting for other repository to complete. Please visit the website https://oss.sonatype.org/index.html#stagingRepositories to view the other staging attempts.'
82
82
  sleep 1
83
83
  end
84
84
  puts "Beginning upload to staging repository #{profile_name}"
@@ -126,12 +126,38 @@ 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
+ 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
143
+ end
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
154
+ end
129
155
  begin
130
- addresses << Net::HTTP.get(URI('http://www.myexternalip.com/raw')).strip
156
+ addresses << JSON.parse(Net::HTTP.get(URI('https://api.ipify.org?format=json')))['ip']
131
157
  rescue Exception
132
158
  # ignored
133
159
  end
134
- addresses
160
+ addresses.sort.uniq
135
161
  end
136
162
 
137
163
  def close_repository(repository_id, description)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mcrt}
5
- s.version = '1.10.0'
5
+ s.version = '1.15.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
@@ -15,9 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {spec}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
- s.default_executable = []
19
18
  s.require_paths = %w(lib)
20
19
 
21
- s.has_rdoc = false
22
20
  s.rdoc_options = %w(--line-numbers --inline-source --title mcrt)
23
21
  end
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.10.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: 2018-04-27 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
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - ".gitattributes"
20
+ - ".github/ISSUE_TEMPLATE.md"
20
21
  - ".gitignore"
21
22
  - ".ruby-version"
22
23
  - ".travis.yml"