Skip to content

Commit

Permalink
Bump rails from 7.1.3 to 7.2.0.beta2 (#155)
Browse files Browse the repository at this point in the history
* chore: Add `git fetch` before `git switch`

* Bump rails from 7.1.3 to 7.2.0.beta2

* docs: Generate docs for Rails 7.2.0.beta2
  • Loading branch information
toshimaru authored Jul 5, 2024
1 parent 721ec46 commit 808c276
Show file tree
Hide file tree
Showing 2,679 changed files with 27,837 additions and 19,830 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ end

def switch_rails(version)
cd 'rails' do
sh 'git fetch'
sh 'git reset --hard'
sh "git switch refs/tags/v#{version} -C v#{version}"
end
Expand Down
6 changes: 4 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ title: RailsDoc(β)
description: Ruby on Rails API Documentation.
url: https://railsdoc.github.io
source: src
default_rails_version: '7.1.3'
default_rails_version: "7.2.0.beta2"
rails_versions:
"7.2":
specific_version: "7.2.0.beta2"
latest: true
"7.1":
specific_version: "7.1.3"
latest: true
"7.0":
specific_version: "7.0.8"
"6.1":
Expand Down
2 changes: 1 addition & 1 deletion rails
Submodule rails updated 1658 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Class</div>
<h1>
Expand Down
78 changes: 39 additions & 39 deletions src/classes/AbstractController/Base.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -126,12 +126,12 @@ <h3 id="method-i-view_cache_dependencies">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 52
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 54
def view_cache_dependencies
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&amp;dep) }
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching.rb#L52" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching.rb#L54" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -164,7 +164,7 @@ <h3 id="method-i-cache">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 58
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 60
def cache(key, options = {}, &amp;block) # :doc:
if cache_configured?
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &amp;block)
Expand All @@ -173,7 +173,7 @@ <h3 id="method-i-cache">
end
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching.rb#L58" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching.rb#L60" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down
6 changes: 3 additions & 3 deletions 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -81,12 +81,12 @@ <h3 id="method-i-view_cache_dependency">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 47
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 49
def view_cache_dependency(&amp;dependency)
self._view_cache_dependencies += [dependency]
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching.rb#L47" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching.rb#L49" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down
10 changes: 5 additions & 5 deletions 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -85,12 +85,12 @@ <h3 id="method-i-cache_store">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 13
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching.rb#L13" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching.rb#L15" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -120,12 +120,12 @@ <h3 id="method-i-cache_store-3D">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 17
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 19
def cache_store=(store)
config.cache_store = ActiveSupport::Cache.lookup_store(*store)
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching.rb#L17" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching.rb#L19" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down
24 changes: 12 additions & 12 deletions 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand All @@ -23,7 +23,7 @@ <h1>

<div class="description">

<h1 id="module-AbstractController::Caching::Fragments-label-Abstract+Controller+Caching+Fragments">Abstract Controller <a href="../Caching.html"><code>Caching</code></a> Fragments</h1>
<h1 id="module-AbstractController::Caching::Fragments-label-Abstract+Controller+Caching+Fragments">Abstract Controller <a href="../Caching.html"><code>Caching</code></a> <a href="Fragments.html"><code>Fragments</code></a></h1>

<p>Fragment caching is used for caching various blocks within views without caching the entire action as a whole. This is useful when certain elements of an action change frequently or depend on complicated state while other parts rarely change or can be shared amongst multiple parties. The caching is done using the <code>cache</code> helper available in the Action View. See <a href="../../ActionView/Helpers/CacheHelper.html"><code>ActionView::Helpers::CacheHelper</code></a> for more information.</p>

Expand Down Expand Up @@ -123,7 +123,7 @@ <h3 id="method-i-combined_fragment_cache_key">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 70
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
def combined_fragment_cache_key(key)
head = self.class.fragment_cache_keys.map { |k| instance_exec(&amp;k) }
tail = key.is_a?(Hash) ? url_for(key).split(&quot;://&quot;).last : key
Expand All @@ -134,7 +134,7 @@ <h3 id="method-i-combined_fragment_cache_key">
cache_key
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L70" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L68" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -175,7 +175,7 @@ <h3 id="method-i-expire_fragment">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 134
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
def expire_fragment(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
Expand All @@ -189,7 +189,7 @@ <h3 id="method-i-expire_fragment">
end
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L134" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L131" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -219,7 +219,7 @@ <h3 id="method-i-fragment_exist-3F">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 107
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
def fragment_exist?(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key)
Expand All @@ -229,7 +229,7 @@ <h3 id="method-i-fragment_exist-3F">
end
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L107" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L105" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -259,7 +259,7 @@ <h3 id="method-i-read_fragment">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 95
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?

Expand All @@ -270,7 +270,7 @@ <h3 id="method-i-read_fragment">
end
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L95" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L93" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down Expand Up @@ -300,7 +300,7 @@ <h3 id="method-i-write_fragment">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 82
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?

Expand All @@ -312,7 +312,7 @@ <h3 id="method-i-write_fragment">
content
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L82" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L80" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -97,12 +97,12 @@ <h3 id="method-i-fragment_cache_key">
<span class="label">📝 Source code</span>
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 59
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
def fragment_cache_key(value = nil, &amp;key)
self.fragment_cache_keys += [key || -&gt; { value }]
end</code></pre>

<a href="https://github.com/rails/rails/blob/36c1591bcb5e0ee3084759c7f42a706fe5bb7ca7/actionpack/lib/abstract_controller/caching/fragments.rb#L59" target="_blank" class="github_url">🔎 See on GitHub</a>
<a href="https://github.com/rails/rails/blob/b752c38e81a310c1aaca78c7cdd1784009ea189a/actionpack/lib/abstract_controller/caching/fragments.rb#L58" target="_blank" class="github_url">🔎 See on GitHub</a>

</details>

Expand Down
6 changes: 2 additions & 4 deletions 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.1.3</span><br />
<span>Ruby on Rails 7.2.0.beta2</span><br />

<div class="type">Module</div>
<h1>
Expand All @@ -23,7 +23,7 @@ <h1>

<div class="description">

<h1 id="module-AbstractController::Callbacks-label-Abstract+Controller+Callbacks">Abstract Controller Callbacks</h1>
<h1 id="module-AbstractController::Callbacks-label-Abstract+Controller+Callbacks">Abstract Controller <a href="Callbacks.html"><code>Callbacks</code></a></h1>

<p>Abstract Controller provides hooks during the life cycle of a controller action. <a href="Callbacks.html"><code>Callbacks</code></a> allow you to trigger logic during this cycle. Available callbacks are:</p>
<ul><li>
Expand Down Expand Up @@ -52,8 +52,6 @@ <h1 id="module-AbstractController::Callbacks-label-Abstract+Controller+Callbacks
<p><code>skip_before_action</code></p>
</li></ul>

<p>NOTE: Calling the same callback multiple times will overwrite previous callback definitions.</p>

</div>


Expand Down
Loading

0 comments on commit 808c276

Please sign in to comment.