[devdocsgjs/main: 1438/1867] Add Ruby version 3
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1438/1867] Add Ruby version 3
- Date: Fri, 19 Nov 2021 23:48:03 +0000 (UTC)
commit a674156a004ec25fa4a6f7dd008e5b14881cecfb
Author: MasterEnoc <brianhernandez222 hotmail com>
Date: Thu Dec 31 11:49:33 2020 -0600
Add Ruby version 3
docs/file-scrapers.md | 12 ++++++++++++
lib/docs/scrapers/rdoc/ruby.rb | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md
index f58a422b..ff78e028 100644
--- a/docs/file-scrapers.md
+++ b/docs/file-scrapers.md
@@ -163,6 +163,18 @@ tar xj --strip-components=1
### Ruby / Minitest
### Ruby on Rails
### Ruby
+Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run
+`./configure && make html` in your terminal (while your are in the ruby directory) and move
+`.ext/html` to `path/to/devdocs/docs/ruby~$VERSION/`.
+
+Or run the following commands in your terminal:
+```sh
+curl https://cache.ruby-lang.org/pub/ruby/$VERSION/ruby-$RELEASE.tar.gz > ruby.tar; \
+tar -xf ruby.tar; cd ruby-$RELEASE; ./configure && make html; mv .ext/html path/to/devdocs/docs/ruby~$VERSION
+```
+
+To generate the htmls file you have to run `make` command but it does not install Ruby in your system, only
generates html files so you have not
+to worry about cleaning or removing a new Ruby installation.
## Salt Stack
diff --git a/lib/docs/scrapers/rdoc/ruby.rb b/lib/docs/scrapers/rdoc/ruby.rb
index 157af2fe..ed7891b4 100644
--- a/lib/docs/scrapers/rdoc/ruby.rb
+++ b/lib/docs/scrapers/rdoc/ruby.rb
@@ -63,12 +63,16 @@ module Docs
/\AXMP/]
options[:attribution] = <<-HTML
- Ruby Core © 1993–2017 Yukihiro Matsumoto<br>
+ Ruby Core © 1993–2020 Yukihiro Matsumoto<br>
Licensed under the Ruby License.<br>
Ruby Standard Library © contributors<br>
Licensed under their own licenses.
HTML
+ version '3' do
+ self.release = '3.0.0'
+ end
+
version '2.7' do
self.release = '2.7.2'
end
@@ -102,6 +106,7 @@ module Docs
return version
end
end
+
end
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]