composable-view 0.0.4 → 0.0.7

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: a05e01dc3a74a61fd3d8167be2c91883b1b800132584c34e565ed1b1ee7fcad2
4
+ data.tar.gz: 2e672545c53a02ccff1fa6e2a90182e8fa5144ed97c0c439b0cbe2eeff685cc9
5
5
  SHA512:
6
- metadata.gz: 83175349a2c686efe4d3b5b182be3f477e5c91edf1464df4960b3b28cb0a226bba61e4616478850d4714948576a886142b7fa427f6e350bc8672fa23f61c915c
7
- data.tar.gz: 86143c0fee08c6e01cecd1456b361cc50e0357649acdd9dc863940e11e8a1df60250237127a10b728ee38760f08563f72db03536e617a4fd386d7e3be7a34a5d
6
+ metadata.gz: 29f329f17a507c6feab2b3a7caf2a181167ea90a10caf5fa3fc553bf8416bd4e5f93a4a6093aec2cf44a2d21098725cac2b602c5863af86787d0116b34009394
7
+ data.tar.gz: 91bff5d2aa31ab48dcef2500a1794e2536e5a5415f27db5f7451fa82b481585f1b720ca6e0a9ead33eb8829d553467f4b3387647397418ae0001e90d824ad924
@@ -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 = 7
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.7
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-08-30 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.7
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.7
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