render_turbo_stream 0.1.27 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71ca68293cace6bf25ae1983f0c710669d00b624173185da8d22377094a5ec09
4
- data.tar.gz: 83f6948953c0bae73584aacb28e23785e8bf1308ca8c0f326488dbe1b70c6e4e
3
+ metadata.gz: 4ddfe2fddf5d0990264594bd1bac97f8ad8846d344e63446a1b7d5ac263c0c9d
4
+ data.tar.gz: 0e56a273cc7cd654e5be6957565c982be9b8ad1fa2a0fa1155f97c5e6815cae9
5
5
  SHA512:
6
- metadata.gz: 37f7dfac016b98ca2cb9b66f92b34bd534de52e285d1de7a44cd4b3ec8efeef5c0203178ffeef28ee77dd3e66029a76cb2714b7b1b0a398e15f6c774ec1df259
7
- data.tar.gz: 3a4059c7f942fedc218b716822b8cf9ef854cae5c6ee4e6e40e68a464938568984d290e85d9a915be83993640cb4c5d9cb8237ed7ef869659aedfc11fc6efca4
6
+ metadata.gz: d7b25b72283be57909d4085752c0457b2db91de7174df9e8e83f3daf1da784eaca70b509fa1fa5ed28c6cf9f8896916679265914c28db8a0fb00117479d0c858
7
+ data.tar.gz: 7d8ed294add44a776cd5e5fdfefd51380ef7af5063543fa49cac33155df50a9448966cc1c5599731d665aa0fc9ac1d2bea9fbdfc7a35af44b612c3c18680bed9
data/README.md CHANGED
@@ -54,7 +54,7 @@ The corresponding partials for flashes could look [like this](https://gitlab.com
54
54
  end
55
55
  ```
56
56
 
57
- This will set a status, generate a flash message and perform `stream_partials', which could result in something like this:
57
+ This will set a status, generate a flash message and perform `stream_partials`, which could result in something like this:
58
58
 
59
59
  ```ruby
60
60
  stream_partials(
@@ -72,7 +72,7 @@ stream_partials(
72
72
  )
73
73
  ```
74
74
 
75
- The `stream_partial' method is nothing more than a singular of `stream_partials'.
75
+ The `stream_partial` method is nothing else than a singular of `stream_partials`.
76
76
 
77
77
  ```ruby
78
78
  stream_partial(
@@ -108,7 +108,7 @@ RSpec.describe "Articles", type: :request do
108
108
  # which partials where rendered
109
109
  expect(partials_paths).to include('layouts/flash', 'articles/form')
110
110
 
111
- # partial_response (singular) returns false unless partial responded exactly one time, otherwise the content in nokogiri format: https://nokogiri.org/tutorials/searching_a_xml_html_document.html#basic-searching
111
+ # partial_response (singular) returns false unless partial responded exactly one time, otherwise the content parsed by nokogiri, see how to handle: https://nokogiri.org/tutorials/searching_a_xml_html_document.html#basic-searching
112
112
  r = partial_response(id: 'flash-box')
113
113
  expect(r.css('div.text-content').first.inner_html).to include('Article could not be created')
114
114
 
@@ -131,7 +131,7 @@ The test for a redirection might look something like this:
131
131
  it 'update success' do
132
132
  a = FactoryBot.create(:article)
133
133
  patch article_path(a, params: valid_params)
134
- expect(turbo_redirected_to).to eq(articles_path)
134
+ expect(turbo_redirect_to).to eq(articles_path)
135
135
  end
136
136
  ```
137
137
 
@@ -51,7 +51,7 @@ module RenderTurboStream
51
51
  end
52
52
 
53
53
  # Returns the path to which turbo_stream.redirect_to would be applied.
54
- def turbo_redirected_to
54
+ def turbo_redirect_to
55
55
  expect(response.status).to eq(302)
56
56
  r = JSON.parse(response.body)
57
57
  r['redirected_to']
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_turbo_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian