History

Add Ruby version 3

MasterEnoc committed 5 years ago

Commit a6741561 parent 1d1cc792 files · +18 −1Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +12 −0
  2. lib/docs/scrapers/rdoc/ruby.rb +6 −1
docs/file-scrapers.md+12−0
@@ -163,6 +163,18 @@ tar xj --strip-components=1 · 162 unmodified lines
163163 ### Ruby / Minitest
164164 ### Ruby on Rails
165165 ### Ruby
166+Download the tarball of Ruby from https://www.ruby-lang.org/en/downloads/, extract it, run
167+`./configure && make html` in your terminal (while your are in the ruby directory) and move
168+`.ext/html` to `path/to/devdocs/docs/ruby~$VERSION/`.
169+
170+Or run the following commands in your terminal:
171+```sh
172+curl https://cache.ruby-lang.org/pub/ruby/$VERSION/ruby-$RELEASE.tar.gz > ruby.tar; \
173+tar -xf ruby.tar; cd ruby-$RELEASE; ./configure && make html; mv .ext/html path/to/devdocs/docs/ruby~$VERSION
174+```
175+
176+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
177+to worry about cleaning or removing a new Ruby installation.
166178
167179 ## Salt Stack
168180
lib/docs/scrapers/rdoc/ruby.rb+6−1
@@ -63,12 +63,16 @@ module Docs · 62 unmodified lines
6363 /\AXMP/]
6464
6565 options[:attribution] = <<-HTML
66− Ruby Core &copy; 1993&ndash;2017 Yukihiro Matsumoto<br>
66+ Ruby Core &copy; 1993&ndash;2020 Yukihiro Matsumoto<br>
6767 Licensed under the Ruby License.<br>
6868 Ruby Standard Library &copy; contributors<br>
6969 Licensed under their own licenses.
7070 HTML
7171
72+ version '3' do
73+ self.release = '3.0.0'
74+ end
75+
7276 version '2.7' do
7377 self.release = '2.7.2'
7478 end
@@ -102,6 +106,7 @@ module Docs · 27 unmodified lines
102106 return version
103107 end
104108 end
109+
105110 end
106111 end
107112 end