Skip to content

Bump rails from 7.0.3 to 7.0.4 #108

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

Merged
merged 7 commits into from
Jan 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 12 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
reviewers:
- toshimaru
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
reviewers:
- toshimaru
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Jekyll Build
run: bundle exec jekyll build

doc-build:
doc-build-latest:
runs-on: ubuntu-latest
name: Rails Doc Build
steps:
Expand All @@ -24,7 +24,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.1
bundler-cache: true
- name: Doc Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
2.2.16
2.4.1
29 changes: 16 additions & 13 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
require 'yaml'
require 'bundler'

SOURCE_DIR = "src"
SOURCE_DIR = 'src'
INDEX_HTML = 'files/railties/RDOC_MAIN_rdoc.html'

desc "Build railsdoc"
desc 'Build railsdoc'
task :build do
generate_rails_rdoc
generate_src

sh 'bundle exec jekyll build'
end

desc "Switch to default Rails version"
desc 'Switch to default Rails version'
task :switch_default_rails do
switch_rails(config["default_rails_version"])
switch_rails(config['default_rails_version'])
end

desc "Build another version's railsdoc"
task :build_multi do
config["rails_versions"].each do |version, detail|
config['rails_versions'].each do |version, detail|
dir = "#{SOURCE_DIR}/#{version}"
mkdir dir unless Dir.exist?(dir)

bulid_version = detail["specific_version"]
bulid_version = detail['specific_version']
switch_rails(bulid_version)
generate_rails_rdoc
generate_src(target_version: version)
Expand All @@ -38,18 +38,21 @@ end

def switch_rails(version)
cd 'rails' do
sh "git reset --hard"
sh 'git reset --hard'
sh "git switch refs/tags/v#{version} -C v#{version}"
end
end

def generate_rails_rdoc
cd 'rails' do
Bundler.with_unbundled_env do
# TODO: use `BUNDLE_ONLY`(require bundler 2.3.19+).
ENV['BUNDLE_WITHOUT'] = 'db:job:storage'

# replace sdoc gem
gemfile = File.read("Gemfile")
gemfile = File.read('Gemfile')
gemfile.gsub!(/"sdoc.*$/, '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"')
File.write("Gemfile", gemfile)
File.write('Gemfile', gemfile)

sh 'bundle install && bundle update sdoc'
rm_rf 'doc'
Expand All @@ -59,7 +62,7 @@ def generate_rails_rdoc
end

def generate_src(target_version: nil)
copy_sources = Dir.glob('rails/doc/rdoc/*').reject { |path| path.end_with?("panel", "js", "created.rid") }
copy_sources = Dir.glob('rails/doc/rdoc/*').reject { |path| path.end_with?('panel', 'js', 'created.rid') }
target_dir = "#{SOURCE_DIR}/#{target_version}"
cp_r copy_sources, target_dir

Expand All @@ -69,8 +72,8 @@ def generate_src(target_version: nil)
return if target_version.nil?

# Replace absolute path in navigation.html
content = File.read("navigation.html")
content.gsub!("<a href=\"/", "<a href=\"/#{target_version}/")
File.write("navigation.html", content)
content = File.read('navigation.html')
content.gsub!('<a href=\"/', "<a href=\"/#{target_version}/")
File.write('navigation.html', content)
end
end
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ title: RailsDoc(β)
description: Ruby on Rails API Documentation.
url: https://railsdoc.github.io
source: src
default_rails_version: 7.0.3
default_rails_version: 7.0.4
rails_versions:
"6.1":
specific_version: "6.1.6"
Expand Down
2 changes: 1 addition & 1 deletion rails
Submodule rails updated 218 files
2 changes: 1 addition & 1 deletion src/classes/AbstractController.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/ActionNotFound.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Class</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Class</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Caching/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Caching/ConfigMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Caching/Fragments.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Callbacks/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Collector.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/DoubleRenderError.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Class</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
4 changes: 2 additions & 2 deletions src/classes/AbstractController/Helpers/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -194,7 +194,7 @@ <h3 id="method-i-helper">

<p>The last two assume that <code>&quot;foo&quot;.camelize</code> returns “Foo”.</p>

<p>When strings or symbols are passed, the method finds the actual module object using +String#constantize+. Therefore, if the module has not been yet loaded, it has to be autoloadable, which is normally the case.</p>
<p>When strings or symbols are passed, the method finds the actual module object using <a href="../../String.html#method-i-constantize"><code>String#constantize</code></a>. Therefore, if the module has not been yet loaded, it has to be autoloadable, which is normally the case.</p>

<p>Namespaces are supported. The following calls include <code>Foo::BarHelper</code>:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Class</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Railties.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Railties/RoutesHelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Translation.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/UrlFor.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/UrlFor/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionCable.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionCable/Channel.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionCable/Channel/Base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Class</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionCable/Channel/Broadcasting.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/ActionCable/Channel/Callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 7.0.3</span><br />
<span>Ruby on Rails 7.0.4</span><br />

<div class="type">Module</div>
<h1>
Expand Down
Loading