composable-view 0.0.4 → 0.0.5

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: 74d335c8b27d8c1fe50b1714e6b96206bda38a01849aa26c652820b936c826c2
4
- data.tar.gz: b6b6dd3ae0f5912c0b43e3fd7afd653a33d38786501e37680dc12bb54db2d2e1
3
+ metadata.gz: bf249668d4a66ab1d7a0ff3311b43359695079715fac986787ed774a0281bb92
4
+ data.tar.gz: '034735417957cd532ce36361d698c7bf517af70a1b82a1ace6d83036c0f609df'
5
5
  SHA512:
6
- metadata.gz: 83175349a2c686efe4d3b5b182be3f477e5c91edf1464df4960b3b28cb0a226bba61e4616478850d4714948576a886142b7fa427f6e350bc8672fa23f61c915c
7
- data.tar.gz: 86143c0fee08c6e01cecd1456b361cc50e0357649acdd9dc863940e11e8a1df60250237127a10b728ee38760f08563f72db03536e617a4fd386d7e3be7a34a5d
6
+ metadata.gz: 7b794d2110453d2444bd51cedf181b60c1698d2d1995ba49d3e0b95fe57c2910dd50d2b22be47bba07cb065935c6512757d7e8b6e687c202af85daff454e64ce
7
+ data.tar.gz: 2e60c902941239503f83e1f25de0a2ab4709b8641819bb376f765985b014e22c0abb495da24263baf30385e33f862188e80bf381d416f8cbbf390b12361345f2
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Composable
4
+ module View
5
+ class Component < ViewComponent::Base
6
+ include Core::AttributeDSL
7
+ include ActiveModel::Validations
8
+
9
+ def self.new(...)
10
+ super(...).tap(&:validate!)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -10,7 +10,7 @@ module Composable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 4
13
+ TINY = 5
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "composable/core"
4
+ require "view_component"
4
5
  require_relative "view/version"
5
6
 
6
7
  module Composable
7
8
  module View
8
9
  class Error < StandardError; end
9
- # Your code goes here...
10
+
11
+ autoload :Component, "composable/view/component"
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composable-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jairo Vazquez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: composable-core
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.4
19
+ version: 0.0.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.4
26
+ version: 0.0.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: view_component
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.48'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.48'
27
41
  description: View composable object to work with Rails ActionView forms
28
42
  email:
29
43
  - jairovm20@gmail.com
@@ -35,6 +49,7 @@ files:
35
49
  - LICENSE.txt
36
50
  - README.md
37
51
  - lib/composable/view.rb
52
+ - lib/composable/view/component.rb
38
53
  - lib/composable/view/gem_version.rb
39
54
  - lib/composable/view/version.rb
40
55
  homepage: https://github.com/jairovm/composables