anchor_view_components 0.25.0 → 0.26.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: cb3897c927a7a49786ca5182ff2f1b68144b6a0d43117061ba078a0f2927d18a
4
- data.tar.gz: e3f77ee425e501bb5fb934b70a8fc6c80050378cf90ac3f1c4b18f8f68f91398
3
+ metadata.gz: a2bd0902d51ad208b9bc71cf869c64a255d6a1e071a4e85b0ffcfbc93c95ffe7
4
+ data.tar.gz: 9186d977123c8f0aefb6c39c8b9f8e3c498a02766ada923e087074ab6d518ed7
5
5
  SHA512:
6
- metadata.gz: c029e4310e6f1f5f48be3b2c2bcfd016ccc39cf2d150e9b6c31d3a2deb5cdab5600956d57d3b82bd4200202543442fc988aedfbdd2299f1f9df9350241803edf
7
- data.tar.gz: 37a7232ea33c79388a7211dcb57c728b27c246f39fd531cdc23307624adfe6f44fedfe3cca0de8f3355506fae606a16f0f352109e7a6fe3f292c0bf0d3d12c1e
6
+ metadata.gz: cd9eaa7d2faf9a73844cc078b7c27d52a2e0325df66bee6db752fd94ee940458849475f74261300d36393a02e59b6ccadee19b8c804ccd1bade1e7e53bea79b7
7
+ data.tar.gz: f324276441f6744ceeab61a1b50e348312aada0c4f8476273d0d6486421553b513a28ba942f3d37911dff5bd9acf433cc4a45248b1439d936c3673839157bb00
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.26.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 14c155f: Fix check_box helper arguments
8
+
9
+ ## 0.26.0
10
+
11
+ ### Minor Changes
12
+
13
+ - dede94c: Generate testid for check_box helper
14
+ - 1c4aec8: Dasherize input testid
15
+
3
16
  ## 0.25.0
4
17
 
5
18
  ### Minor Changes
@@ -61,7 +61,7 @@ module Anchor
61
61
  end
62
62
 
63
63
  def testid
64
- "input-#{attribute.to_s.parameterize}"
64
+ "input-#{attribute.to_s.parameterize.dasherize}"
65
65
  end
66
66
  end
67
67
  end
@@ -99,6 +99,16 @@ module Anchor
99
99
 
100
100
  # The following methods are pending to be replaced with ViewComponents.
101
101
 
102
+ def check_box(attribute, options = {}, *args)
103
+ super(
104
+ attribute,
105
+ options.merge(
106
+ data: { testid: "checkbox-#{attribute.to_s.dasherize}" }
107
+ ),
108
+ *args
109
+ )
110
+ end
111
+
102
112
  def datetime_field(attribute, options = {})
103
113
  super attribute, options.merge(class: Anchor::InputComponent::INPUT_CLASSES)
104
114
  end
@@ -1,5 +1,5 @@
1
1
  module Anchor
2
2
  module ViewComponents
3
- VERSION = "0.25.0".freeze
3
+ VERSION = "0.26.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anchor_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buoy Software