Skip to content

Commit c2a460e

Browse files
committed
Merge branch 'master' into filter_all_env_vars_932
2 parents d3ae1cc + ff93e16 commit c2a460e

File tree

625 files changed

+14603
-12262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

625 files changed

+14603
-12262
lines changed

Library/.rubocop.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ AllCops:
66
- '**/Casks/**/*'
77
- '**/vendor/**/*'
88

9+
require: ./Homebrew/rubocops.rb
10+
11+
Homebrew/CorrectBottleBlock:
12+
Enabled: true
13+
914
Metrics/AbcSize:
1015
Enabled: false
1116

@@ -41,7 +46,7 @@ Lint/AssignmentInCondition:
4146
Enabled: false
4247

4348
Lint/EndAlignment:
44-
AlignWith: variable
49+
EnforcedStyleAlignWith: variable
4550

4651
Lint/ParenthesesAsGroupedExpression:
4752
Enabled: false
@@ -63,7 +68,7 @@ Style/BlockDelimiters:
6368
EnforcedStyle: line_count_based
6469

6570
Style/CaseIndentation:
66-
IndentWhenRelativeTo: end
71+
EnforcedStyle: end
6772

6873
Style/ClassAndModuleChildren:
6974
EnforcedStyle: nested
@@ -163,6 +168,8 @@ Style/TernaryParentheses:
163168
# makes diffs nicer
164169
Style/TrailingCommaInLiteral:
165170
EnforcedStyleForMultiline: comma
171+
Style/TrailingCommaInArguments:
172+
EnforcedStyleForMultiline: comma
166173

167174
Style/VariableNumber:
168175
Enabled: false

Library/Homebrew/.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ AllCops:
1212
Style/BlockDelimiters:
1313
Exclude:
1414
- '**/cask/spec/**/*'
15-
- '**/cask/test/**/*'
15+
- '**/*_spec.rb'
1616

1717
# so many of these in formulae but none in here
1818
Lint/AmbiguousRegexpLiteral:

Library/Homebrew/.rubocop_todo.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config --exclude-limit 100`
3-
# on 2016-12-31 22:41:53 +0000 using RuboCop version 0.45.0.
3+
# on 2017-01-27 21:44:55 +0000 using RuboCop version 0.47.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 16
9+
# Offense count: 17
1010
Lint/HandleExceptions:
1111
Exclude:
1212
- 'cmd/install.rb'
@@ -60,19 +60,26 @@ Lint/ShadowedException:
6060
- 'utils/fork.rb'
6161

6262
# Offense count: 13
63+
# Configuration parameters: CountBlocks.
6364
Metrics/BlockNesting:
6465
Max: 5
6566

6667
# Offense count: 19
6768
# Configuration parameters: CountComments.
6869
Metrics/ModuleLength:
69-
Max: 363
70+
Max: 400
7071

7172
# Offense count: 1
7273
# Configuration parameters: CountKeywordArgs.
7374
Metrics/ParameterLists:
7475
Max: 6
7576

77+
# Offense count: 2
78+
Security/MarshalLoad:
79+
Exclude:
80+
- 'dependency.rb'
81+
- 'utils/fork.rb'
82+
7683
# Offense count: 1
7784
Style/AccessorMethodName:
7885
Exclude:
@@ -85,6 +92,18 @@ Style/ClassVars:
8592
- 'formula_installer.rb'
8693
- 'test/support/helper/fs_leak_logger.rb'
8794

95+
# Offense count: 13
96+
# Cop supports --auto-correct.
97+
# Configuration parameters: EnforcedStyle, SupportedStyles.
98+
# SupportedStyles: compact, expanded
99+
Style/EmptyMethod:
100+
Exclude:
101+
- 'debrew/irb.rb'
102+
- 'download_strategy.rb'
103+
- 'extend/ENV/super.rb'
104+
- 'formula.rb'
105+
- 'patch.rb'
106+
88107
# Offense count: 13
89108
# Configuration parameters: AllowedVariables.
90109
Style/GlobalVars:

Library/Homebrew/.simplecov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22

3-
require "english"
3+
require "English"
44

55
SimpleCov.start do
66
coverage_dir File.expand_path("../test/coverage", File.realpath(__FILE__))

Library/Homebrew/brew.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ case "$HOMEBREW_COMMAND" in
207207
up) HOMEBREW_COMMAND="update" ;;
208208
ln) HOMEBREW_COMMAND="link" ;;
209209
instal) HOMEBREW_COMMAND="install" ;; # gem does the same
210+
uninstal) HOMEBREW_COMMAND="uninstall" ;;
210211
rm) HOMEBREW_COMMAND="uninstall" ;;
211212
remove) HOMEBREW_COMMAND="uninstall" ;;
212213
configure) HOMEBREW_COMMAND="diy" ;;

Library/Homebrew/build.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def expand_reqs
4848
Requirement.prune
4949
elsif req.build? && dependent != formula
5050
Requirement.prune
51-
elsif req.satisfied? && req.default_formula? && (dep = req.to_dependency).installed?
51+
elsif req.satisfied? && (dep = req.to_dependency) && dep.installed?
5252
deps << dep
5353
Requirement.prune
5454
end

Library/Homebrew/cask/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

Library/Homebrew/cask/Gemfile

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
source "https://rubygems.org"
22

3-
gem "rake"
4-
5-
group :debug do
6-
gem "pry"
7-
gem "pry-byebug", platforms: :mri
8-
end
9-
103
group :test do
11-
# This is SimpleCov v0.12.0 with two fixes merged on top, that finally resolve
12-
# all issues with parallel tests, uncovered files, and tracked files. Switch
13-
# back to stable as soon as v0.12.1 or v0.13.0 is released. For details, see:
14-
# - https://github.com/colszowka/simplecov/pull/513
15-
# - https://github.com/colszowka/simplecov/pull/520
16-
gem "simplecov", "0.12.0",
17-
git: "https://github.com/colszowka/simplecov.git",
18-
branch: "master",
19-
ref: "83d8031ddde0927f87ef9327200a98583ca18d77",
20-
require: false
4+
gem "simplecov", require: false
215
gem "codecov", require: false
22-
gem "minitest", "~> 5.9"
6+
gem "minitest"
237
gem "minitest-reporters"
24-
gem "mocha", "~> 1.1", require: false
8+
gem "mocha", require: false
259
gem "parallel_tests"
26-
gem "rspec", "~> 3.5"
10+
gem "rspec"
2711
gem "rspec-its", require: false
2812
gem "rspec-wait", require: false
2913
end

Library/Homebrew/cask/Gemfile.lock

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,27 @@
1-
GIT
2-
remote: https://github.com/colszowka/simplecov.git
3-
revision: 83d8031ddde0927f87ef9327200a98583ca18d77
4-
ref: 83d8031ddde0927f87ef9327200a98583ca18d77
5-
branch: master
6-
specs:
7-
simplecov (0.12.0)
8-
docile (~> 1.1.0)
9-
json (>= 1.8, < 3)
10-
simplecov-html (~> 0.10.0)
11-
121
GEM
132
remote: https://rubygems.org/
143
specs:
154
ansi (1.5.0)
16-
builder (3.2.2)
17-
byebug (9.0.6)
18-
codecov (0.1.6)
5+
builder (3.2.3)
6+
codecov (0.1.9)
197
json
208
simplecov
219
url
22-
coderay (1.1.1)
23-
diff-lcs (1.2.5)
10+
diff-lcs (1.3)
2411
docile (1.1.5)
25-
json (2.0.2)
12+
json (2.0.3)
2613
metaclass (0.0.4)
27-
method_source (0.8.2)
28-
minitest (5.9.1)
29-
minitest-reporters (1.1.12)
14+
minitest (5.10.1)
15+
minitest-reporters (1.1.14)
3016
ansi
3117
builder
3218
minitest (>= 5.0)
3319
ruby-progressbar
3420
mocha (1.2.1)
3521
metaclass (~> 0.0.1)
36-
parallel (1.9.0)
37-
parallel_tests (2.10.0)
22+
parallel (1.10.0)
23+
parallel_tests (2.13.0)
3824
parallel
39-
pry (0.10.4)
40-
coderay (~> 1.1.0)
41-
method_source (~> 0.8.1)
42-
slop (~> 3.4)
43-
pry-byebug (3.4.0)
44-
byebug (~> 9.0)
45-
pry (~> 0.10)
46-
rake (11.3.0)
4725
rspec (3.5.0)
4826
rspec-core (~> 3.5.0)
4927
rspec-expectations (~> 3.5.0)
@@ -63,26 +41,26 @@ GEM
6341
rspec-wait (0.0.9)
6442
rspec (>= 3, < 4)
6543
ruby-progressbar (1.8.1)
44+
simplecov (0.13.0)
45+
docile (~> 1.1.0)
46+
json (>= 1.8, < 3)
47+
simplecov-html (~> 0.10.0)
6648
simplecov-html (0.10.0)
67-
slop (3.6.0)
6849
url (0.3.2)
6950

7051
PLATFORMS
7152
ruby
7253

7354
DEPENDENCIES
7455
codecov
75-
minitest (~> 5.9)
56+
minitest
7657
minitest-reporters
77-
mocha (~> 1.1)
58+
mocha
7859
parallel_tests
79-
pry
80-
pry-byebug
81-
rake
82-
rspec (~> 3.5)
60+
rspec
8361
rspec-its
8462
rspec-wait
85-
simplecov (= 0.12.0)!
63+
simplecov
8664

8765
BUNDLED WITH
88-
1.13.6
66+
1.13.7

Library/Homebrew/cask/Rakefile

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)