inertia_rails-contrib 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb44326fd223ef6e631746a499a84dff76d261304651eda8d819fe23decc8857
4
- data.tar.gz: f9975ec1f185d40f88b34861d4104d0161daa8e070c39d2b60be4bcf75b61aa1
3
+ metadata.gz: 538f62e25594155bf348405e5be004b5460d867e1a2c2f1827285d7734a9bbb2
4
+ data.tar.gz: 168e6478de2aea2ff5c6fcbb4e05caaf42dedd588b99638fd654efd255efdc41
5
5
  SHA512:
6
- metadata.gz: aa516f52b025be207b951b61e4f081607cd6c2b3202cb689ae7378d650f5001008667c55ef4d1e84d869fa9fb23c0403532b429f35eea3a10ffdd80c9226c7b5
7
- data.tar.gz: e303ce54040f9d6268037210c7fe7f51929514900d22c7550b53fb0fb8264abab9cf0ac4c141e30c14bd005b261133268c15967ace013a1bf3b56bd25f24fa2c
6
+ metadata.gz: 8290166047be4c8c80cf00743d6d3328fc82c2e816a5719cc2e0f138c57236733e2271b30bb0ca2d5bd605674171b20bceff4fb2ec71b7cd58c355dfe06bcf80
7
+ data.tar.gz: b08b0a8d312f7192483ef7504a5c8dd3ce1b5f36a08fb26be76d8ff22435c5f7d67853fe31c3e86990fe217fab2a22c66b81910d9b487c55e45231ff34663e9c
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.1] - 2024-06-17
11
+
12
+ ### Fixed:
13
+
14
+ - Add a missing bracket to the `React/Edit` template. ([@skryukov])
15
+
10
16
  ## [0.1.0] - 2024-06-11
11
17
 
12
18
  - Initial release ([@iurev], [@skryukov])
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  A collection of extensions, developer tools, and the [community documentation](https://inertia-rails.netlify.app) for [Inertia's Rails adapter](https://github.com/inertiajs/inertia-rails).
4
4
 
5
+ <a href="https://evilmartians.com/?utm_source=inertia_rails-contrib&utm_campaign=project_page">
6
+ <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Built by Evil Martians" width="236" height="54">
7
+ </a>
8
+
5
9
  ## Installation
6
10
 
7
11
  Install the gem and add to the application's Gemfile by executing:
@@ -128,7 +132,7 @@ And navigate to `http://127.0.0.1:5100/inertia-example` to see the example Inert
128
132
 
129
133
  ### Scaffold generator
130
134
 
131
- `InertiaRailsContrib` also comes with a scaffold generator that generates a scaffold for a model with Inertia. To use it, execute the following command in the terminal:
135
+ `InertiaRailsContrib` also comes with a scaffold generator that generates a new resource with Inertia responses. To use it, execute the following command in the terminal:
132
136
 
133
137
  ```bash
134
138
  bin/rails generate inertia:scaffold ModelName field1:type field2:type
@@ -16,11 +16,10 @@ export default function Edit({ <%= singular_table_name %> }) {
16
16
  form.post(`<%= js_resource_path %>`, {
17
17
  headers: { 'X-HTTP-METHOD-OVERRIDE': 'put' },
18
18
  })
19
- }}
20
19
  <% else -%>
21
20
  form.patch(`<%= js_resource_path %>`)
22
- }
23
21
  <% end -%>
22
+ }}
24
23
  submitText="Update <%= human_name.downcase %>"
25
24
  />
26
25
 
@@ -17,11 +17,10 @@ export default function Edit({ <%= singular_table_name %> }) {
17
17
  form.post(`<%= js_resource_path %>`, {
18
18
  headers: { 'X-HTTP-METHOD-OVERRIDE': 'put' },
19
19
  })
20
- }}
21
20
  <% else -%>
22
21
  form.patch(`<%= js_resource_path %>`)
23
- }
24
22
  <% end -%>
23
+ }}
25
24
  submitText="Update <%= human_name.downcase %>"
26
25
  />
27
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InertiaRailsContrib
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_rails-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-11 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties