Skip to content

Commit

Permalink
provides: learn the new darwin-arm64 platform option
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Nov 22, 2020
1 parent daf3021 commit 4627f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/reapack/index/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Source
PLATFORMS = {
all: nil,
windows: :all, win32: :windows, win64: :windows,
darwin: :all, darwin32: :darwin, darwin64: :darwin,
darwin: :all, darwin32: :darwin, darwin64: :darwin, 'darwin-arm64': :darwin,
linux: :all, linux32: :linux, linux64: :linux,
'linux-armv7l': :linux, 'linux-aarch64': :linux
}.freeze
Expand Down
3 changes: 2 additions & 1 deletion test/test_provides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_url_template

def test_platforms
assert_equal [:windows, :win32, :win64,
:darwin, :darwin32, :darwin64,
:darwin, :darwin32, :darwin64, :'darwin-arm64',
:linux, :linux32, :linux64, :'linux-armv7l', :'linux-aarch64'],
[
'[windows] file',
Expand All @@ -43,6 +43,7 @@ def test_platforms
'[Darwin]file',
' [ darwin32 ] file',
'[win32 darwin64] file',
'[darwin-arm64] file',
'[linux] file',
'[linux32] file',
'[linux64] file',
Expand Down

0 comments on commit 4627f56

Please sign in to comment.