has_stimulus_attrs 0.2.0 → 0.2.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: b084253adc44c27b3004ce03b89af50e106e08d785f098eabc4ed36e531f9a63
4
- data.tar.gz: a939337452e2b4911dec9b6ae1f66da3986f04f647545205dfda4d4957e06653
3
+ metadata.gz: ab9a410dcca140dff84d140d63c800df80079dc0262b8f1aa4f2483843ce31f5
4
+ data.tar.gz: ee2fe71c3d4dede74df29b28318bdd0abcb8ca5ac90fb474d2fb180122f7eb32
5
5
  SHA512:
6
- metadata.gz: 75d67545b94948163458e3ac971de8b75033e124506156b4b858f3dcae02eecd83b0d1770eb6a11e1cb4dcae894d31ce49f5662f11627027380f2c7fc56f95ba
7
- data.tar.gz: c64fe067de8e607dd99ede0b4a953a478480ffa3c72007b1f32e6d205d939b45d6060b217bd5ff1ab2a34ab0ed32428c2ba40db10907a387dd3a52f607aaeea5
6
+ metadata.gz: d5ee171cd41a62288db206cb1f170d2b065629284329cb9ea9b7850a94e4b40b38624e30e76ceae2184b70806ba6cc601f903d95fae0d219c5875936cbd78eb2
7
+ data.tar.gz: 5f0993dea9aacad431660fe91f587a27b37b41bc37f0839afeac188d1aa43a302f22bd402d351f79989aac87f316ebae6e6d7586b423690436036056172f38e5
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.3.4
data/README.md CHANGED
@@ -71,8 +71,8 @@ class ModalComponent < ApplicationComponent
71
71
  has_stimulus_outlet "outlet", ".selector"
72
72
 
73
73
  # Param
74
- has_stimulus_param id: 123
75
- has_stimulus_param id: -> { id }
74
+ has_stimulus_param :id, 123
75
+ has_stimulus_param :id, -> { id }
76
76
 
77
77
  # Target
78
78
  has_stimulus_target "target"
@@ -26,8 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "stimulus_helpers", "~> 0.1.0"
30
- spec.add_dependency "has_dom_attrs", "~> 0.1.0"
29
+ spec.add_dependency "stimulus_helpers", "~> 0.1"
30
+ spec.add_dependency "has_dom_attrs", "~> 0.1"
31
+ spec.add_dependency "activesupport", ">= 7.0"
31
32
 
32
33
  spec.add_development_dependency "bundler"
33
34
  spec.add_development_dependency "rake"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HasStimulusAttrs
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -4,6 +4,7 @@ require_relative "has_stimulus_attrs/version"
4
4
 
5
5
  require "has_dom_attrs"
6
6
  require "stimulus_helpers"
7
+ require "active_support/core_ext/object/blank"
7
8
 
8
9
  module HasStimulusAttrs
9
10
  include HasDomAttrs
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_stimulus_attrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-03-22 00:00:00.000000000 Z
12
+ date: 2024-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: stimulus_helpers
@@ -17,28 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.1.0
20
+ version: '0.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.1.0
27
+ version: '0.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: has_dom_attrs
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.1.0
34
+ version: '0.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.1.0
41
+ version: '0.1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: activesupport
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '7.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '7.0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
164
  - !ruby/object:Gem::Version
151
165
  version: '0'
152
166
  requirements: []
153
- rubygems_version: 3.3.7
167
+ rubygems_version: 3.5.11
154
168
  signing_key:
155
169
  specification_version: 4
156
170
  summary: Helper methods for dealing with stimulus attributes.