816 Commits

Author SHA1 Message Date
Maxim Belkin
cfbc09f3c1 utils/ruby.sh: move 'advice' var to Linux.
Also change 'usable_ruby()' to 'unusable_ruby()'

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-08-14 12:37:10 +00:00
Maxim Belkin
50f47e88ec utils/ruby.sh: reoganize code
Moved OS-specific logic to functions:
 - `find_ruby`: returns (via echo) Ruby that can be used
 - `usable_ruby`: checks whether Ruby satisfies Homebrew

Pre-create OS-specific error messages:
 - `upgrade_fail`: message that is printed when Homebrew fails to upgrade
   vendor Ruby
 - `install_fail`: message that is printed when Homebrew fails to install
   vendor Ruby

Unconditionally set `TERMINFO_DIRS` when installing/upgrading vendor Ruby
**but** export it on Linux only.

Motivation: move OS-specific logic to functions so that it's easier to
understand the main steps.
2020-08-13 23:57:23 +00:00
Elizabeth Tackett
ed23eb1fab update repology for changes to GitHub module 2020-08-13 09:56:41 -05:00
Elizabeth Tackett
05d03a3909 remove duplicate methods 2020-08-13 08:37:26 -05:00
Baffour Adu Boampong
6c266a6964
Merge branch 'master' into mlh-outdated-packages 2020-08-13 13:18:08 +00:00
Maxim Belkin
f3283b60cc
utils/ruby.sh: test_ruby(): keep temporary variables local 2020-08-12 17:07:41 -05:00
Rylan Polster
a703f73d19 Add xonsh update-python-resources blocklist 2020-08-12 09:26:35 -04:00
Mike McQuaid
a0fd62fddd
Merge pull request #8307 from Bo98/svn-date
download_strategy: more direct SVN modified date detection
2020-08-12 10:51:53 +01:00
Seeker
671179d483 utils/github: add check_for_duplicate_pull_requests
Moved from dev-cmd/bump-formula-pr to utils/github
2020-08-11 19:26:03 -07:00
Bo Anderson
d7864d7efb download_strategy: more direct SVN modified date detection 2020-08-11 21:01:53 +01:00
Baffour Adu Boampong
ad2809b615
Merge branch 'master' into mlh-outdated-packages 2020-08-10 21:21:09 +00:00
Seeker
f345f554c8 update-license-data: fix latest_tag error
Add latest_tag method to utils/spdx
2020-08-10 11:32:07 -07:00
Dustin Rodrigues
677714d801 utils/pypi: add cdk8s to blocklist 2020-08-10 10:28:41 -04:00
Mike McQuaid
6a98b23575
bundler: use 1.17.2 again.
This was what is included with macOS system Ruby 2.6.3.
2020-08-10 08:22:03 +01:00
rmnull
da4eb39925
bump BUNDLER_VERSION to 1.17.3(keep in sync with Gemfile.lock) 2020-08-07 23:58:24 +05:30
Seeker
cab2c99641
Merge pull request #8149 from SeekingMeaning/python-logging
bump-formula-pr, utils/pypi: tweak log messages
2020-08-07 08:18:26 -07:00
Mike McQuaid
4c23fd0156
Merge pull request #8215 from SeekingMeaning/spdx/util
utils: add SPDX module
2020-08-07 10:38:45 +01:00
Seeker
36c7a3f27f bump-formula-pr, utils/pypi: tweak log messages 2020-08-06 11:31:56 -07:00
Seeker
6ecef73131 test: add spdx spec 2020-08-06 11:14:24 -07:00
Seeker
753b8621df utils: add SPDX module 2020-08-06 10:16:23 -07:00
Markus Reiter
490e503b1b Replace Homebrew.args with Context. 2020-08-06 16:13:14 +02:00
Elizabeth Tackett
a3278ad345 add bump spec 2020-08-05 10:10:05 -05:00
Rylan Polster
3b1c8ce37e
Merge pull request #8161 from Rylan12/add-update-python-resources-blocklist
update-python-resources: add blocklist
2020-08-03 17:08:56 -04:00
Elizabeth Tackett
db27f446d0 WIP repology module tests 2020-08-03 11:27:35 -05:00
Baffour Adu Boampong
c7c4921744
Merge branch 'master' into mlh-outdated-packages 2020-08-03 13:11:20 +00:00
Rylan Polster
9fb3a80e38 Add cloudformation-cli to blocklist 2020-08-02 11:30:10 -04:00
Rylan Polster
1f5479798c Add ansible and ansible@2.8 to blocklist 2020-07-31 20:59:49 -04:00
Rylan Polster
57cac49559 Use formula.full_name for blocklist 2020-07-31 20:59:22 -04:00
Rylan Polster
075ae9eb1e update-python-resources: add blocklist 2020-07-31 17:01:30 -04:00
Rylan Polster
9dd52a83e4 Reword comment above get_pypi_info 2020-07-31 15:12:41 -04:00
Rylan Polster
b08d1a28ad update-python-resources: handle no sdist for package 2020-07-31 14:21:44 -04:00
Bo Anderson
24249e1f3e
Merge pull request #8155 from Bo98/pipgrip-defer
utils/pypi: don't require pipgrip unless we are using it
2020-07-31 17:49:11 +01:00
Rylan Polster
53a27185a6
Merge pull request #8146 from Rylan12/update-python-resources-fix
update-python-resources: add --no-cache-dir flag
2020-07-31 12:18:00 -04:00
Bo Anderson
92cee70cbd utils/pypi: don't require pipgrip unless we are using it 2020-07-31 16:56:21 +01:00
Elizabeth Tackett
ce721f43a8 display version data when formula is up-to-date 2020-07-31 10:52:37 -05:00
Rylan Polster
ec7be559f4 Refactor package name and url logic to PyPI module 2020-07-31 10:10:07 -04:00
Baffour Adu Boampong
82787c8499 Brew style fix 2020-07-30 22:59:54 +00:00
Baffour Adu Boampong
5f19a53195 Refactor bump.rb methods into seperate modules 2020-07-30 22:58:30 +00:00
Rylan Polster
03cf0e0180 update-python-resources: add --no-cache-dir flag 2020-07-30 14:26:27 -04:00
Rylan Polster
2d086013f9 dev-cmd: add update-python-resources command 2020-07-29 09:50:16 -04:00
Baffour Adu Boampong
e2c9bb8a96
Reword number of packages found sentence
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-29 13:40:25 +00:00
Elizabeth Tackett
2822a7b0c3 adapt output to adjust for single-formula queries 2020-07-28 12:56:19 -05:00
Elizabeth Tackett
1d328eb7e5 add --formula flag to allow user specific queries 2020-07-28 09:30:19 -05:00
Mike McQuaid
a85eb3fa49
Revert "curl: alert on 301 redirect" 2020-07-28 10:38:27 +01:00
Baffour Adu Boampong
9e88b44bd7 Merge fixes 2020-07-26 22:39:46 +00:00
Issy Long
fdbb2ac16a
Merge pull request #7985 from vidusheeamoli/utils-inreplace-to-true
sorbet: set utils/inreplace.rb to true
2020-07-26 10:37:30 +01:00
vidusheeamoli
fd382d2ecd srb: set utils/inreplace.rb to true and refactor
- Sorbet gives preference to class methods over methods defined in
  included modules, hence Sorbet was unavailable to resolve the
definition of the gsub! method.
- The gsub! method in StringInreplaceExtension conflicts with the definition in String.
- This PR refactors the call to the gsub! method so that a custom object
  is exposed instead of a string.
2020-07-26 12:43:31 +05:30
Markus Reiter
b50eea6849
Merge pull request #8068 from reitermarkus/cli-parser
Refactor usages of global `Homebrew.args`.
2020-07-25 21:01:39 +02:00
Markus Reiter
6c050492ee Pass args to Analytics instead of using global args. 2020-07-25 03:57:43 +02:00
Dustin Rodrigues
c4d11374c8 curl: alert on permanent redirect 2020-07-24 10:50:13 -04:00