rasti-app 11.0.0 → 11.1.0

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: a6589aceba87599ff25d5e83eb482956ca8e761097a2cecd1fe558de1fd9f072
4
- data.tar.gz: eb4792c32b936c6c9978ab72123289e92e22f45bbb152432b56c44b9fcaa3348
3
+ metadata.gz: f0b15684fba9149659a810d0747b0b41a6e9751af25f843656bae553e2420207
4
+ data.tar.gz: 8e000bed4b3ffa9f1587a683b6b21fe9cdad610e2262173cbc159fc0219fdeb9
5
5
  SHA512:
6
- metadata.gz: b2713810146228a1451ea96ca0b5270c0fc7330c78e29bdf0f1d9ad7f774fa4a1a619af40431cb36965e28f095be69690ea5eb7301c6996fddb690c6fc2c97fa
7
- data.tar.gz: 1bfcd88142e2b2d82b34b7b4ab73e66d9e5b75fcdbb09328fd05ad4a011dc024bc878b34bf52f99a474f61fc36eb4a395849f2c0913a7f334a2c2efec2fe67e7
6
+ metadata.gz: 976bec96651512347248d7bfde13e09ee75ffa2926d532408d7304cc637991c8c6ad1f9a2c9f020e42b97fe877ecf17a11c80bf1199f95db4cf39d9d45810a9d
7
+ data.tar.gz: acc74f321aa6548af0f17aaebdc97ff2b1a67c910dcc80f4cdb65d1a51e914ae1281ba6c4994f55e17e01de55af6f0f53b1279a9d2dfca7cec0f55276ff889ab
@@ -34,8 +34,12 @@ module Rasti
34
34
  !asynchronic?
35
35
  end
36
36
 
37
+ def form
38
+ interaction.form
39
+ end
40
+
37
41
  def form_attributes
38
- interaction.const_defined?(:Form) ? interaction.const_get(:Form).attributes : []
42
+ form.attributes
39
43
  end
40
44
 
41
45
  end
@@ -4,8 +4,12 @@ module Rasti
4
4
 
5
5
  include Rasti::Form::Validable
6
6
 
7
+ def self.form
8
+ constants.include?(:Form) ? const_get(:Form) : Form
9
+ end
10
+
7
11
  def self.build_form(params)
8
- constants.include?(:Form) ? const_get(:Form).new(params) : Form.new
12
+ form.new params
9
13
  end
10
14
 
11
15
  def self.asynchronic?
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '11.0.0'
3
+ VERSION = '11.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2026-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto
@@ -238,7 +238,7 @@ homepage: https://github.com/gabynaiman/rasti-app
238
238
  licenses:
239
239
  - MIT
240
240
  metadata: {}
241
- post_install_message:
241
+ post_install_message:
242
242
  rdoc_options: []
243
243
  require_paths:
244
244
  - lib
@@ -253,8 +253,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubygems_version: 3.0.6
257
- signing_key:
256
+ rubygems_version: 3.0.9
257
+ signing_key:
258
258
  specification_version: 4
259
259
  summary: ''
260
260
  test_files: