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
163### Ruby / Minitest163### Ruby / Minitest
164### Ruby on Rails164### Ruby on Rails
165### Ruby165### Ruby
166Download 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
170Or run the following commands in your terminal:
171```sh
172curl https://cache.ruby-lang.org/pub/ruby/$VERSION/ruby-$RELEASE.tar.gz > ruby.tar; \
173tar -xf ruby.tar; cd ruby-$RELEASE; ./configure && make html; mv .ext/html path/to/devdocs/docs/ruby~$VERSION
174```
175
176To 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
177to worry about cleaning or removing a new Ruby installation.
166 178
167## Salt Stack179## Salt Stack
168 180
lib/docs/scrapers/rdoc/ruby.rb+6−1
@@ -63,12 +63,16 @@ module Docs · 62 unmodified lines
63 /\AXMP/]63 /\AXMP/]
64 64
65 options[:attribution] = <<-HTML65 options[:attribution] = <<-HTML
66 Ruby Core &copy; 1993&ndash;2017 Yukihiro Matsumoto<br>66 Ruby Core &copy; 1993&ndash;2020 Yukihiro Matsumoto<br>
67 Licensed under the Ruby License.<br>67 Licensed under the Ruby License.<br>
68 Ruby Standard Library &copy; contributors<br>68 Ruby Standard Library &copy; contributors<br>
69 Licensed under their own licenses.69 Licensed under their own licenses.
70 HTML70 HTML
71 71
72 version '3' do
73 self.release = '3.0.0'
74 end
75
72 version '2.7' do76 version '2.7' do
73 self.release = '2.7.2'77 self.release = '2.7.2'
74 end78 end
@@ -102,6 +106,7 @@ module Docs · 27 unmodified lines
102 return version106 return version
103 end107 end
104 end108 end
109
105 end110 end
106 end111 end
107end112end