Skip to content

Commit

Permalink
Get specs green on arm64-darwin-20
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 10, 2021
1 parent e7e1487 commit 7a0bd98
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions bundler/spec/bundler/definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@
only_java (1.1-java)
PLATFORMS
java
#{lockfile_platforms}
#{lockfile_platforms_for(["java"] + local_platforms)}
DEPENDENCIES
only_java
Expand Down
3 changes: 1 addition & 2 deletions bundler/spec/lock/lockfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,7 @@
rack (1.0.0)
PLATFORMS
java
#{lockfile_platforms}
#{lockfile_platforms_for(["java"] + local_platforms)}
DEPENDENCIES
rack
Expand Down
3 changes: 1 addition & 2 deletions bundler/spec/runtime/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@
racc (1.5.2)
PLATFORMS
ruby
#{Bundler.local_platform}
#{lockfile_platforms_for(["ruby"] + local_platforms)}
DEPENDENCIES
nokogiri (~> 1.11)
Expand Down
6 changes: 5 additions & 1 deletion bundler/spec/support/platforms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def not_local_patchlevel
end

def lockfile_platforms
local_platforms.map(&:to_s).sort.join("\n ")
lockfile_platforms_for(local_platforms)
end

def lockfile_platforms_for(platforms)
platforms.map(&:to_s).sort.join("\n ")
end

def local_platforms
Expand Down

0 comments on commit 7a0bd98

Please sign in to comment.