Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-46658][DOCS] Loosen Ruby dependency specification #44667

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/.bundle/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
BUNDLE_PATH: ".local_ruby_bundle"
# See: https://issues.apache.org/jira/browse/SPARK-38488
BUNDLE_BUILD__FFI: "--enable-libffi-alloc"
12 changes: 8 additions & 4 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ source "https://rubygems.org"
# to pin versions in the lock file.
# To update the lock file, run `bundle update`.
# Version constraint reference: https://guides.rubygems.org/patterns/#declaring-dependencies
gem "ffi", "1.15.5"

gem "jekyll", "~> 4.3"
gem "rouge", "3.26.0"
gem "jekyll-redirect-from", "0.16.0"
gem "webrick", "1.8.1"
gem "jekyll-redirect-from", "~> 0.16"
# Rouge 4.0 drops support for Ruby < 2.7, which is EOL.
# See: https://github.com/rouge-ruby/rouge/blob/61bdda18f204a661413daa93d9624bc65ad219a5/CHANGELOG.md#version-400-2022-09-04
gem "rouge", "~> 3.26"
# This resolves a build issue on Apple Silicon.
# See: https://issues.apache.org/jira/browse/SPARK-38488
gem "ffi", "~> 1.15"
15 changes: 7 additions & 8 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ GEM
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.5)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.1)
google-protobuf (3.25.2)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -54,7 +54,7 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (3.26.0)
rouge (3.30.0)
safe_yaml (1.0.5)
sass-embedded (1.69.7)
google-protobuf (~> 3.25)
Expand All @@ -68,11 +68,10 @@ PLATFORMS
ruby

DEPENDENCIES
ffi (= 1.15.5)
ffi (~> 1.15)
jekyll (~> 4.3)
jekyll-redirect-from (= 0.16.0)
rouge (= 3.26.0)
webrick (= 1.8.1)
jekyll-redirect-from (~> 0.16)
rouge (~> 3.26)

BUNDLED WITH
2.3.8
2.4.22
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ whichever version of Spark you currently have checked out of revision control.

The Spark documentation build uses a number of tools to build HTML docs and API docs in Scala, Java, Python, R, and SQL.

You need to have [Ruby][ruby] and [Python][python] installed. Make sure the `bundle` command is available. If not, install it as follows:
You need to have [Ruby 3][ruby] and [Python 3][python] installed. Make sure the `bundle` command is available. If not, install it as follows:

[ruby]: https://www.ruby-lang.org/en/documentation/installation/
[python]: https://www.python.org/downloads/
Expand Down
1 change: 1 addition & 0 deletions docs/_plugins/copy_api_dirs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.
#

# This include enables functions like `cd` and `cp_r`.
require 'fileutils'
include FileUtils

Expand Down