vident 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +108 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +21 -0
- data/README.md +105 -4
- data/lib/vident/base.rb +1 -0
- data/lib/vident/component.rb +1 -0
- data/lib/vident/root_component.rb +9 -1
- data/lib/vident/version.rb +1 -1
- data/sig/vident.rbs +4 -0
- data/vident.gemspec +30 -0
- metadata +33 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95a2b00a3176fdc3fbd06569b20665b3e1d1bc8032758b0945d2dc58990d2fa5
|
4
|
+
data.tar.gz: e946108732b2abd5af47e5437b13e72983838cad032fb6b5c4c460504dc4cf8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd4da39749c72675965bf507287db253b305a2203c29a323a6342fa593709c06480ce1a3671e6044b562503853b78c56ca9a698e5962217a4a1becf23a29722
|
7
|
+
data.tar.gz: 11e8f9e658bb2ff4459719a205ae13bcecb7f2c65b1e4d89edb718879d5a54fe947922c0328cf5c15b19f066d46695250a935599fa37fcfd8de0fbfb9e2975af
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.0
|
data/.standard.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
|
2
|
+
# Change Log
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
|
+
|
8
|
+
|
9
|
+
## [Unreleased]
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
## [0.10.0] - 2024-02-21
|
18
|
+
|
19
|
+
### Added
|
20
|
+
|
21
|
+
- `outlets` option for components, used to specify Stimulus outlets
|
22
|
+
|
23
|
+
## [0.9.0] - 2023-08-11
|
24
|
+
|
25
|
+
### Added
|
26
|
+
|
27
|
+
- `#cache_key` support is now part of the core gem, and can be added to components using `Vident::Caching` module
|
28
|
+
|
29
|
+
## [0.8.0] - 2023-03-31
|
30
|
+
|
31
|
+
### Added
|
32
|
+
|
33
|
+
- new gems for Vident related functionality, eg `vident-typed` and `vident-tailwind`
|
34
|
+
- `vident` is now the core gem which can be used with any component system. Gems for Phlex and ViewComponent are available, `vident-phlex` and `vident-view_component`, and `vident-typed-phlex` and `vident-typed-view_component` are available with typed attributes support.
|
35
|
+
|
36
|
+
### Changed
|
37
|
+
|
38
|
+
- removed functionality for `better_html`, `dry-types`, `view_component`, and `phlex` from the core gem
|
39
|
+
- gem is now a Rails Engine and supports eager and autoloading
|
40
|
+
|
41
|
+
### Fixed
|
42
|
+
|
43
|
+
- Fix untyped attributes inheritance
|
44
|
+
|
45
|
+
## [0.7.0] - 2023-03-08
|
46
|
+
|
47
|
+
### Added
|
48
|
+
|
49
|
+
- new `Vident::Tailwind` module which uses [tailwind_merge](https://github.com/gjtorikian/tailwind_merge) to merge TailwindCSS classes
|
50
|
+
|
51
|
+
### Changed
|
52
|
+
|
53
|
+
- Removed a dependency on intenal constants from `phlex`
|
54
|
+
|
55
|
+
## [0.6.3] - 2023-03-03
|
56
|
+
|
57
|
+
### Fixed
|
58
|
+
|
59
|
+
- Fix for changes to HTML tag collection in Phlex
|
60
|
+
|
61
|
+
|
62
|
+
## [0.6.2] - 2023-02-23
|
63
|
+
|
64
|
+
### Fixed
|
65
|
+
|
66
|
+
- Element tag options are not set when no ID is provided
|
67
|
+
|
68
|
+
|
69
|
+
## [0.6.1] - 2023-02-20
|
70
|
+
|
71
|
+
### Fixed
|
72
|
+
|
73
|
+
- `better_html` support fix for aliased dsl methods
|
74
|
+
|
75
|
+
|
76
|
+
## [0.6.0] - 2023-02-20
|
77
|
+
|
78
|
+
### Added
|
79
|
+
|
80
|
+
- Experimental support for `better_html` in the root components (the stimulus attributes are generated with `html_attributes`)
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
## [0.5.1] - 2023-02-17
|
85
|
+
|
86
|
+
### Added
|
87
|
+
|
88
|
+
- N/A
|
89
|
+
|
90
|
+
### Changed
|
91
|
+
|
92
|
+
- N/A
|
93
|
+
|
94
|
+
### Fixed
|
95
|
+
|
96
|
+
- Typed attributes was not always using custom coercion methods if they were defined
|
97
|
+
|
98
|
+
### Removed
|
99
|
+
|
100
|
+
- N/A
|
101
|
+
|
102
|
+
### Deprecated
|
103
|
+
|
104
|
+
- N/A
|
105
|
+
|
106
|
+
### Security
|
107
|
+
|
108
|
+
- N/A
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at stevegeek@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Stephen Ierodiaconou
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
**Vident** is a collection of gems that help you create **flexible** & **maintainable** component libraries for your Rails application.
|
4
4
|
|
5
|
-
<a href="https://github.com/stevegeek/vident"><img alt="Vident logo" src="https://raw.githubusercontent.com/stevegeek/vident/main/logo-by-sd-256-colors.png" width="180" /></a>
|
5
|
+
<a href="https://github.com/stevegeek/vident"><img alt="Vident logo" src="https://raw.githubusercontent.com/stevegeek/vident/main/docs/images/logo-by-sd-256-colors.png" width="180" /></a>
|
6
6
|
|
7
7
|
Vident also provides a neat Ruby DSL to make wiring up **Stimulus easier & less error prone** in your view components.
|
8
8
|
|
@@ -14,10 +14,111 @@ I love working with Stimulus, but I find manually crafting the data attributes f
|
|
14
14
|
targets and actions error-prone and tedious. Vident aims to make this process easier
|
15
15
|
and keep me thinking in Ruby.
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
Vident has been used with `ViewComponent` and `Phlex` in production apps for a while now
|
18
|
+
but is still evolving.
|
19
19
|
|
20
|
-
|
20
|
+
I would love to get your feedback and contributions!
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
The Greeter ViewComponent (that uses Vident):
|
25
|
+
|
26
|
+
![docs/images/ex1.gif](docs/images/ex1.gif)
|
27
|
+
|
28
|
+
Consider a component, the `GreeterComponent`:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# app/components/greeter_component.rb
|
32
|
+
|
33
|
+
class GreeterComponent < ::Vident::ViewComponent::Base
|
34
|
+
renders_one :trigger, ButtonComponent
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
with ERB as follows:
|
39
|
+
|
40
|
+
```erb
|
41
|
+
<%# app/components/greeter_component.html.erb %>
|
42
|
+
|
43
|
+
<%# Rendering the `root` element creates a tag which has stimulus `data-*`s, a unique id & other attributes set. %>
|
44
|
+
<%# The stimulus controller name (identifier) is derived from the component name, and then used to generate the relavent data attribute names. %>
|
45
|
+
|
46
|
+
<%= render root named_classes: {
|
47
|
+
pre_click: "text-md text-gray-500", # named classes are exposed to Stimulus as `data-<controller>-<name>-class` attributes
|
48
|
+
post_click: "text-xl text-blue-700",
|
49
|
+
html_options: {class: "py-2"}
|
50
|
+
} do |greeter| %>
|
51
|
+
<%# `greeter` is the root element and exposes methods to generate stimulus targets and actions %>
|
52
|
+
<input type="text"
|
53
|
+
<%= greeter.as_target(:name) %>
|
54
|
+
class="shadow appearance-none border rounded py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
|
55
|
+
|
56
|
+
<%# Render the slot %>
|
57
|
+
<%= trigger %>
|
58
|
+
|
59
|
+
<%# you can also use the `target_tag` helper to render targets %>
|
60
|
+
<%= greeter.target_tag(
|
61
|
+
:span,
|
62
|
+
:output,
|
63
|
+
# Stimulus named classes can be referenced to set class attributes at render time
|
64
|
+
class: "ml-4 #{greeter.named_classes(:pre_click)}"
|
65
|
+
) do %>
|
66
|
+
...
|
67
|
+
<% end %>
|
68
|
+
<% end %>
|
69
|
+
```
|
70
|
+
|
71
|
+
Now, imagine we render it in a view, and render a `ButtonComponent` in the `trigger` slot:
|
72
|
+
|
73
|
+
```erb
|
74
|
+
<%= render ::GreeterComponent.new(cta: "Hey!", html_options: {class: "my-4"}) do |greeter| %>
|
75
|
+
<%# this component has a slot called `trigger` that renders a `ButtonComponent` (which also uses Vident) %>
|
76
|
+
<% greeter.with_trigger(
|
77
|
+
|
78
|
+
# The button component has attributes that are typed
|
79
|
+
before_clicked: "Greet",
|
80
|
+
after_clicked: "Greeted! Reset?",
|
81
|
+
|
82
|
+
# A stimulus action is added to the button that triggers the `greet` action on the greeter stimulus controller.
|
83
|
+
# This action will be added to any defined on the button component itself
|
84
|
+
actions: [
|
85
|
+
greeter.action(:click, :greet),
|
86
|
+
],
|
87
|
+
|
88
|
+
# We can also override the default button classes of our component, or set other HTML attributes
|
89
|
+
html_options: {
|
90
|
+
class: "bg-red-500 hover:bg-red-700"
|
91
|
+
}
|
92
|
+
) %>
|
93
|
+
<% end %>
|
94
|
+
```
|
95
|
+
|
96
|
+
The output HTML of the above, using Vident, is:
|
97
|
+
|
98
|
+
```html
|
99
|
+
<div class="greeter-component py-2 my-4"
|
100
|
+
data-controller="greeter-component"
|
101
|
+
data-greeter-component-pre-click-class="text-md text-gray-500"
|
102
|
+
data-greeter-component-post-click-class="text-xl text-blue-700"
|
103
|
+
id="greeter-component-1599855-6">
|
104
|
+
<input type="text"
|
105
|
+
data-greeter-component-target="name"
|
106
|
+
class="shadow appearance-none border rounded py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline">
|
107
|
+
<button class="button-component ml-4 whitespace-no-wrap bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded bg-red-500 hover:bg-red-700"
|
108
|
+
data-controller="button-component"
|
109
|
+
data-action="click->greeter-component#greet button-component#changeMessage"
|
110
|
+
data-button-component-after-clicked-message="Greeted! Reset?"
|
111
|
+
data-button-component-before-clicked-message="Greet"
|
112
|
+
id="button-component-7799479-7">Hey!</button>
|
113
|
+
<!-- you can also use the `target_tag` helper to render targets -->
|
114
|
+
<span class="ml-4 text-md text-gray-500"
|
115
|
+
data-greeter-component-target="output">
|
116
|
+
...
|
117
|
+
</span>
|
118
|
+
</div>
|
119
|
+
```
|
120
|
+
|
121
|
+
To see this example in more detail, see the [vident-typed-view_component](https://github.com/stevegeek/vident-typed-view_component/tree/main/test/dummy/app/components) test dummy app.
|
21
122
|
|
22
123
|
# Vident is a collection of gems
|
23
124
|
|
data/lib/vident/base.rb
CHANGED
@@ -145,6 +145,7 @@ module Vident
|
|
145
145
|
) + Array.wrap(options[:controllers]) + attribute(:controllers),
|
146
146
|
actions: attribute(:actions) + Array.wrap(options[:actions]),
|
147
147
|
targets: attribute(:targets) + Array.wrap(options[:targets]),
|
148
|
+
outlets: attribute(:outlets) + Array.wrap(options[:outlets]),
|
148
149
|
named_classes: merge_stimulus_option(options, :named_classes),
|
149
150
|
data_maps: prepare_stimulus_option(options, :data_maps)
|
150
151
|
}
|
data/lib/vident/component.rb
CHANGED
@@ -16,6 +16,7 @@ module Vident
|
|
16
16
|
attribute :controllers, default: [], delegates: false
|
17
17
|
attribute :actions, default: [], delegates: false
|
18
18
|
attribute :targets, default: [], delegates: false
|
19
|
+
attribute :outlets, default: [], delegates: false
|
19
20
|
attribute :data_maps, default: [], delegates: false
|
20
21
|
attribute :named_classes, delegates: false
|
21
22
|
end
|
@@ -6,6 +6,7 @@ module Vident
|
|
6
6
|
controllers: nil,
|
7
7
|
actions: nil,
|
8
8
|
targets: nil,
|
9
|
+
outlets: nil,
|
9
10
|
named_classes: nil, # https://stimulus.hotwired.dev/reference/css-classes
|
10
11
|
data_maps: nil,
|
11
12
|
element_tag: nil,
|
@@ -18,6 +19,7 @@ module Vident
|
|
18
19
|
@controllers = Array.wrap(controllers)
|
19
20
|
@actions = actions
|
20
21
|
@targets = targets
|
22
|
+
@outlets = outlets
|
21
23
|
@named_classes = named_classes
|
22
24
|
@data_map_kvs = {}
|
23
25
|
@data_maps = data_maps
|
@@ -123,11 +125,17 @@ module Vident
|
|
123
125
|
def tag_data_attributes
|
124
126
|
{controller: controller_list(@controllers), action: action_list(@actions)}
|
125
127
|
.merge!(target_list)
|
128
|
+
.merge!(outlet_list)
|
126
129
|
.merge!(named_classes_list)
|
127
130
|
.merge!(data_map_attributes)
|
128
131
|
.compact_blank!
|
129
132
|
end
|
130
133
|
|
134
|
+
def outlet_list
|
135
|
+
return {} unless @outlets&.size&.positive?
|
136
|
+
@outlets.each_with_object({}) { |o, obj| obj["#{implied_controller_name}-#{o.stimulus_identifier}-outlet"] = "[data-controller~=#{o.stimulus_identifier}]" }
|
137
|
+
end
|
138
|
+
|
131
139
|
# Actions can be specified as a symbol, in which case they imply an action on the primary
|
132
140
|
# controller, or as a string in which case it implies an action that is already fully qualified
|
133
141
|
# stimulus action.
|
@@ -173,7 +181,7 @@ module Vident
|
|
173
181
|
end
|
174
182
|
|
175
183
|
def build_target_data_attributes(targets)
|
176
|
-
targets.map { |t| ["#{t[:controller]}-target"
|
184
|
+
targets.map { |t| [:"#{t[:controller]}-target", t[:name]] }.to_h
|
177
185
|
end
|
178
186
|
|
179
187
|
def parse_actions(actions)
|
data/lib/vident/version.rb
CHANGED
data/sig/vident.rbs
ADDED
data/vident.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/vident/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "vident"
|
7
|
+
spec.version = Vident::VERSION
|
8
|
+
spec.authors = ["Stephen Ierodiaconou"]
|
9
|
+
spec.email = ["stevegeek@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Vident is the base of your design system implementation, which provides helpers for working with Stimulus. For component libraries with ViewComponent or Phlex."
|
12
|
+
spec.description = "Vident makes using Stimulus with your `ViewComponent` or `Phlex` view components as easy as writing Ruby. Vident is the base of your design system implementation, which provides helpers for working with Stimulus. For component libraries with ViewComponent or Phlex."
|
13
|
+
spec.homepage = "https://github.com/stevegeek/vident"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = spec.homepage + "/blob/main/CHANGELOG.md"
|
20
|
+
|
21
|
+
spec.files = Dir.chdir(__dir__) do
|
22
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
23
|
+
(File.expand_path(f) == __FILE__) ||
|
24
|
+
f.start_with?(*%w[bin/ test/ spec/ features/ examples/ docs/ .git .github appveyor Gemfile])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.add_dependency "railties", ">= 7", "< 8.0"
|
29
|
+
spec.add_dependency "activesupport", ">= 7", "< 8.0"
|
30
|
+
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vident
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Ierodiaconou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '8'
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,27 @@ dependencies:
|
|
29
29
|
version: '7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '8'
|
32
|
+
version: '8.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '7'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '8.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '7'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '8.0'
|
33
53
|
description: Vident makes using Stimulus with your `ViewComponent` or `Phlex` view
|
34
54
|
components as easy as writing Ruby. Vident is the base of your design system implementation,
|
35
55
|
which provides helpers for working with Stimulus. For component libraries with ViewComponent
|
@@ -40,6 +60,11 @@ executables: []
|
|
40
60
|
extensions: []
|
41
61
|
extra_rdoc_files: []
|
42
62
|
files:
|
63
|
+
- ".ruby-version"
|
64
|
+
- ".standard.yml"
|
65
|
+
- CHANGELOG.md
|
66
|
+
- CODE_OF_CONDUCT.md
|
67
|
+
- LICENSE.txt
|
43
68
|
- README.md
|
44
69
|
- Rakefile
|
45
70
|
- lib/tasks/vident_tasks.rake
|
@@ -52,6 +77,8 @@ files:
|
|
52
77
|
- lib/vident/root_component.rb
|
53
78
|
- lib/vident/stable_id.rb
|
54
79
|
- lib/vident/version.rb
|
80
|
+
- sig/vident.rbs
|
81
|
+
- vident.gemspec
|
55
82
|
homepage: https://github.com/stevegeek/vident
|
56
83
|
licenses:
|
57
84
|
- MIT
|
@@ -74,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
101
|
- !ruby/object:Gem::Version
|
75
102
|
version: '0'
|
76
103
|
requirements: []
|
77
|
-
rubygems_version: 3.
|
104
|
+
rubygems_version: 3.5.3
|
78
105
|
signing_key:
|
79
106
|
specification_version: 4
|
80
107
|
summary: Vident is the base of your design system implementation, which provides helpers
|